What You Trade for One Binary

Site Admin · 29 Nov 2026 · Routing & Protocols

GoBGP gives you one binary, a gRPC control plane and a Go library. FRR, BIRD and OpenBGPD give you parser maturity measured in decades. This part compares them honestly, including where each alternative wins, because the trade is the series' subject.

GoBGP's advantages are real: one static binary, a gRPC API, and a library you
can import. So are the alternatives' advantages: decades of parser hardening
and filter languages built by people who run exchange fabrics. This part names
both sides honestly.

What GoBGP gives you

A single static binary. No C libraries, no shared objects, no packaging
tree. Copy it into a container, run it, done. For cloud-native deployments
that is a categorical advantage, not a convenience.

A programmable interface. The gRPC API is the primary control surface. You
can add prefixes, inspect the RIB, watch events, and drive policy from code.
The CLI is a client, not the product.

A library. The BGP engine is importable Go. A controller can embed a
speaker and announce prefixes without running a separate daemon or shelling
out. No other mature open-source BGP stack offers that in the same shape.

Breadth in one engine. IPv4/IPv6 unicast, EVPN, BGP-LS, flowspec, VPN
families, ADD-PATH, route server and route reflector — one codebase, one
release cadence.

Memory safety. Go's runtime removes the buffer-overflow class that has
produced decades of C router CVEs. That is a real reduction in one category of
risk.

What the alternatives give you

FRR is the default open-source routing suite: BGP, OSPF, IS-IS, RIP, PIM,
zebra, and a policy engine, deployed on Linux routers and by service providers
for years. It is bigger, older, and far more exercised. Its BGP parser has been
fuzzed and deployed against a wider range of peers than GoBGP's.

BIRD is small, fast, and has a filter language that network engineers
genuinely like. It is common at exchanges and in large enterprises. Its
codebase is compact and its BGP implementation is mature. For pure IPv4/IPv6
BGP with rich policy, it is often the better engineering choice.

OpenBGPD is the OpenBSD project's implementation, built around privilege
separation: the session engine and the parent process have different jobs and
different privileges. The portable version runs on Linux. Its feature set is
deliberately narrower, and its security design is the reason people choose it.

Vendor stacks — Cisco, Juniper, Arista — are tested against the installed
base, supported by someone accountable, and slow to change. They cost money
and configuration effort, and their bugs are not less real; they are simply
found and fixed behind a support contract.

The honest scoreboard

Requirement Best fit
Embed a BGP speaker in a Go program GoBGP
Full routing suite on Linux FRR
Rich policy, small footprint, exchange edge BIRD
Least privilege, security-first design OpenBGPD
Vendor support and accountability Cisco/Juniper/Arista
Programmatic control over gRPC GoBGP
Decades of peer-diversity hardening FRR / BIRD / vendors

GoBGP does not win the maturity column. It wins the programmability column,
and it wins it decisively. The trade is exactly the one this series is about:
a younger codebase with a broad, fast-moving parser surface, chosen for
operational convenience.

The trade written as a sentence

You are exchanging some of the parser hardening that comes from twenty years
of carrying other networks' traffic for the ability to run BGP as a library in
a container. That is a reasonable trade for many deployments. It is a trade,
not a free lunch, and the rest of this series prices it.

Next: Part 5 — inside the UPDATE parser: a message format where every length
is chosen by the sender.