talira

BGP implemented in the Go Programming Language

open sourceApache-2.0self-hostablefree

GoBGP is an open source BGP implementation written from scratch in Go, designed for multicore CPUs and for automation: it's driven through a gRPC API (from Python, C++ or any gRPC language) as well as the gobgp CLI and configuration files in TOML, YAML, JSON or HCL, and it can be embedded in Go programs as a native BGP library. Its configuration follows an IETF vendor-neutral model. It works as a route server or route reflector and supports EVPN, Flowspec, RPKI, BGP-LS, SR Policy, add-paths, graceful restart, BFD, confederations, unnumbered BGP, peer groups, dynamic neighbors, MRT dumps and BMP. GoBGP doesn't program the kernel's routing table itself: it hands routes to the zebra daemon of FRRouting or Quagga for that. Apache 2.0.

Ways to install

Package managers

Problems it solves

  • control BGP sessions and routes from my own program over an API instead of editing a router config
  • embed a BGP speaker in a Go service to announce or learn routes
  • run a BGP route server for an internet exchange with per-peer policies
  • announce Flowspec rules to upstream routers to drop DDoS traffic
  • a BGP route reflector for our data center that our automation can drive
  • inject and withdraw BGP routes from a script during a failover
  • a BGP EVPN control plane for VXLAN on Linux hosts
  • validate BGP route origins against RPKI in a lightweight daemon
  • dump BGP tables to MRT files or send them to a BMP collector
  • run unnumbered BGP between leaf and spine switches on Linux

Features

  • gRPC API for managing the daemon from any gRPC language
  • gobgp command-line tool
  • Go native BGP library
  • configuration in TOML, YAML, JSON or HCL
  • route server and route reflector
  • policy based on an IETF vendor-neutral configuration model
  • EVPN, Flowspec, BGP-LS and SR Policy
  • RPKI origin validation
  • MRT dumps and BMP
  • graceful restart, add-paths, peer groups, dynamic neighbors, eBGP multihop, TTL security, BFD, confederations
View 3 more
  • unnumbered BGP
  • FIB updates through zebra from FRRouting or Quagga
  • Sentry error tracking and metrics

Limitations

  • Doesn't update the kernel routing table by itself: GoBGP uses the zebra daemon from FRRouting or Quagga for FIB changes2

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what GoBGP does.

  1. BIRD BIRD Internet Routing Daemon: BGP, OSPF, RIP and Babel with a powerful route filtering language
  2. ExaBGP The BGP swiss army knife of networking
  3. OpenBGPD Free implementation of BGP-4 that lets ordinary machines act as routers
  4. FRRouting Free and open source Internet routing protocol suite for Linux and Unix platforms

Compare GoBGP with the top 3