Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gossipsub - Implement message sizes per topic #5745

Open
AgeManning opened this issue Dec 16, 2024 · 0 comments
Open

Gossipsub - Implement message sizes per topic #5745

AgeManning opened this issue Dec 16, 2024 · 0 comments

Comments

@AgeManning
Copy link
Contributor

Description

The exact message size on gossipsub has become a hot-topic in Ethereum recently. Specific objects are specified to have exact sizes which put upper bounds on the gossipsub message sizes.

Although, gossipsub protobuf messages can incorporate control messages, the upper bound should be bound based on a single maximum message size. It prevents us from downloading too large junk messages only to reject them.

For some topics, the maximum message sizes can change. It might be nice to reduce spam on some topics when there is a large disparity between message sizes per topic.

Motivation

We can reject messages and reduce DOS attack vectors when there is a large message-size disparity across topics.

Requirements

Implement a trait/object/configuration that allows the user to configue a mapping TopicHash -> usize to define the max size per topic.

Open questions

No response

Are you planning to do it yourself in a pull request ?

Maybe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant