rustbgpd

An API-first BGP daemon in Rust for route servers and route reflectors

Image 1 of 2: rbgp.rs site with the crab mascot at the center of a peer mesh and measured withdraw times

A BGP daemon for internet exchanges, route reflectors and network automation: peers, policy and route injection driven over gRPC or the rbgp CLI, a policy language with its own unit tests and dry runs against the live RIB, route decisions explained, and RPKI, ASPA, Add-Path, FlowSpec, BMP and MRT.

  • 0.58 sIRR reload p50
  • 5,000Route-server peers run

Trade-offs

  • One task owns the whole RIB and peers send updates over a bounded channel: no locks and natural backpressure, but every update is serialized, a known ceiling at very high update rates.
  • The session state machine never fails: any unexpected event sends a notification and drops to Idle, so callers cannot tell an expected event from an error without reading the actions.
  • The gRPC API listens on a Unix socket with owner-only permissions by default, and TCP is opt-in with bearer tokens or mTLS, so remote control takes explicit setup.

Q&A2

Policies live in .rpol files with named sets and their own unit tests. They compile offline, and a dry run applies a candidate to the live RIB read-only, reporting accepted, rejected and modified counts, term hits and per-attribute diffs.

Reviews

Loading reviews

    More from the team

    • xfriperf3 alternative with a live TUI, QUIC and multi-client server

    More in Networking

    See all 23 →
    • blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
    • SnitchPer-app network monitor and outbound firewall for the desktop
    • ConduitSSH, Mosh and SFTP client for phones with no account and no cloud sync
    • XDPerfXDP traffic generator with WASM packet plugins
    • ADNSAndroid Private DNS controller with a native NextDNS dashboard and no VPN
    • Reticulum Mobile AppOff-grid encrypted messaging over LoRa or TCP on the Reticulum mesh, for phones

    More in gRPC

    See all 8 →
    • go-ledgerMulti-tenant double-entry payment ledger API in Go, built in public
    • ResonanceA local-first API client with no account, collections kept as YAML files
    • RRQClosed-loop payment ledger on sharded Postgres with a Kafka outbox
    • Crap CMSHeadless CMS in one Rust binary, with Lua hooks and a gRPC API
    • AdvisKVA small, complete distributed key-value store in C++17 on Raft
    • MycelA declarative microservice runtime: describe the connections, get the service

    More in Rust

    See all 146 →
    • PaganelData migration engine that verifies the destination down to the row
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • AudioRouterVisual audio router for Windows 11: route, process and record on a canvas
    • ai-memoryPersistent memory for MCP clients in one Rust binary over SQLite
    • AntirionAI gateway in one Rust binary, with the admin console built in
    • jc-rsjc rewritten as one static binary that turns command output into JSON