Unified MPLS, also called Seamless MPLS, builds LSPs between PEs in separate IGP domains without leaking PE loopbacks from one IGP into another. BGP labelled unicast carries the loopbacks and their labels between the domains. The border routers are route reflectors for that address family and set themselves as the next hop. A PE then needs an IGP route only to the border router of its own domain.
A provider normally uses it inside its own network, with the core, aggregation and access layers in separate IGP domains. In my lab, the two IGP domains are the two providers: SP-A runs OSPF, and SP-B runs IS-IS. In this stage, A-ASBR and B-ASBR exchange A-PE2’s and B-PE1’s loopbacks over a new sub-interface, Gi4.252, and each ASBR is the route reflector for its own PE. No customer traffic uses the LSP.
At the end of the stage, A-PE2’s traceroute to B-PE1’s loopback looks as below. Hop 1, A-P4, receives two labels:
A-PE2#traceroute 10.2.0.5 source lo0
Type escape sequence to abort.
Tracing the route to 10.2.0.5
VRF info: (vrf in name/id, vrf out name/id)
1 10.1.1.33 [MPLS: Labels 1407/1836 Exp 0] 9 msec 3 msec 5 msec
2 10.1.1.46 [MPLS: Label 1836 Exp 0] 4 msec 3 msec 5 msec
3 10.255.0.22 [MPLS: Label 46 Exp 0] 3 msec 3 msec 4 msec
4 10.2.1.41 [MPLS: Label 16500 Exp 0] 5 msec 5 msec 6 msec
5 * * *
6 10.2.1.26 20 msec * *
Topology file: topology.clab.yml · Addressing: ipam.md · Stage configs, 4 nodes (A-ASBR, A-PE2, B-ASBR, B-PE1): stage_configs/lab04-s5-unified-mpls/

Labelled eBGP on Gi4.252
A-ASBR and B-ASBR peer over Gi4.252, yet another dot1Q sub-interface in the global table on the physical link used for InterAS Options labs. As on Gi4.254 in the Option C post, IOS-XE added mpls bgp forwarding to the sub-interface when the labelled eBGP session came up:
A-ASBR#show run int gi4.252
Building configuration...
Current configuration : 159 bytes
!
interface GigabitEthernet4.252
encapsulation dot1Q 252
ip address 10.255.0.21 255.255.255.252
ipv6 address 2001:DB8:FF:FC::1/64
mpls bgp forwarding
end
A-ASBR sends B-ASBR one prefix, A-PE2’s loopback, 10.1.0.6/32, with a label:
ip prefix-list PL-SPA-UMPLS-EXPORT seq 5 permit 10.1.0.6/32
!
route-map RM-UMPLS-OUT permit 10
match ip address prefix-list PL-SPA-UMPLS-EXPORT
set mpls-label
!
router bgp 64501
neighbor 10.255.0.22 remote-as 64502
address-family ipv4
neighbor 10.255.0.22 activate
neighbor 10.255.0.22 route-map RM-UMPLS-OUT out
neighbor 10.255.0.22 send-label
exit-address-family
B-ASBR has the same configuration toward 10.255.0.21, with B-PE1’s loopback, 10.2.0.5/32, in PL-SPB-UMPLS-EXPORT.
Option C already carries A-PE1’s and B-PE2’s loopbacks between A-ASBR and B-ASBR, over Gi4.254. If the new session carried the same loopbacks, each ASBR would learn them twice from the same router. In order to have a clear separation for this stage, I used A-PE2 and B-PE1 loopbacks.
A-ASBR’s labelled-unicast table has B-PE1’s loopback from 10.255.0.22 with label 46, and Option C’s 10.2.0.6 and 10.2.0.7 from 10.255.0.10:
A-ASBR#show bgp ipv4 unicast labels
Network Next Hop In label/Out label
10.1.0.5/32 10.1.0.5 1807/imp-null
10.1.0.6/32 10.1.0.6 1806/imp-null
10.1.0.6 1806/imp-null
10.1.0.7/32 10.1.0.7 1809/imp-null
10.1.0.8/32 0.0.0.0 imp-null/nolabel
10.2.0.5/32 10.255.0.22 1836/46
10.2.0.6/32 10.255.0.10 1813/24
10.2.0.7/32 10.255.0.10 1810/37
B-ASBR’s table has A-PE2’s loopback from 10.255.0.21 with label 1806, and Option C’s SP-A loopbacks from 10.255.0.9:
B-ASBR#show bgp ipv4 unicast labels
Network Next Hop In label/Out label
10.1.0.5/32 10.255.0.9 31/1807
10.1.0.6/32 10.255.0.21 18/1806
10.1.0.7/32 10.255.0.9 36/1809
10.2.0.5/32 10.2.0.5 46/imp-null
10.2.0.5 46/imp-null
10.2.0.6/32 10.2.0.6 24/imp-null
10.2.0.7/32 10.2.0.7 37/imp-null
10.2.0.8/32 0.0.0.0 imp-null/nolabel
A-ASBR and B-ASBR as Route Reflectors
Before this stage, A-RR was SP-A’s route reflector for labelled unicast. A-PE1, A-PE2 and A-ASBR were its clients and advertised their loopbacks to it, as set up in the BGP labelled unicast post. For Option C, A-ASBR received B-PE2’s and B-RR’s loopbacks from B-ASBR over Gi4.254 and passed them to A-RR with itself as the next hop. A-RR reflected them to its clients. SP-B was built the same way around B-RR. A-PE2’s and B-PE1’s loopbacks did not cross between the providers.

