Transcending Gossipsub
Devcon·Sat, Nov 7, 2026, 12:00 AM
Speaker
Transcript
Hello everyone and thanks for coming to my talk. I'm Daniel. I work at Sigma Prime on a consensus layer client called Lighthouse. Yeah, so thanks to Michael's excellent talk right now you have already maybe a rough idea of how the networking layer looks like right now and there's a short motivation still. So GossipSub GossipSub is generic publish and subscribe protocol.
So it basically any node can publish a message and it is forwarded through the network in order to let everyone know of this message. And it's generic in the sense is that it's not purpose-built for Ethereum. So you can send basically anything over it. It works by having each node form a mesh and being in a node's mesh means that that node will forward everything it has immediately to you. So if I publish a message, I send it to my mesh.
If I receive a message and find it as valid, I also forward it to that mesh. Additionally, we randomly gossip. So we tell random other nodes, this is the orange arrows right there, that we have some messages and that those messages are available and other peers, if the mesh failed them for some reason, can then request these messages. It's based on the P2P, which is also a nice abstraction for all kinds of P2P protocols. So over the years GossipSub has grown quite a bit.
So this slide might look familiar to Michael's just now. So in 2022, we introduced GossipSub 1.1 and this built in some scoring and this is nice because it mitigates some attack scenarios like a node just not forwarding anything and just basically leeching off the network without participating. Then in 2024 we introduced Gossip Sub 1.2 which introduces I don't want messages and as Mika also said they're basically there to prevent redundant traffic.
So if I receive a large message that also takes a while to validate like a block I first send I don't want to my mesh peers so they don't send it to me again while I validate and finally forward that block. And last year Gossip Sub 1.3 was introduced which introduced this kind of optional protocol extensions partial messages for example the partial messages are nice because they allow us to send only parts of of blobs or columns data columns and topic streams um are also helping with large messages because large messages take a while to send and small messages right now and Gossip Sub queue up behind it. And especially in EPBS which is coming soon payloads are pretty large and are pretty much disseminated at the same time as validator attestations which are very important of course. And we want to avoid this head of line blocking this is called.
And back to partial messages these large messages sometimes are already present in parts at nodes. This is the case for data columns where some cells of these columns are already available through the nodes execution layer client. Right. So seeing that I just spent like a quarter of my talk explaining the status quo. You see that this has grown quite a bit and we reach keep reaching these limits of Gossip Sub and then apply some some some small fix to make it viable again for our purpose.
And at this point this has grown quite complex and complexity is not really a desirable thing because nowadays in the age of AI and automated bug finding like if you've been paying attention there's been quite a few of those and also in some Gossip Sub implementations we have found them and fixed them. All is good. But it's it's a bit scary and and if we keep applying these band-aids why not just build something from the ground up which suits our purpose. And this is where we come to Waku. Waku is a proposal by by us like a small research group contain consisting of myself and my colleague Asima Prime, Joel Oliveira and Sukun from the EF networking team.
And it's a brand new protocol. It's also based on the P2P so it does not get rid of this this base layer because this base layer is is fine for now. There's like not much to optimize there compared to Gossip Sub. It's very lightweight so it's very easy to implement. It's like three screen pages of of specs.
And this is intentional because it allows us to fine tune the actual dissemination strategies. And it's basically the result of our learnings from partial messages. So we extracted the good bits from there and got rid of the complexity underneath. And here you again see these topic streams and like assuming these topic C messages are very large they can flow in parallel to other topic messages. So let's quickly get over how Waku works.
Rego defines only two messages. So, when I open a stream to a peer, I first send it the topic ID, so what kind of message I'm interested in receiving from that peer. And after that, that peer sends us these this object pieces message. And this is already an improvement because this topic ID, for example, was previously sent with every message in GossipSub. So, for small messages, this is already like a large part of that message.
And so, this is, you know, the kind of drive-by optimizations we gain from this. Uh this object pieces message consists of three parts. The object ID, which is kind of the identifier of the whole thing that we want to disseminate, like a block. Uh the object ID can be the block hash. Uh pieces metadata is some metadata about that block or about the dissemination of that block.
For example, I can use it to tell my peer how many parts of that object I already have or what parts I explicitly want that node to send me. Pieces is then just telling the other node about some pieces of that block. And all the actual contents of these fields are application-defined. So, you can use any encoding, you can use any uh yeah, contents. And especially, the pieces are very abstract.
So, this can be literally a piece of something like by chopping it up into equal-sized parts or it can be just a concept of a piece. For example, attestations are aggregated in Ethereum. And a piece can be just be some partial aggregation that can be later aggregated again together and therefore forming the whole object. It can be any step of a multi-party computation, basically. And not only the data is application-defined, but also the whole dissemination strategy.
So, Wagle does not impose on you to form a mesh. You can build something that forms a mesh. Uh but, you can optimize for all kinds of message sizes, validation times, data pre-distribution. This is what I was talking about with data columns. You can account for some nodes already having some parts.
In these cases, you probably don't want to push all your data eagerly, but more try to make these nodes request data that's missing from you. You can uh account for bandwidth-latency tradeoffs. This like a very common tradeoff you have to make. And you can basically for important times-critical messages be a bit more bandwidth-inefficient, but therefore uh allow for faster message dissemination. And finally, GossipSub has a cache that is very fixed.
So, you have a fixed lifetime of messages that GossipSub remembers. And this is not ideal because in Ethereum, we have slot times, right? And some kinds of messages are just irrelevant at some point and can be then discarded from the cache, making the cache more lean. Right. So, let's talk about how we plan to use Wagle in Hegota.
And a quick disclaimer of course, this is all work in progress and might change at any time. However, there was this uh week a rough consensus from core devs to go ahead with this. So, to use Wagle with the following EIPs in Hegota. Uh but, no no promises. So, uh first up is EIP 8411 by Kamil and Javan.
The idea is that with EPBS, we have separate payloads from the block. And these can get quite large. And of course, we want to scale, so we want to make transactions cheaper. And with cheaper transactions, also larger payloads come because we have more capacity, right? And a very basic idea is to take that payload and chop it up into 64 parts.
And the builder of that payload then commits to it in the sign bit by basically building a Merkle tree hashing at each immediate intermediate layer. And this allows us to be sure that when we receive a chunk, that this chunk is legitimate. It's not just spam or random traffic. We can verify it via a Merkle proof. In this slide, it's just 64 chunks, but we can also do something smart and extend those 64 chunks by erasure encoding them.
This would allow us to get only 50% of these extended chunks, which can be more efficient. It's a bit more effort, but [snorts] it's nice because we then we don't have to get every single chunk in order to proceed with processing the payload. And as I told you, this was kind of the the pieces definition of the pieces, but we still have a dissemination strategy. And the question now for us to clarify until Hegota is how complex do we want to get with this. It could be something like this.
It could also be something like C-cast by by Shaba from the EF networking team. Um something like this would be that once a chunk becomes valid, they push it to a certain number of peers, for example, eight or 10, which would kind of mirror gossip subs mesh, but in a ephemeral, so non-permanent way, right? Picking other peers every time. And after some delay, if we still don't have all the all the chunks, we go to our nodes and request any that we are missing in order to get the full payload. And if we still request them from a peer that does not serve it to us immediately, uh we have timeout and retry.
But yeah, it's it's a it's a draft. So, let's see with what we go. And other EIP where we are looking to integrate Ragel is EIP 8334 by Kuhn, also from the EF networking team. And the idea is that currently we send attestations from each validator in a committee one by one, and that is very redundant because this attestation data is for 99% of the nodes the same because they usually get the block and on time and then sign the same data. So, everyone signs it and we send the data and the signature over and over again.
And this data is just redundant. So, instead of sending an attestation right away, we bundle them. So, we wait for a bit, see what attestations come in from other peers, and then send only the data once and all the signatures of the peers we received that signature from uh signatures for that data from at once, and this saves uh around 45 to 55 uh percent of bandwidth, so that's already pretty good. Right. So, hopefully we will implement this.
But there's also some perspective in like I-star and beyond, and there was a question just from Michael's talk with regards to PQ, for example. Uh but before we come to PQ, let's just migrate all the topics because it having more stacks does not simplify uh stuff, right? So, in H-star where we focus on these most important to EIPs where we have the most gains, we introduce Waggle but don't remove gossip sub, and that's not good. We want to get rid of complexity. So, for for I-star it'd be very good to just move all the other topics to Waggle.
We can do something fancy for some, for others there's not much benefit to be had through Waggle alone, so we might just keep the general principle of gossip sub alive but just over Waggle. Yeah, PQ. So, the thing with PQ is that aggregation of signatures will take quite a bit longer than with BLS, and the aggregates will be larger. So, this screenshot is from Camillo's lean sim page, uh where he has some simulations on how to disseminate uh aggregates and and attestations post PQ. Or or PQ post PQ doesn't really make sense.
Anyway, attestations are around 265 kilobytes in this simulation. And because this is not as small as previous signature or aggregates, and because aggregation takes time, we need to do something smart here. We can have some kind of recursive scheme where we first send the partial aggregates which are smaller and then do a final aggregation run by multiple aggregators, something like this. But this is still being uh discussed and as PQ cryptography is still moving quite fast, and there's a lot of research still. Uh we don't have a definite plan for this right now yet, but there's a lot of uh research going on.
Finally, so there was also the question before um what do we do with libp2p, devp2p, and ethp2p? And now Waggle Why is there so many things? So, Waggle is on top of libp2p. So, it's not a replacement for libp2p. But, Waggle does not necessarily need libp2p.
It just needs some layer that can negotiate a stream to other peers for you. So, if we wanted to, we could get rid of libp2p and some redundancies that are associated with it. So, libp2p is an abstraction, and every abstraction or most abstractions come with some form of cost. Like, we need a generic way to set up connections, etc. Um this is yeah, not really useful in our use case.
So, we could replace it with something You could call it ethp2p and unify also So, the approach is taken in the EL and CL. So, the plan would be move all the topics on top of Waggle and then replace libp2p from underneath Waggle. So, that's already basically it. So, I have hope that I've given you a nice little overview of what Waggle is and how it works. And yeah, let's see where where it goes.
Thank you. [snorts]
All right. Thank you so much, Daniel. Let's have the first question. Um are we trading bandwidth efficiency for lesser resilience/redundancy when moving away from Gossipsub? If so, is that fine?
Excellent question. So, Gossipsub 1.1 has some form of peer scoring, right? Waggle will not have a built-in peer scoring, but for each topic that we move to Waggle, we have we will have to define some rules for peers. Uh some some also some scoring mechanism.
And I don't think that we are really trading for resilience. Uh quite the opposite because again, we are not using a generic thing that has one formula that fits all. We can really get into it and find uh the perfect
[snorts]
uh resilience mechanisms. Uh like cash sizes. Again, we can time our caches, align our caches to slots, and therefore make them less attackable. Um so, I don't think we're trading. Uh but yeah, we have to take care that we don't quickly migrate to Waggle and disregard resilience, but keep it in mind when defining
[sighs]
on how to use Waggle.
Let's stop Google. How did the name Waggle come to be?
Excellent question. So, Joel, my colleague at uh Sigma Prime,
[snorts]
uh made uh up the name Waggle, and it is inspired by the waggle dance that bees do to communicate with each other. Yeah.
All things start small and simple. Do we trade off any of the battle-hardened Lindy effort of Gossip Sub by switching to Waggle? What's the risk?
Hm, yeah. Uh good question. So, yeah, on one hand, the Gossip Sub is battle-hardened. And we definitely, with our experience from Gossip Sub, need to take care that we also make sure that Waggle will be hardened in a similar similar way. That being said, we are a bunch of, you know, motivated uh innovative researchers.
We have now AI to also help us design it in a in a in a safe uh way. And so, we are not rushing We're are not rushing this. We are making sure of that we are still resilient.
Is there a way to terminate a topic?
Terminate a topic? Yeah, you can just close the stream. That's like a very easy to do if you're no longer interested in data from that peer or shutting down. You unsubscribe [snorts] from that topic by just Yeah.
People are placing busy questions. Let me jump to the next one. Is there any reason someone shouldn't use Waggle? Can you replicate your gossip sub functionality to Waggle one-to-one?
Yeah, there are plenty of reasons someone shouldn't use Waggle. So, Waggle is inherently more effort because Waggle Waggle's actually not that interesting, right? We leave the interesting part to the application. And so, Waggle is pretty boring actually, right? So, if you are fine with gossip sub functionality, if you are not that time critical, uh you you just can still use gossip sub.
It's battle-tested, as the previous question
[snorts]
said. So, yeah, there are many reasons, but if you want to squeeze every little bit of performance, Waggle can be a nice base abstraction, very light abstraction, to base your thinking around for your different messages in your network. Can you replicate your gossip sub functionality to Waggle one-to-one? Uh yeah. I'd say so.
Is the validity condition in 8411 just a Merkle proof verification or require more processing?
Yeah, it's just one Merkle proof. The data within the chunks, so the actual payload, might of course be invalid, so we might have very like validate all the chunks and then come up with garbage. But that is not really the problem of the networking layer at this point because in that case the builder just, you know, they they committed to an invalid payload, so they apparently yeah, their fault.
Um, I think maybe we can squeeze in one last question. Gossip sub versus generic regular protocol for non-specialized topics.
Uh for non-specialized topics. So, again, kind of similar to my previous answer. If you don't need any special magic or some partiality of your data, feel free to keep using Gossip sub.
[snorts]
Okay, that's it. Thank you so much, Daniel. Um, I think you already gave his workshop yesterday, but if you want to get contact with him, the talk is recorded and he has re-
Automatic transcript — names and jargon may be misspelled.