meshforumFeed
Menu
Protocols

B.A.T.M.A.N., Babel and OLSR: how mesh routing protocols differ

Three answers to the same question: which neighbour should carry this packet next.

2 min read / 5 December 2026

In short OLSR gives every node a map of the whole network. Babel shares distances between neighbours. B.A.T.M.A.N. only tracks the best next hop.

Every node in a mesh has to answer one question again and again: of the neighbours I can hear, which one should get this packet. The three protocols most often used in community networks answer it in different ways.

OLSR: everyone holds the map

OLSR is a link-state protocol. Each node discovers its neighbours, describes its links in control messages, and those messages are flooded through the network. Every node ends up with a picture of the full topology and computes shortest paths from it.

Flooding is expensive on a shared radio channel. OLSR reduces the cost with multipoint relays: each node picks a small set of neighbours that together reach everything two hops away, and only those neighbours rebroadcast its messages.

Babel: distances, not maps

Babel is a distance-vector protocol. A node does not learn the topology. It learns, from each neighbour, how far away each destination is by that route, adds the cost of the link to that neighbour, and keeps the best.

Classic distance-vector protocols can form loops while the network is changing. Babel uses sequence numbers and a feasibility condition to rule that out, and it is designed to work across both wired and wireless links with different cost metrics.

B.A.T.M.A.N.: just the next hop

B.A.T.M.A.N. came out of the Freifunk community in Germany. Each node periodically broadcasts a small originator message, which the others rebroadcast. A node notes which neighbour delivers a given originator's messages most reliably, and sends traffic for that originator through that neighbour.

No node knows a full route. Its later form, batman-adv, works at the link layer inside the Linux kernel, so the whole mesh appears to the devices attached to it as one switched network.

Choosing

  • For a network that is mostly static and where you want to inspect the topology, a link-state protocol is the easiest to reason about.
  • For mixed wired and wireless links, Babel's flexible metrics are an advantage.
  • For clients that need to roam between access points without changing address, a layer-2 mesh is the simplest to deploy.

All three are in active use, and the right choice depends more on the network than on the protocol.

Sources

  1. RFC 3626: Optimized Link State Routing Protocol (OLSR)
  2. RFC 8966: The Babel Routing Protocol
  3. B.A.T.M.A.N. (Wikipedia)
  4. Optimized Link State Routing Protocol (Wikipedia)
  5. Babel (protocol) (Wikipedia)