Traffic Engineering Database

Build the TED from BGP-LS through GoBGP, for dynamic paths, router-ID endpoints, and SID validation.

The Traffic Engineering Database (TED) is Pola’s representation of the network topology. polad builds it from BGP-LS (RFC 9552) routes received by a GoBGP instance.

The TED is used for:

Without a TED, Pola can provision only explicit paths with address endpoints, and SID validation must be disabled with --no-sid-validate.

Enable the TED

global:
  ted:
    enable: true
    source: "gobgp"
    asn: 65000
  gobgp:
    grpcClient:
      address: "127.0.0.1"
      port: 50051

asn is the AS number of the topology. gobgp.grpcClient specifies GoBGP’s gRPC API endpoint. GoBGP uses port 50051 by default, so configure polad’s own gRPC server to use a different port (see Configuration).

To run without a TED, keep the section and set enable: false:

global:
  ted:
    enable: false

Configure GoBGP

GoBGP needs a BGP session with a router that exports IGP topology into BGP-LS, using the ls address family. A minimal gobgpd configuration:

global:
  config:
    as: 65000
    router-id: 10.255.0.254
neighbors:
  - config:
      neighbor-address: 10.100.0.1
      peer-as: 65000
    transport:
      config:
        local-address: 10.100.0.254
    afi-safis:
      - config:
          afi-safi-name: ls

The router must also be configured to advertise its IS-IS or OSPF database into BGP-LS, including SR information (SRGB, Prefix-SIDs, Adj-SIDs, SRv6 SIDs, and SID structures).

How the TED is updated

  • At startup, polad reads the BGP-LS routes from GoBGP and builds the TED.
  • It then watches GoBGP for changes. Each change to GoBGP’s Adj-RIB-In, in any address family, resets a 5-second timer. When the timer expires, polad reads all BGP-LS routes again and replaces the TED. Continuous changes postpone the refresh.
  • If the watch stream breaks, polad reconnects every 10 seconds and then refreshes the TED.
  • If the initial read fails, polad retries when GoBGP reports a change or the watch stream reconnects after a break.
  • If any BGP-LS route cannot be converted, the whole refresh is discarded and the previous TED is kept. The error is logged. Examples are an NLRI with multiple paths in GoBGP, a node with more than one SRGB range, and BGP-LS SR Policy routes.

Use pola ted to see what polad currently holds.

What the TED contains

  • Nodes, keyed by IGP router ID. A dual-stack node is one node. Nodes also contain their advertised SR-Algorithms and Flexible Algorithm Definitions (FADs; RFC 9350, RFC 9351).
  • Prefixes with a Prefix-SID per advertised algorithm, and the SRGB.
  • Links with top-level IGP, TE, delay, and min-delay metrics, administrative groups (including the Extended Administrative Group), SRLGs, Adj-SIDs, and SRv6 End.X SIDs.
  • Application-Specific Link Attributes (ASLA, RFC 9294): application masks and application-scoped affinity, SRLGs, TE metric, delay, and min-delay. Flex-Algo selects among these as described in Link attributes.
  • SRv6 SIDs with endpoint behavior and SID structure.

Information not listed here, such as MSD, bandwidth, the SRv6 Locator TLV, and FAPM, is not stored; see Not supported. A top-level TE, delay, or min-delay metric of 0 is treated as not advertised. Inside ASLA, 0 is a valid value.

Constraints

  • GoBGP is the only TED source. The connection to GoBGP is plaintext gRPC without authentication.
  • One AS only: nodes, prefixes, and SIDs from other AS numbers are ignored, and so are links to them.
  • One path per BGP-LS NLRI: if GoBGP receives the same NLRI from several BGP-LS peers (for example, redundant BGP-LS speakers or route reflectors), every refresh fails and the TED is not updated while the duplicates exist. Peer GoBGP with a single BGP-LS speaker.

Initial synchronization

With the TED enabled, polad starts with an empty, unsynchronized TED. It becomes synchronized after the first complete read from GoBGP, even if that read returns no BGP-LS routes. PCEP sessions can be established before that point. Until then, polad defers path computation for PCC reports; see Dynamic Paths.

Requests through the gRPC API and the CLI are not deferred. While the TED has no nodes, dynamic paths and SID validation fail with TED_NOT_SYNCED, and router-ID endpoints fail with INVALID_REQUEST. These errors also occur after synchronization if the TED becomes empty, for example because no BGP-LS node matches global.ted.asn.

Last modified December 3, 2026: feat: add ASLA (34bd43d)