Skip to content

bgp epe

Thomas Mangin edited this page Sep 28, 2026 · 1 revision

Pre-Alpha. This page describes behavior that may change.

BGP Egress Peer Engineering (RFC 9086). The bgp-epe plugin gives each configured eBGP peer a PeerNode SID, installs the matching MPLS label, and publishes the segment for BGP-LS export.

Category

Link state and traffic engineering.

Configuration

plugin {
    internal epe { use bgp-epe; }
}

bgp-epe {
    srgb {
        lower-bound 900000;
        upper-bound 900999;
    }
    peer 198.51.100.1 {
        sid-index 1;
        weight 0;
    }
}

bgp {
    peer transit-a {
        connection { remote { ip 198.51.100.1; } }
        session { asn { remote 64500; } }
        attach process epe {
            receive [ state ];
        }
    }
}
Leaf Type Default Meaning
srgb/lower-bound 16 to 1048575 required First label of the local SRGB reserved for EPE.
srgb/upper-bound 16 to 1048575 required Last label, at least the lower bound.
peer <address> list, 1 to 32768 Remote transport address of the BGP session.
peer/sid-index 0 to 1048559 required Unique offset into the SRGB. Stable across restarts and session flaps.
peer/weight uint8 0 Load-balancing weight advertised in the PeerNode SID attribute.

The SRGB must be reserved for EPE alone and must not overlap another label producer. bgp-epe is a presence container: writing it starts the producer and removing it stops it.

Behaviour

  • While a configured peer's session is Established, its label is installed as pop-and-forward to that peer through the native MPLS FIB. The SID is advertised only after the installation is acknowledged.
  • Both endpoints' ASNs and BGP identifiers come from the live session. The local address is the connected TCP endpoint, even when the configured local IP is auto.
  • An index-encoded PeerNode SID is published with the local node's SRGB. Session loss, removal from the configuration, or a failed replacement removes the label and withdraws the advertisement.
  • Before its first installation, including after an error exit, the producer clears labels a previous instance left behind. A refused cleanup blocks installation and advertisement.
  • Configure bgp-ls-export to send the segments to collectors.

Not implemented: PeerAdj and PeerSet segments, and SRv6 EPE SIDs.

Source

main/internal/component/bgp/plugins/epe/

See also

  • BGP-LS export for advertising EPE state.
  • MPLS for the label forwarding plane.
  • Peers for BGP session configuration.

Adapted from main/docs/architecture/wire/nlri-bgpls.md.

Home

About

First Steps

Configuration

Operation

Interfaces

Plugins

Plugin Development

Chaos Testing

Blueprints

Development

Reference

Clone this wiki locally