#bgp #mrt

bgp-models

Structs and other building blocks for BGP and MRT related Rust projects

38 releases

0.9.1 Mar 30, 2023
0.9.0-alpha-1 Jan 10, 2023
0.8.0 Aug 7, 2022
0.7.0 Jan 2, 2022
0.6.0-rc.3 Nov 29, 2021

#541 in Parser implementations

Download history 78/week @ 2023-10-29 11/week @ 2023-11-05 12/week @ 2023-11-12 7/week @ 2023-11-19 193/week @ 2023-11-26 32/week @ 2023-12-03 83/week @ 2023-12-10 5/week @ 2023-12-17 121/week @ 2023-12-24 5/week @ 2023-12-31 6/week @ 2024-01-07 7/week @ 2024-01-14 39/week @ 2024-01-21 160/week @ 2024-01-28 7/week @ 2024-02-04 128/week @ 2024-02-11

334 downloads per month
Used in ris-live-rs

MIT license

93KB
2K SLoC

bgp-models

bgp-models is a library that defines the basic BGP and MRT message data structures. This library aims to provide building blocks for downstream libraries working with BGP and MRT messages such as MRT parser or BGP table constructor.

Minimum Supported Rust Version

1.46.0

Supported RFCs

Most of the structs defined in this library are named after the formal definitions in a number of RFCs. Here is a list of them:

BGP

  • RFC 2042: Registering New BGP Attribute Types
  • RFC 3392: Capabilities Advertisement with BGP-4
  • RFC 4271: A Border Gateway Protocol 4 (BGP-4)
  • RFC 4456: BGP Route Reflection: An Alternative to Full Mesh Internal BGP (IBGP)
  • RFC 5065: Autonomous System Confederations for BGP
  • RFC 6793: BGP Support for Four-Octet Autonomous System (AS) Number Space
  • RFC 7911: Advertisement of Multiple Paths in BGP (ADD-PATH)
  • RFC 9072: Extended Optional Parameters Length for BGP OPEN Message Updates
  • RFC 9234: Route Leak Prevention and Detection Using Roles in UPDATE and OPEN Messages

MRT

  • RFC 6396: Multi-Threaded Routing Toolkit (MRT) Routing Information Export Format
  • RFC 6397: Multi-Threaded Routing Toolkit (MRT) Border Gateway Protocol (BGP) Routing Information Export Format with Geo-Location Extensions
  • RFC 8050: Multi-Threaded Routing Toolkit (MRT) Routing Information Export Format with BGP Additional Path Extensions

Communities

  • RFC 1977: BGP Communities Attribute
  • RFC 4360: BGP Extended Communities Attribute
  • RFC 5668: 4-Octet AS Specific BGP Extended Community
  • RFC 5701: IPv6 Address Specific BGP Extended Community Attribute
  • RFC 7153: IANA Registries for BGP Extended Communities Updates 4360, 5701
  • RFC 8097: BGP Prefix Origin Validation State Extended Community
  • RFC 8092: BGP Large Communities

Used By

Built with ❤️ by BGPKIT Team

https://bgpkit.com/favicon.ico

Dependencies

~1–1.8MB
~37K SLoC