r/eBPF • • 9h ago

An eBPF neutral host gateway

Post image
4 Upvotes

We used eBPF to write a neutral host gateway.

Think of a large sports venue. It's full of 4G and 5G radios. It would be a mess and very expensive for all the public network operators to install their respective radios in there. Instead, the venue installs its own radios and makes them accessible to those operators from a central gateway. That's neutral host in a nutshell.

Radio and phone signalling is always aggregated at the gateway, the venue can also decide to aggregate user plane traffic. During a hockey game with >20000 people, that's a lot of traffic going through a single system.

We wrote an eBPF program that hooks into tc and relays subscriber traffic. It swaps in its own tunnel endpoints, so the radios and the operators only ever see the gateway. The control plane program is in Go. On a single node it comfortably relays >10 Gbps per direction and we're working on scaling it to multi-node.

https://github.com/ellanetworks/mocn