This stage adds one iBGP session in each provider, between A-ASBR and A-PE2, and between B-ASBR and B-PE1. Each ASBR is the route reflector on its new session. On A-ASBR:
router bgp 64501
neighbor 10.1.0.6 remote-as 64501
neighbor 10.1.0.6 update-source Loopback0
address-family ipv4
neighbor 10.1.0.6 activate
neighbor 10.1.0.6 send-label
neighbor 10.1.0.6 route-reflector-client
neighbor 10.1.0.6 next-hop-self all
exit-address-family
A-ASBR learns 10.2.0.5 over eBGP with next hop 10.255.0.22, an address that is not in SP-A’s OSPF. next-hop-self changes the next hop to A-ASBR’s loopback, 10.1.0.8. With all, A-ASBR also changes the next hop on routes it reflects from its iBGP peers.
On A-PE2, the new neighbor is A-ASBR:
router bgp 64501
neighbor 10.1.0.8 remote-as 64501
neighbor 10.1.0.8 update-source Loopback0
address-family ipv4
neighbor 10.1.0.8 activate
neighbor 10.1.0.8 send-label
exit-address-family
B-ASBR has the same configuration for B-PE1, 10.2.0.5. On B-PE1, the IOS-XR side, the new neighbor gets the labelled-unicast address family:
router bgp 64502
neighbor 10.2.0.8
remote-as 64502
update-source Loopback0
address-family ipv4 labeled-unicast
The full files are A-ASBR.ios, A-PE2.ios, B-ASBR.ios and B-PE1.ios.

