Skip to main content

BGP-LS

BGP-LS distributes network topology information through BGP. Use it to test controllers, planning systems, SDN components, and devices that receive link-state data through BGP instead of participating directly in an IGP.

BGP-LS is configured within a BGP session. Create the BGP session first, enable BGP-LS for that session, and then define its nodes, links, and prefixes.

Table 219 — General BGP-LS Parameters

NameDescriptionValue
Protocol IDSource of link-state informationIS-IS L1, IS-IS L2, OSPFv2, or OSPFv3
BGP-LS IdentifierBGP-LS domain identifier0 or the value used on the testbed
NodesTopology nodesAdd the ASN, IGP Router ID, name, and router-id
LinksLinks between nodesAdd local/remote nodes, addresses, metrics, and TE parameters
PrefixesPrefixes associated with nodesAdd the prefix, length, metric, route tag, and SID
Bulk JSONBulk topology uploadUse to import a large topology from an external system

Table 220 — BGP-LS Node Parameters

NameDescriptionValue
ASNNode autonomous systemSpecify the ASN
IGP Router IDNode identifier in the IGPSystem ID for IS-IS; Router ID for OSPF
BGP-LS IDAdditional domain identifierUse as required
OSPF AreaArea ID for an OSPF topologyFor example, 0.0.0.0
Node nameHuman-readable node nameUsed to simplify analysis
Node flagsNode flagsSet as required
IPv4/IPv6 Router IDNode Router IDSpecify the addresses to advertise through BGP-LS
IS-IS Area IDArea ID for IS-ISFor example, 49.0001
SR capabilitiesSegment Routing capabilitiesSpecify SRGB base/range and flags when testing SR
SR algorithmsSegment Routing algorithmsSpecify the supported algorithms

Table 221 — BGP-LS Link Parameters

NameDescriptionValue
Local ASN / Remote ASNASN of the local and remote nodesSpecify both ends of the link
Local / Remote IGP Router IDIGP Router ID of the local and remote nodesMust match the defined nodes
Link local/remote IDLink identifiersUsed to identify the link precisely
IPv4/IPv6 interface addressLocal interface addressSpecify the address on the link
IPv4/IPv6 neighbor addressNeighbor addressSpecify the remote-end address
MT IDMulti-topology ID0 for the basic scenario
IGP metricLink IGP metricSpecify the path metric
TE default metricTraffic Engineering metricUsed in TE scenarios
Admin groupLink administrative groupUsed for constraint-based routing
Metric typeMetric typeFor example, constant
Adjacency SID labelAdj-SID labelSet for SR scenarios
Adjacency SID flagsAdj-SID flagsSpecify the flags being tested

Table 222 — BGP-LS Prefix Parameters

NameDescriptionValue
Local ASNASN of the node that owns the prefixMust match the node
Local IGP Router IDNode IGP Router IDMust match the node
PrefixPrefix addressFor example, 10.0.0.0
Prefix lengthMask lengthFor example, 24
MT IDMulti-topology ID0 for the basic scenario
OSPF route typeOSPF route typeSet for OSPF topologies
Prefix metricPrefix metricSpecify the IGP value
Route tag / Extended route tagRoute tagsUsed for policy and filtering
Prefix SID labelPrefix-SID labelSet for SR scenarios
Prefix SID flagsPrefix-SID flagsSpecify as required

BGP-LS works well with automatically generated IS-IS/OSPF topologies: validate the IGP model first and then export it through BGP-LS. For large topologies, use Bulk JSON instead of entering nodes and links manually.