mrt_ingester
High-performance parser for MRT (Multi-threaded Routing Toolkit) routing data files.
Overview
This library parses MRT-formatted binary streams containing BGP routing information, as specified in RFC 6396 and RFC 8050.
Features
- Full support for all MRT record types defined in RFC 6396
- BGP Add-Path extensions (RFC 8050)
- Zero-copy design where possible
- API-compatible with the original
mrt-rscrate
Supported Record Types
| Type | Name | Description |
|---|---|---|
| 5 | BGP | Legacy BGP records (IPv4, 16-bit ASN) |
| 6 | RIP | RIP protocol records |
| 8 | RIPNG | RIPng protocol records |
| 9-10 | BGP4PLUS | Legacy BGP records (IPv6, 16-bit ASN) |
| 11 | OSPFv2 | OSPFv2 protocol records |
| 12 | TABLE_DUMP | RIB dump (one entry per record) |
| 13 | TABLE_DUMP_V2 | RIB dump v2 (multiple entries per record) |
| 16-17 | BGP4MP | Modern BGP records (IPv4/IPv6, 16/32-bit ASN) |
| 32-33 | ISIS | IS-IS protocol records |
| 48-49 | OSPFv3 | OSPFv3 protocol records |
Usage
use File;
use BufReader;
Data Sources
MRT files are available from:
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.