The following examples show how MPLS VPN BGP local convergence can prevent traffic loss after a link failure. You can display
a detailed view of local link protection before, during, and after the Border Gateway Protocol (BGP) convergence by using
the
show bgp vpnv4
and
show mpls forwarding-table vrf
commands as shown in the following three-stage example.
Note |
The
show bgp vpnv4 unicast command is equivalent to the
show ip bgp vpnv4 command.
|
Example 1: Before the Link Failure
Both a primary path and a backup path have been configured:
Device# show bgp vpnv4 unicast all 172.16.0.1
BGP routing table entry for 100:1:172.16.0.1/32, version 2
Paths: (2 available, best #2, table v1)
Flag: 0x820
Advertised to update-groups:
1
100, imported path from 100:2:172.16.0.1/32
172.16.0.6 (metric 21) from 172.16.0.7 (172.16.0.7)
Origin incomplete, metric 0, localpref 100, valid, internal
Extended Community: RT:100:0
Originator: 172.16.0.6, Cluster list: 172.16.0.7
mpls labels in/out 16/17
100
172.16.1.1 from 172.16.1.1 (172.16.0.1)
Origin incomplete, metric 0, localpref 100, valid, external, best
Extended Community: RT:100:0
mpls labels in/out 16/nolabel
BGP routing table entry for 100:2:172.16.0.1/32, version 9
Paths: (1 available, best #1, no table)
Flag: 0x820
Not advertised to any peer
100
172.16.0.6 (metric 21) from 172.16.0.7 (172.16.0.7)
Origin incomplete, metric 0, localpref 100, valid, internal, best
Extended Community: RT:100:0
Originator: 172.16.0.6, Cluster list: 172.16.0.7
mpls labels in/out nolabel/17
Label information for both paths can be displayed:
Device# show bgp vpnv4 unicast all labels
Network Next Hop In label/Out label
Route Distinguisher: 100:1 (v1)
172.16.0.1/32 172.16.0.6 16/17
172.16.1.1 16/nolabel
172.16.0.5/32 172.16.0.4 nolabel/23
172.16.0.22/32 0.0.0.0 17/nolabel(v1)
172.16.0.44/32 172.16.0.4 nolabel/24
172.16.0.66/32 172.16.0.6 nolabel/21
172.16.1.0/24 172.16.1.1 18/nolabel
0.0.0.0 18/nolabel(v1)
172.16.5.0/24 172.16.0.4 nolabel/25
172.16.8.0/24 172.16.0.6 19/23
172.16.1.1 19/nolabel
Route Distinguisher: 100:2
172.16.0.1/32 172.16.0.6 nolabel/17
172.16.0.66/32 172.16.0.6 nolabel/21
172.16.8.0/24 172.16.0.6 nolabel/23
The PE1 (see the first figure above) forwarding table contains BGP best-path information:
Device# show mpls forwarding-table vrf v1 172.16.0.1 detail
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
16 No Label 172.16.0.1/32[V] 570 Et0/0 172.16.1.1
MAC/Encaps=14/14, MRU=1504, Label Stack{}
AABBCC000B00AABBCC000C000800
VPN route: v1
No output feature configured
Example 2: After the Link Failure and Before BGP Convergence
After the link failure on only one path, the backup path remains available (see the second figure above):
Device# show bgp vpnv4 unicast all 172.16.0.1
BGP routing table entry for 100:1:172.16.0.1/32, version 19
Paths: (1 available, best #1, table v1)
Not advertised to any peer
100, imported path from 100:2:172.16.0.1/32
172.16.0.6 (metric 21) from 172.16.0.7 (172.16.0.7)
Origin incomplete, metric 0, localpref 100, valid, internal, best
Extended Community: RT:100:0
Originator: 172.16.0.6, Cluster list: 172.16.0.7
mpls labels in/out 16/17
BGP routing table entry for 100:2:172.16.0.1/32, version 9
Paths: (1 available, best #1, no table)
Not advertised to any peer
100
172.16.0.6 (metric 21) from 172.16.0.7 (172.16.0.7)
Origin incomplete, metric 0, localpref 100, valid, internal, best
Extended Community: RT:100:0
Originator: 172.16.0.6, Cluster list: 172.16.0.7
mpls labels in/out nolabel/17
The label information for the backup path label can be displayed:
Device# show bgp vpnv4 unicast all labels
Network Next Hop In label/Out label
Route Distinguisher: 100:1 (v1)
172.16.0.1/32 172.16.0.6 16/17
172.16.0.5/32 172.16.0.4 nolabel/23
172.16.0.22/32 0.0.0.0 17/nolabel(v1)
172.16.0.44/32 172.16.0.4 nolabel/24
172.16.0.66/32 172.16.0.6 nolabel/21
172.16.1.0/24 172.16.0.6 nolabel/22
172.16.5.0/24 172.16.0.4 nolabel/25
172.16.8.0/24 172.16.0.6 19/23
Route Distinguisher: 100:2
172.16.0.1/32 172.16.0.6 nolabel/17
172.16.0.66/32 172.16.0.6 nolabel/21
172.16.1.0/24 172.16.0.6 nolabel/22
172.16.8.0/24 172.16.0.6 nolabel/23
The PE 1 (see the first figure above) forwarding table contains new label and next-hop information to direct traffic onto
the backup path:
Device# show mpls forwarding-table vrf v1 172.16.0.1 detail
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
16 17 172.16.0.1/32[V] 0 Et1/0 172.16.3.2
MAC/Encaps=14/22, MRU=1496, Label Stack{21 17}
AABBCC000D00AABBCC000C018847 0001500000011000
VPN route: v1
No output feature configured
Example 3: After Local Label Expiration and BGP Reconvergence
Because the local label preservation window has expired, the replacement local label is now gone from the PE 1 forwarding
table information:
Device# show mpls forwarding-table vrf v1 172.16.0.1 detail
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
None 17 172.16.0.1/32[V] 0 Et1/0 172.16.3.2
MAC/Encaps=14/22, MRU=1496, Label Stack{21 17}
AABBCC000D00AABBCC000C018847 0001500000011000
VPN route: v1
No output feature configured
The new BGP information reverts to the configuration shown in the first figure above:
Device# show bgp vpnv4 unicast all 172.16.0.1
BGP routing table entry for 100:1:172.16.0.1/32, version 23
Paths: (1 available, best #1, table v1)
Not advertised to any peer
100, imported path from 100:2:172.16.0.1/32
172.16.0.6 (metric 21) from 172.16.0.7 (172.16.0.7)
Origin incomplete, metric 0, localpref 100, valid, internal, best
Extended Community: RT:100:0
Originator: 172.16.0.6, Cluster list: 172.16.0.7
mpls labels in/out nolabel/17
BGP routing table entry for 100:2:172.16.0.1/32, version 9
Paths: (1 available, best #1, no table)
Not advertised to any peer
100
172.16.0.6 (metric 21) from 172.16.0.7 (172.16.0.7)
Origin incomplete, metric 0, localpref 100, valid, internal, best
Extended Community: RT:100:0
Originator: 172.16.0.6, Cluster list: 172.16.0.7
mpls labels in/out nolabel/17
Device# show bgp vpnv4 unicast all labels
Network Next Hop In label/Out label
Route Distinguisher: 100:1 (v1)
172.16.0.1/32 172.16.0.6 nolabel/17
172.16.0.5/32 172.16.0.4 nolabel/23
172.16.0.22/32 0.0.0.0 17/nolabel(v1)
172.16.0.44/32 172.16.0.4 nolabel/24
172.16.0.66/32 172.16.0.6 nolabel/21
172.16.1.0/24 172.16.0.6 nolabel/22
172.16.5.0/24 172.16.0.4 nolabel/25
172.16.8.0/24 172.16.0.6 nolabel/23
Route Distinguisher: 100:2
172.16.0.1/32 172.16.0.6 nolabel/17
172.16.0.66/32 172.16.0.6 nolabel/21
172.16.1.0/24 172.16.0.6 nolabel/22
172.16.8.0/24 172.16.0.6 nolabel/23