Once link protection is enabled on the required RSVP interfaces and primary LSP, the bypass LSPs are prepared.
Router 1
user@Router1> show mpls lsp
Ingress LSP: 1 sessions To From State Rt ActivePath P LSPname 10.245.71.52 10.245.71.51 Up 1 path1 * Protected_LSP
# This is the main LSP.
Total 1 displayed, Up 1, Down 0 Egress LSP: 0 sessions Total 0 displayed, Up 0, Down 0 Transit LSP: 1 sessions To From State Rt Style Labelin Labelout LSPname 10.245.71.52 10.245.271.53 Up 1 1 SE 100003 0 Bypass->10.31.2.1
# This is the bypass LSP from Router 3 to Router 2.
Total 1 displayed, Up 1, Down 0 user@Router1> show rsvp session detail Ingress RSVP: 2 sessions 10.245.71.52 From: 10.245.71.51, LSPstate: Up, ActiveRoute: 1 LSPname: Protected_LSP
# This is the main LSP. Notice that a backup LSP is not signaled when the main LSP is still up.
Resv style: 1 SE, Label in: -, Label out: 100007 Time left: -, Since: Thu Aug 8 12:13:24 2002 Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500 Port number: sender 2 receiver 33 protocol 0 Link protection desired Type: Link protected LSP PATH rcvfrom: localclient PATH sentto: 10.31.1.2 (so-7/3/2.0) 36 pkts RESV rcvfrom: 10.31.1.2 (so-7/3/2.0) 38 pkts Explct route: 10.31.1.2 10.31.2.1 Record route: <self> 10.31.1.2 10.31.2.1 10.245.271.53 From: 10.245.71.51, LSPstate: Up, ActiveRoute: 0 LSPname: Bypass->10.31.1.2
# This is the bypass from Router 1 to Router 2. This also appears in show mpls lsp above.
Resv style: 1 SE, Label in: -, Label out: 100000
Time left: -, Since: Thu Aug 8 12:14:31 2002
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 1 receiver 51 protocol 0
Type: Bypass LSP
PATH rcvfrom: localclient
PATH sentto: 10.31.3.2 (so-0/0/0.0) 32 pkts
RESV rcvfrom: 10.31.3.2 (so-0/0/0.0) 32 pkts
Explct route: 10.31.3.2 10.31.2.2
Record route: <self> 10.31.3.2 10.31.2.2
Total 2 displayed, Up 2, Down 0
Egress RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0
Transit RSVP: 1 sessions
10.245.71.52
From: 10.245.271.53, LSPstate: Up, ActiveRoute: 1
LSPname: Bypass->10.31.2.1
Resv style: 1 SE, Label in: 100003, Label out: 0
Time left: 52, Since: Thu Aug 8 12:03:27 2002
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 1 receiver 19 protocol 0
PATH rcvfrom: 10.31.1.2 (so-7/3/2.0) 76 pkts
PATH sentto: 10.31.3.2 (so-0/0/0.0) 77 pkts
RESV rcvfrom: 10.31.3.2 (so-0/0/0.0) 78 pkts
Explct route: 10.31.3.2
Record route: 10.31.1.2 <self> 10.31.3.2
Total 1 displayed, Up 1, Down 0
user@Router1> show rsvp interface detail
RSVP interface: 2 active
fxp0.0 Index 1, State Dis/Up
NoAuthentication, NoAggregate, NoReliable, NoLinkProtection
HelloInterval 9(second)
Address 192.168.71.52
PacketType Total Last 5 seconds
Sent Received Sent Received
Path 0 0 0 0
PathErr 0 0 0 0
PathTear 0 0 0 0
Resv 0 0 0 0
ResvErr 0 0 0 0
ResvTear 0 0 0 0
Hello 0 0 0 0
Ack 0 0 0 0
Srefresh 0 0 0 0
EndtoEnd RSVP 0 0 0 0
so-0/0/0.0 Index 8, State Ena/Up
NoAuthentication, NoAggregate, NoReliable, NoLinkProtection
HelloInterval 20(second)
Address 10.31.3.1, 10.245.71.51
ActiveResv 2, PreemptionCnt 0, Update threshold 10%
Subscription 100%, StaticBW 622.08Mbps, AvailableBW 622.08Mbps
PacketType Total Last 5 seconds
Sent Received Sent Received
Path 441 0 0 0
PathErr 0 0 0 0
PathTear 3 0 0 0
Resv 0 431 0 0
ResvErr 0 0 0 0
ResvTear 0 0 0 0
Hello 489 487 0 0
Ack 0 0 0 0
Srefresh 0 0 0 0
EndtoEnd RSVP 0 0 0 0
so-7/3/2.0 Index 11, State Ena/Up
NoAuthentication, NoAggregate, NoReliable, LinkProtection
# Link protection is enabled.
HelloInterval 3(second)
Address 10.31.1.1, 10.245.71.51
ActiveResv 1, PreemptionCnt 0, Update threshold 10%
Subscription 100%, StaticBW 2.48832Gbps, AvailableBW 2.48832Gbps
PacketType Total Last 5 seconds
Sent Received Sent Received
Path 225 138 0 0
PathErr 12 4 0 0
PathTear 5 3 0 0
Resv 134 216 0 1
ResvErr 0 0 0 0
ResvTear 3 1 0 0
Hello 750 799 1 1
Ack 0 0 0 0
Srefresh 0 0 0 0
EndtoEnd RSVP 0 0 0 0
user@Router1> show rsvp neighbor detail
RSVP neighbor: 2 learned
Address: 10.31.1.2 via: so-7/3/2.0 status: Up
Last changed time: 38:17, Idle: 5 sec, Up cnt: 1, Down cnt: 0
Message received: 329
Hello: sent 747, received: 747, interval: 3 sec
Remote instance: 0x41b21a47, Local instance: 0x238fa919
Refresh reduction: not operational
Link protection: enabled # This should be enabled
LSP name: Bypass->10.31.1.2
Bypass LSP: operational, Backup routes: 2 , Backup LSPs: 0
# The number of backup routes equals 2 because the main LSP is already considered for protection.
Bypass explicit route: 10.31.3.2 10.31.2.2
Address: 10.31.3.2 via: so-0/0/0.0 status: Up
Last changed time: 17:46, Idle: 5 sec, Up cnt: 4, Down cnt: 3
Message received: 430
Hello: sent 506, received: 486, interval: 20 sec
Remote instance: 0x194fa7af, Local instance: 0x507b7c2a
Refresh reduction: not operational
Link protection: disabled
Bypass LSP: does not exist, Backup routes: 0, Backup LSPs: 0
user@Router1>show route 10.31.5.1 extensive
inet.0: 24 destinations, 24 routes (22 active, 0 holddown, 2 hidden)
10.31.5.1/32 (1 entry, 1 announced)
State: <FlashAll>
TSI:
KRT in-kernel 10.31.5.1/32 -> {0.0.0.0, 0.0.0.0}
*RSVP Preference: 7
Next hop: via so-7/3/2.0 weight 1, selected
# This is the main LSP.
Label-switched-path Protected_LSP
Label operation: Push 100007
Next hop: via so-0/0/0.0 weight 20001
# This is a backup route, though the backup LSP has not been signaled yet.
Label-switched-path Bypass->10.31.1.2
Label operation: Push 100007, Push 100000(top)[0]
State: <Active Int>
Local AS: 69
Age: 8:34 Metric: 20
Task: RSVP
Announcement bits (1): 0-KRT
AS path: I
user@Router1> show route forwarding-table destination 10.31.5.1 extensive
Routing table: inet [Index 0]
Internet:
Destination: 10.31.5.1/32
Route type: user Route reference: 0
Flags: sent to PFE
Next-hop type: unilist Index: 39 Reference: 1
Next-hop type: Push 100007
Next-hop interface: so-7/3/2.0 Weight: 1
# Packet Forwarding Engine local repair is enabled (otherwise, only one entry appears for Next-hop).
Next-hop type: Push 100007, Push 100000(top)[0] Next-hop interface: so-0/0/0.0 Weight: 20001 # The Weight value for the backup starts at 20000 .
Router 3
user@Router3> show mpls lsp
Ingress LSP: 0 sessions
# The ingress bypass LSP to Router 2 does not appear here.
Total 0 displayed, Up 0, Down 0 Egress LSP: 1 sessions To From State Rt Style Labelin Labelout LSPname 10.245.271.53 10.245.71.51 Up 0 1 SE 3 - Bypass->10.31.1.2 Total 1 displayed, Up 1, Down 0 Transit LSP: 1 sessions To From State Rt Style Labelin Labelout LSPname 10.245.71.52 10.245.71.51 Up 1 1 SE 100000 0 Protected_LSP Total 1 displayed, Up 1, Down 0 user@Router3> show rsvp session detail Ingress RSVP: 1 sessions 10.245.71.52 From: 10.245.271.53, LSPstate: Up, ActiveRoute: 0 LSPname: Bypass->10.31.2.1
# The ingress bypass session to Router 2 from Router 1.
Suggested label received: -, Suggested label sent: - Recovery label received: -, Recovery label sent: 100004 Resv style: 1 SE, Label in: -, Label out: 100004 Time left: -, Since: Thu Aug 8 12:27:07 2002 Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500 Port number: sender 1 receiver 16 protocol 0 Type: Bypass LSP PATH rcvfrom: localclient PATH sentto: 10.31.1.1 (so-1/0/0.0) 3 pkts RESV rcvfrom: 10.31.1.1 (so-1/0/0.0) 3 pkts Explct route: 10.31.1.1 10.31.3.2 Record route: <self> 10.31.1.1 10.31.3.2 Total 1 displayed, Up 1, Down 0 Egress RSVP: 1 sessions 10.245.271.53 From: 10.245.71.51, LSPstate: Up, ActiveRoute: 0 LSPname: Bypass->10.31.1.2
# The bypass from Router 1 to Router 3, arriving by way of Router 2.
Suggested label received: -, Suggested label sent: - Recovery label received: -, Recovery label sent: - Resv style: 1 SE, Label in: 3, Label out: - Time left: 54, Since: Thu Aug 8 12:26:48 2002 Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500 Port number: sender 1 receiver 52 protocol 0 PATH rcvfrom: 10.31.2.1 (so-6/0/0.0) 5 pkts PATH sentto: localclient RESV rcvfrom: localclient Record route: 10.31.3.1 10.31.2.1 <self> Total 1 displayed, Up 1, Down 0 Transit RSVP: 1 sessions 10.245.71.52 From: 10.245.71.51, LSPstate: Up, ActiveRoute: 1 LSPname: Protected_LSP
# This is the main LSP.
Suggested label received: -, Suggested label sent: -
Recovery label received: -, Recovery label sent: 0
Resv style: 1 SE, Label in: 100000, Label out: 0
Time left: 41, Since: Thu Aug 8 12:26:39 2002
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 2 receiver 33 protocol 0
Link protection desired
Type: Link protected LSP
PATH rcvfrom: 10.31.1.1 (so-1/0/0.0) 9 pkts
PATH sentto: 10.31.2.1 (so-6/0/0.0) 11 pkts
RESV rcvfrom: 10.31.2.1 (so-6/0/0.0) 10 pkts
Explct route: 10.31.2.1
Record route: 10.31.1.1 <self> 10.31.2.1
Total 1 displayed, Up 1, Down 0
user@Router3> show rsvp neighbor detail
RSVP neighbor: 2 learned
Address: 10.31.2.1 via: so-6/0/0.0 status: Up
Last changed time: 27, Idle: 0 sec, Up cnt: 1, Down cnt: 0
Message received: 19
Hello: sent 6, received: 6, interval: 9 sec
Remote instance: 0x625d2852, Local instance: 0x327317df
Refresh reduction: not operational
Link protection: enabled
LSP name: Bypass->10.31.2.1
Bypass LSP: operational, Backup routes: 1 , Backup LSPs: 0
# Backup routes = 1
Bypass explicit route: 10.31.1.1 10.31.3.2
Address: 10.31.1.1 via: so-1/0/0.0 status: Up
Last changed time: 41, Idle: 0 sec, Up cnt: 1, Down cnt: 0
Message received: 15
Hello: sent 17, received: 17, interval: 3 sec
Remote instance: 0x2ebdcf43, Local instance: 0x643d9e23
Refresh reduction: not operational
Link protection: disabled
Bypass LSP: does not exist, Backup routes: 0, Backup LSPs: 0
user@Router3> show rsvp interface detail
RSVP interface: 2 active
fxp0.0 Index 1, State Dis/Up
NoAuthentication, NoAggregate, NoReliable, NoLinkProtection
HelloInterval 9(second)
Address 192.168.6.64
PacketType Total Last 5 seconds
Sent Received Sent Received
Path 0 0 0 0
PathErr 0 0 0 0
PathTear 0 0 0 0
Resv 0 0 0 0
ResvErr 0 0 0 0
ResvTear 0 0 0 0
Hello 0 0 0 0
Ack 0 0 0 0
Srefresh 0 0 0 0
EndtoEnd RSVP 0 0 0 0
so-1/0/0.0 Index 6, State Ena/Up
NoAuthentication, NoAggregate, NoReliable, NoLinkProtection
HelloInterval 3(second)
Address 10.31.1.2, 10.245.271.53
ActiveResv 1, PreemptionCnt 0, Update threshold 10%
Subscription 100%, StaticBW 2.48832Gbps, AvailableBW 2.48832Gbps
PacketType Total Last 5 seconds
Sent Received Sent Received
Path 5 14 0 1
PathErr 0 0 0 0
PathTear 0 0 0 0
Resv 8 9 0 0
ResvErr 0 0 0 0
ResvTear 0 0 0 0
Hello 23 25 2 2
Ack 0 0 0 0
Srefresh 0 0 0 0
EndtoEnd RSVP 0 0 0 0
so-6/0/0.0 Index 9, State Ena/Up
NoAuthentication, NoAggregate, NoReliable, LinkProtection
# Link protection is enabled.
HelloInterval 9(second)
Address 10.31.2.2, 10.245.271.53
ActiveResv 1, PreemptionCnt 0, Update threshold 10%
Subscription 100%, StaticBW 9.95328Gbps, AvailableBW 9.95328Gbps
PacketType Total Last 5 seconds
Sent Received Sent Received
Path 12 8 0 0
PathErr 0 0 0 0
PathTear 0 1 0 0
Resv 9 14 0 1
ResvErr 0 0 0 0
ResvTear 0 0 0 0
Hello 8 8 1 1
Ack 0 0 0 0
Srefresh 0 0 0 0
EndtoEnd RSVP 0 0 0 0
user@Router3> show route forwarding-table family mpls
Routing table: ccc
MPLS:
Destination Type RtRef Next hop Type Index NhRef Netif
default perm 0 dscd 1 1
0 user 0 recv 3 3
1 user 0 recv 3 3
2 user 0 recv 3 3
100000 user 0 ulst 77 1
# This is the main LSP.
Swap 0 so-6/0/0.0
Swap 100004[0] so-1/0/0.0
100000(S=0) user 0 ulst 78 1
Pop so-6/0/0.0
Swap 100004[0] so-1/0/0.0
100007 user 0 ulst 71 1
# The bypass LSP from Router 1 to Router 2.
Swap 0 so-6/0/0.0
Swap 100003[0] so-1/0/0.0
100007(S=0) user 0 ulst 73 1
Pop so-6/0/0.0
Swap 100003[0] so-1/0/0.0