Disclosure up front: I run IPYE, a company that leases IP space. Most of this article is practical how-to; IPYE appears where a free /48, LOA, or ROA helps you try the work, with a short call to action at the end.
Public route collectors keep years of BGP history, but they only see what their peers send them. Your own router sees exactly the routes your upstreams give you, which is the view that matters when you investigate why traffic took a particular path last Tuesday. BIRD can write its routing table to disk in MRT format, the same format the public collectors publish, on a schedule. This guide sets that up on an edge announcing a free IPv6 /48 from IPYE, and shows how to read the dumps.
When this is useful
If your edge accepts only a default route, a dump contains little. MRT dumps become valuable when you take full or partial tables from upstreams or peers. They let you answer questions such as which path you used to reach a given network at a given time, when a route to a destination disappeared, or how your upstreams' routes changed after an incident. The same files work with the tools researchers use on public collector data.
The MRT protocol in BIRD
protocol mrt rib_dump {
table master6;
filename "/var/lib/bird/mrt/rib-%Y%m%d-%H%M.mrt";
period 900;
}
This dumps the master6 table, BIRD's default IPv6 routing table, every 900 seconds. The file name uses strftime patterns, so each dump gets its own timestamped file. Add a second protocol for master4 if you also carry IPv4.
BIRD writes table dumps in the TABLE_DUMP_V2 format, which includes each route's attributes, such as AS path, communities and next hop, and which peer it came from.
Create the directory with ownership for the BIRD user, validate and reload:
install -d -o bird -g bird /var/lib/bird/mrt
bird -p -c /etc/bird/bird.conf
birdc configure
birdc show protocols rib_dump
The protocol appears as up, and a new file appears in the directory after each period.
How big are the files
A full IPv6 table from one upstream holds a couple of hundred thousand routes, and a dump of it is tens of megabytes uncompressed. With two upstreams and a 15-minute period, that adds up over weeks. Compress completed files and delete them on a schedule:
find /var/lib/bird/mrt -name '*.mrt' -mmin +20 -exec zstd -q --rm {} \;
find /var/lib/bird/mrt -name '*.mrt.zst' -mtime +30 -delete
Run both from a systemd timer. MRT data compresses well, and most reading tools accept compressed input directly or through a pipe.
Read a dump
bgpdump is the classic reader:
zstdcat rib-20261124-1000.mrt.zst | bgpdump -m - | grep '|2001:4860::/32|'
-m prints one route per line with fields separated by vertical bars, including the time, peer, prefix, AS path and next hop. Filtering on a prefix shows every path your router had for it at the time of the dump.
Newer tools such as bgpkit-parser offer filtering by prefix, ASN or peer built in and are much faster on large files. Libraries exist for Python and other languages if you want to analyse dumps programmatically.
Questions you can answer
- which upstream carried traffic to a destination: compare the best path for its prefix across dumps from the time of a complaint
- when a route disappeared: find the first dump where a prefix is missing
- how stable a path is: count AS path changes for an important destination over a week
For your own /48 the dumps show little, since you originate it rather than receive it. To see how others route your prefix, combine local dumps with public collector data.
Updates as well as snapshots
Snapshots show state at intervals but miss what happened between them. For a complete record of every update, run a separate route collector with a tool that logs BGP updates in MRT format, or forward BMP data from your router to a collector. Snapshots alone are enough for most small networks and are much easier to manage.
Protect the data
Routing tables are not secret in the way passwords are, but they reveal your upstream relationships and internal routes. Keep the dump directory readable only by the BIRD user and administrators, and exclude internal-only tables from dumps if they contain routes you would rather not store.
The announcement itself
What you record here is how the Internet looks from your edge. The announcement that makes your /48 part of it relies on the LOA from the IPYE customer portal and the ROA that IPYE creates.
Next step
Claim a free /48, take a partial or full table from your upstream, and let BIRD write a dump every fifteen minutes so the next routing question has data behind it. Questions: ipye@turnel.com.
About IPYE
IPYE (https://ipye.com) leases IPv4, IPv6 and ASN space with instant setup. Your first IPv6 /48 is free for the first year, a real allocation you can announce on your own ASN, with a LOA from the portal and the ROA created automatically. ASN and region changes apply automatically. IPv4 /24 to /22 leases include LOA, ROA and per-/24 rDNS; WHOIS is editable on IPv6 /44 and larger. Locations: Los Angeles, New York, Ashburn, Salt Lake City, London, Amsterdam, Frankfurt. Claim your free /48: https://my.ipye.com/products/ipv6-rental. Questions: ipye@turnel.com.
Disclosure: I run IPYE
Top comments (0)