A-ASBR now sends B-PE1’s loopback to A-PE2 directly and to A-RR over the existing session. A-RR reflects it to A-PE2, so A-PE2 has two paths, both with next hop 10.1.0.8 and label 1836:
A-PE2#show bgp ipv4 unicast 10.2.0.5/32
BGP routing table entry for 10.2.0.5/32, version 26
Paths: (2 available, best #2, table default)
Not advertised to any peer
Refresh Epoch 1
64502
10.1.0.8 (metric 3) from 10.1.0.7 (10.1.0.7)
Origin IGP, metric 0, localpref 100, valid, internal
Originator: 10.1.0.8, Cluster list: 10.1.0.7
mpls labels in/out nolabel/1836
rx pathid: 0, tx pathid: 0
Refresh Epoch 1
64502
10.1.0.8 (metric 3) from 10.1.0.8 (10.1.0.8)
Origin IGP, metric 0, localpref 100, valid, internal, best
mpls labels in/out nolabel/1836
rx pathid: 0, tx pathid: 0x0
The first path comes from A-RR, which adds its cluster ID, 10.1.0.7, to the cluster list. The second path comes from A-ASBR directly. For the reflected path, BGP compares the originator ID, 10.1.0.8, which is A-ASBR’s router ID, so the two paths tie, and BGP picks the one with the shorter cluster list. The two paths have the same next hop and label, and the choice does not change forwarding.
B-PE1 has the mirror entry for A-PE2’s loopback, with next hop 10.2.0.8, B-ASBR, and label 18:
RP/0/RP0/CPU0:B-PE1#show bgp ipv4 labeled-unicast 10.1.0.6/32
Mon Aug 10 13:06:34.490 UTC
BGP routing table entry for 10.1.0.6/32
Versions:
Process bRIB/RIB SendTblVer
Speaker 13 13
Local Label: 24022
Last Modified: Aug 10 12:55:51.182 for 00:10:43
Paths: (2 available, best #2)
Not advertised to any peer
Path #1: Received by speaker 0
Not advertised to any peer
64501
10.2.0.8 (metric 30) from 10.2.0.7 (10.2.0.8)
Received Label 18
Origin IGP, metric 0, localpref 100, valid, internal, labeled-unicast
Received Path ID 0, Local Path ID 0, version 0
Originator: 10.2.0.8, Cluster list: 10.2.0.7
Path #2: Received by speaker 0
Not advertised to any peer
64501
10.2.0.8 (metric 30) from 10.2.0.8 (10.2.0.8)
Received Label 18
Origin IGP, metric 0, localpref 100, valid, internal, best, group-best, labeled-unicast
Received Path ID 0, Local Path ID 1, version 13
In this lab, the new session only adds a second path: A-RR already gives A-PE2 B-PE1’s loopback with the same next hop and label. When Unified MPLS runs inside one provider, the border router learns the far PE’s loopback over iBGP and has to be a route reflector to pass it on. A-ASBR learns B-PE1’s loopback over eBGP, and BGP sends an eBGP route to iBGP peers, such as A-RR, without a route reflector.
The new sessions did not reset the existing ones. A-PE2’s session to A-RR stayed up when its session to A-ASBR came up:
A-PE2#show bgp ipv4 unicast sum
BGP router identifier 10.1.0.6, local AS number 64501
BGP table version is 26, main routing table version 26
7 network entries using 1736 bytes of memory
13 path entries using 1768 bytes of memory
3/3 BGP path/bestpath attribute entries using 840 bytes of memory
4 BGP rrinfo entries using 160 bytes of memory
3 BGP AS-PATH entries using 88 bytes of memory
1 BGP community entries using 24 bytes of memory
12 BGP extended community entries using 956 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 5572 total bytes of memory
BGP activity 126/81 prefixes, 336/285 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.1.0.7 4 64501 20269 22202 26 0 0 1w6d 6
10.1.0.8 4 64501 22 17 26 0 0 00:10:46 6
A-ASBR’s Option C session to B-ASBR stayed up too:
A-ASBR#show bgp ipv4 unicast neighbors 10.255.0.10 | include ^BGP|Established|up for
BGP neighbor is 10.255.0.10, remote AS 64502, external link
BGP state = Established, up for 1w3d
Two IGPs Without Redistribution
On A-PE2, B-PE1’s loopback is a BGP route through 10.1.0.8:
A-PE2#show ip route 10.2.0.5
Routing entry for 10.2.0.5/32
Known via "bgp 64501", distance 200, metric 0
Tag 64502, type internal
Last update from 10.1.0.8 00:16:01 ago
Routing Descriptor Blocks:
* 10.1.0.8, from 10.1.0.8, 00:16:01 ago
Route metric is 0, traffic share count is 1
AS Hops 1
Route tag 64502
MPLS label: 1836
A-PE2#show ip route 10.1.0.8
Routing entry for 10.1.0.8/32
Known via "ospf 1", distance 110, metric 3, type inter area
Last update from 10.1.1.33 on GigabitEthernet3, 3w4d ago
Routing Descriptor Blocks:
* 10.1.1.33, from 10.1.0.4, 3w4d ago, via GigabitEthernet3
Route metric is 3, traffic share count is 1
Repair Path: 10.1.1.29, via GigabitEthernet2
SP-B’s addresses start with 10.2, and A-PE2’s OSPF database for SP-A’s IGP doesn’t have them.
A-PE2#show ip ospf 1 database | include 10.2.
A-PE2#
On B-PE1, the IS-IS routes have no SP-A address, and A-PE2’s loopback is a BGP route through B-ASBR, 10.2.0.8:
RP/0/RP0/CPU0:B-PE1#show route isis | i 10.1.
Mon Aug 10 13:09:17.155 UTC
RP/0/RP0/CPU0:B-PE1#show route 10.1.0.6/32
Mon Aug 10 13:09:21.846 UTC
Routing entry for 10.1.0.6/32
Known via "bgp 64502", distance 200, metric 0, [ei]-bgp
Tag 64501, type internal
Installed Aug 10 12:55:51.325 for 00:13:31
Routing Descriptor Blocks
10.2.0.8, from 10.2.0.8
Route metric is 0
No advertising protos.
RP/0/RP0/CPU0:B-PE1#
The core routers A-P1 and B-P1 have no route to the far PE. A-P1 in SP-A:
A-P1#show ip route 10.2.0.5
% Subnet not in table
A-P1#
B-P1 in SP-B, hop 4 of the traceroute:
RP/0/RP0/CPU0:B-P1#show ip route 10.1.0.6/32
Mon Aug 10 13:10:36.001 UTC
% Network not in table
The Path from A-PE2 to B-PE1
The CEF entry for B-PE1’s loopback has two labels added by A-PE2: 1836 from A-ASBR for 10.2.0.5, and 1407 from A-P4 for 10.1.0.8:
A-PE2#show ip cef 10.2.0.5 detail
10.2.0.5/32, epoch 2, flags [rib defined all labels]
recursive via 10.1.0.8 label 1836
nexthop 10.1.1.33 GigabitEthernet3 label [1407|1310]-(local:1610)
repair: attached-nexthop 10.1.1.29 GigabitEthernet2
nexthop 10.1.1.29 GigabitEthernet2, repair
A-PE2 runs LDP, so 1407 is A-P4’s LDP label for A-ASBR’s loopback; A-P4 allocates labels from 1400 to 1499. 1310 is A-P3’s label on the repair path through Gi2.
A-PE2’s traceroute shows the label stack on each hop:
A-PE2#traceroute 10.2.0.5 source lo0
Type escape sequence to abort.
Tracing the route to 10.2.0.5
VRF info: (vrf in name/id, vrf out name/id)
1 10.1.1.33 [MPLS: Labels 1407/1836 Exp 0] 9 msec 3 msec 5 msec
2 10.1.1.46 [MPLS: Label 1836 Exp 0] 4 msec 3 msec 5 msec
3 10.255.0.22 [MPLS: Label 46 Exp 0] 3 msec 3 msec 4 msec
4 10.2.1.41 [MPLS: Label 16500 Exp 0] 5 msec 5 msec 6 msec
5 * * *
6 10.2.1.26 20 msec * *
- Hop 1, A-P4, receives 1836 under 1407. A-P4 is the penultimate hop for 10.1.0.8 and removes 1407.
- Hop 2, A-ASBR, receives 1836, swaps it for 46, and sends the packet out Gi4.252. B-ASBR is directly connected, so the packet crosses the link with one label.
- Hop 3, B-ASBR, receives 46. B-PE1 advertised implicit null for its own loopback, so B-ASBR replaces 46 with 16500, B-PE1’s SR label, and sends the packet to B-P1.
- Hop 4, B-P1, receives 16500. Its direct link to B-PE1 has IS-IS metric 100 since the Flex-Algo post, so it sends the packet to B-P2.
- Hop 5, B-P2, did not answer the probes.
- Hop 6, B-PE1, receives an IP packet.
The two ASBRs’ forwarding tables include the swaps from hops 2 and 3. A-ASBR:
A-ASBR#show mpls forwarding-table | i Gi4.252
1836 46 10.2.0.5/32 3012 Gi4.252 10.255.0.22
1839 Pop Label 10.255.0.22/32 0 Gi4.252 10.255.0.22
B-ASBR, where the second 16500 row is its own SR entry for the same prefix, and the rows with a route distinguisher belong to VPN routes from B-PE1:
B-ASBR#show mpls forwarding-table | i 10.2.0.5
25 24011 10.2.0.5:10:10.2.10.0/30 \
26 24012 10.2.0.5:10:10.10.0.3/32 \
35 24013 10.2.0.5:30:10.30.0.2/32 \
46 [M] 16500 10.2.0.5/32 3312 Gi2 10.2.1.41
16500 [M] 16500 10.2.0.5/32 3312 Gi2 10.2.1.41

In the other direction, B-PE1 sends packets for A-PE2’s loopback with label 18 toward B-ASBR, 10.2.0.8:
RP/0/RP0/CPU0:B-PE1#show mpls forwarding | i 10.1.0.6
Mon Aug 10 13:13:29.920 UTC
24022 18 10.1.0.6/32 10.2.0.8 1556
B-ASBR swaps 18 for 1806, A-ASBR’s label for 10.1.0.6, and A-ASBR sends the packet to A-PE2 over SP-A’s LDP.
What’s Next
The next post covers BIDIR-PIM with a phantom RP on SP-A.
Leave a Reply