Description

This article explains how to clear a specific point-to-multipoint (P2MP) Resource Reservation Protocol (RSVP) session on M/MX/T Series routers.

Symptoms

Topology

             +----+          +----+
   +---------+ LS2+----------+ LS5|
    |        +----+          +----+
    |
    |
    |
+--+-+       +----+          +----+
| LS1+-------+LS6 +----------+ LS7 |
+--+-+       +----+          +----+
     |
     |
     |
     |         +----+          +----+
     +---------+ LS3+----------+LS4 |
               +----+          +----+ 
 

Given the above topology, the P2MP RSVP sessions are established as follows:

  • LS1 - LS5

  • LS1 - LS7

  • LS1 - LS4

 

LS1 Configuration

root@LS1> show configuration protocols mpls
traffic-engineering {
     bgp-igp;
}
label-switched-path LS1-LS5 {
     to 172.16.5.5;
     p2mp p2mp1;
}
label-switched-path LS1-LS7 {
     to 172.16.7.7;
     p2mp p2mp1;
}
label-switched-path LS1-LS4 {
     to 172.16.4.4;
     p2mp p2mp1;
}
 
root@LS1> show rsvp session p2mp detail | no-more
Ingress RSVP: 3 sessions
P2MP name: p2mp1, P2MP branch count: 3

172.16.5.5
From: 172.16.1.1, LSPstate: Up, ActiveRoute: 0
LSPname: LS1-LS5, LSPpath: Primary
LSPtype: Static Configured
P2MP LSPname: p2mp1, Re-merge: Head
Suggested label received: -, Suggested label sent: -
Recovery label received: -, Recovery label sent: 299904
Resv style: 1 SE, Label in: -, Label out: 299904
Time left: -, Since: Fri Jan 20 13:31:38 2017 >>>> uptime of RSVP session
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 1 receiver 64864 protocol 0
P2MP branch id: 15, Subgroup Originator: 172.16.1.1
PATH rcvfrom: localclient
Adspec: sent MTU 1500
Path MTU: received 1500
PATH sentto: 172.16.12.2 (ge-0/0/0.1) 5697 pkts
RESV rcvfrom: 172.16.12.2 (ge-0/0/0.1) 5696 pkts, Entropy label: No
Explct route: 172.16.12.2 172.16.25.5
Record route: <self> 172.16.12.2 172.16.25.5

172.16.7.7
From: 172.16.1.1, LSPstate: Up, ActiveRoute: 0
LSPname: LS1-LS7, LSPpath: Primary
LSPtype: Static Configured
P2MP LSPname: p2mp1, Re-merge: Head
Suggested label received: -, Suggested label sent: -
Recovery label received: -, Recovery label sent: 299824
Resv style: 1 SE, Label in: -, Label out: 299824
Time left: -, Since: Fri Jan 20 13:31:38 2017 >>>> uptime of RSVP session
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 1 receiver 64864 protocol 0
P2MP branch id: 16, Subgroup Originator: 172.16.1.1
PATH rcvfrom: localclient
Adspec: sent MTU 1500
Path MTU: received 1500
PATH sentto: 172.16.16.6 (ge-0/0/0.3) 5697 pkts
RESV rcvfrom: 172.16.16.6 (ge-0/0/0.3) 5696 pkts, Entropy label: No
Explct route: 172.16.16.6 172.16.67.7
Record route: <self> 172.16.16.6 172.16.67.7
 
172.16.4.4
From: 172.16.1.1, LSPstate: Up, ActiveRoute: 0
LSPname: LS1-LS4, LSPpath: Primary
LSPtype: Static Configured
P2MP LSPname: p2mp1, Re-merge: Head
Suggested label received: -, Suggested label sent: -
Recovery label received: -, Recovery label sent: 299824
Resv style: 1 SE, Label in: -, Label out: 299824
Time left: -, Since: Fri Jan 20 13:31:38 2017 >>>> uptime of RSVP session
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 1 receiver 64864 protocol 0
P2MP branch id: 17, Subgroup Originator: 172.16.1.1
PATH rcvfrom: localclient
Adspec: sent MTU 1500
Path MTU: received 1500
PATH sentto: 172.16.13.3 (ge-0/0/0.5) 5697 pkts
RESV rcvfrom: 172.16.13.3 (ge-0/0/0.5) 5696 pkts, Entropy label: No
Explct route: 172.16.13.3 172.16.34.4
Record route: <self> 172.16.13.3 172.16.34.4
Total 3 displayed, Up 3, Down 0

The RSVP sessions are established. As seen above, all three RSVP sessions are up at the same time.

When you clear the RSVP session for a specific P2MP label switched path (LSP) template, all the RSVP sessions associated with that template are cleared.

root@LS1> clear rsvp session name p2mp1

root@LS1> show rsvp session p2mp detail | no-more
Ingress RSVP: 3 sessions
P2MP name: p2mp1, P2MP branch count: 3

172.16.5.5
From: 172.16.1.1, LSPstate: Up, ActiveRoute: 0
LSPname: LS1-LS5, LSPpath: Primary
LSPtype: Static Configured
P2MP LSPname: p2mp1, Re-merge: Head
Suggested label received: -, Suggested label sent: -
Recovery label received: -, Recovery label sent: 299920
Resv style: 1 SE, Label in: -, Label out: 299920
Time left: -, Since: Mon Jan 23 12:46:10 2017 >>>> uptime of RSVP session
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 1 receiver 64864 protocol 0
P2MP branch id: 18, Subgroup Originator: 172.16.1.1
PATH rcvfrom: localclient
Adspec: sent MTU 1500
Path MTU: received 1500
PATH sentto: 172.16.12.2 (ge-0/0/0.1) 4 pkts
RESV rcvfrom: 172.16.12.2 (ge-0/0/0.1) 3 pkts, Entropy label: No
Explct route: 172.16.12.2 172.16.25.5
Record route: <self> 172.16.12.2 172.16.25.5

172.16.7.7
From: 172.16.1.1, LSPstate: Up, ActiveRoute: 0
LSPname: LS1-LS7, LSPpath: Primary
LSPtype: Static Configured
P2MP LSPname: p2mp1, Re-merge: Head
Suggested label received: -, Suggested label sent: -
Recovery label received: -, Recovery label sent: 299840
Resv style: 1 SE, Label in: -, Label out: 299840
Time left: -, Since: Mon Jan 23 12:46:10 2017 >>>> uptime of RSVP session
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 1 receiver 64864 protocol 0
P2MP branch id: 19, Subgroup Originator: 172.16.1.1
PATH rcvfrom: localclient
Adspec: sent MTU 1500
Path MTU: received 1500
PATH sentto: 172.16.16.6 (ge-0/0/0.3) 4 pkts
RESV rcvfrom: 172.16.16.6 (ge-0/0/0.3) 3 pkts, Entropy label: No
Explct route: 172.16.16.6 172.16.67.7
Record route: <self> 172.16.16.6 172.16.67.7

172.16.4.4
From: 172.16.1.1, LSPstate: Up, ActiveRoute: 0
LSPname: LS1-LS4, LSPpath: Primary
LSPtype: Static Configured
P2MP LSPname: p2mp1, Re-merge: Head
Suggested label received: -, Suggested label sent: -
Recovery label received: -, Recovery label sent: 299840
Resv style: 1 SE, Label in: -, Label out: 299840
Time left: -, Since: Mon Jan 23 12:46:10 2017 >>>> uptime of RSVP session
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 1 receiver 64864 protocol 0
P2MP branch id: 20, Subgroup Originator: 172.16.1.1
PATH rcvfrom: localclient
Adspec: sent MTU 1500
Path MTU: received 1500
PATH sentto: 172.16.13.3 (ge-0/0/0.5) 3 pkts
RESV rcvfrom: 172.16.13.3 (ge-0/0/0.5) 3 pkts, Entropy label: No
Explct route: 172.16.13.3 172.16.34.4
Record route: <self> 172.16.13.3 172.16.34.4
Total 3 displayed, Up 3, Down 0

Egress RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

Transit RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

As seen above, all three RSVP sessions associated with the P2MP template p2mp1 have been cleared.

Solution

To clear specific P2MP RSVP session, use the "connection-source" and "connection-destination" keywords as follows:

root@LS1> clear rsvp session name p2mp1 connection-source 172.16.1.1 connection-destination 172.16.5.5

root@LS1> show rsvp session p2mp detail | no-more
Ingress RSVP: 3 sessions
P2MP name: p2mp1, P2MP branch count: 3

172.16.7.7
From: 172.16.1.1, LSPstate: Up, ActiveRoute: 0
LSPname: LS1-LS7, LSPpath: Primary
LSPtype: Static Configured
P2MP LSPname: p2mp1, Re-merge: Head
Suggested label received: -, Suggested label sent: -
Recovery label received: -, Recovery label sent: 299840
Resv style: 1 SE, Label in: -, Label out: 299840
Time left: -, Since: Mon Jan 23 12:46:10 2017
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 1 receiver 64864 protocol 0
P2MP branch id: 19, Subgroup Originator: 172.16.1.1
PATH rcvfrom: localclient
Adspec: sent MTU 1500
Path MTU: received 1500
PATH sentto: 172.16.16.6 (ge-0/0/0.3) 11 pkts
RESV rcvfrom: 172.16.16.6 (ge-0/0/0.3) 11 pkts, Entropy label: No
Explct route: 172.16.16.6 172.16.67.7
Record route: <self> 172.16.16.6 172.16.67.7

172.16.4.4
From: 172.16.1.1, LSPstate: Up, ActiveRoute: 0
LSPname: LS1-LS4, LSPpath: Primary
LSPtype: Static Configured
P2MP LSPname: p2mp1, Re-merge: Head
Suggested label received: -, Suggested label sent: -
Recovery label received: -, Recovery label sent: 299840
Resv style: 1 SE, Label in: -, Label out: 299840
Time left: -, Since: Mon Jan 23 12:46:10 2017
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 1 receiver 64864 protocol 0
P2MP branch id: 20, Subgroup Originator: 172.16.1.1
PATH rcvfrom: localclient
Adspec: sent MTU 1500
Path MTU: received 1500
PATH sentto: 172.16.13.3 (ge-0/0/0.5) 11 pkts
RESV rcvfrom: 172.16.13.3 (ge-0/0/0.5) 11 pkts, Entropy label: No
Explct route: 172.16.13.3 172.16.34.4
Record route: <self> 172.16.13.3 172.16.34.4

172.16.5.5
From: 172.16.1.1, LSPstate: Up, ActiveRoute: 0
LSPname: LS1-LS5, LSPpath: Primary
LSPtype: Static Configured
P2MP LSPname: p2mp1, Re-merge: Head
Suggested label received: -, Suggested label sent: -
Recovery label received: -, Recovery label sent: 299936
Resv style: 1 SE, Label in: -, Label out: 299936
Time left: -, Since: Mon Jan 23 12:52:42 2017 >>>> uptime of RSVP session
Tspec: rate 0bps size 0bps peak Infbps m 20 M 1500
Port number: sender 1 receiver 64864 protocol 0
P2MP branch id: 21, Subgroup Originator: 172.16.1.1
PATH rcvfrom: localclient
Adspec: sent MTU 1500
Path MTU: received 1500
PATH sentto: 172.16.12.2 (ge-0/0/0.1) 3 pkts
RESV rcvfrom: 172.16.12.2 (ge-0/0/0.1) 3 pkts, Entropy label: No
Explct route: 172.16.12.2 172.16.25.5
Record route: <self> 172.16.12.2 172.16.25.5
Total 3 displayed, Up 3, Down 0

As seen above, only the RSVP sessions between LS1 and LS5 have been cleared, whereas the other RSVP sessions are intact.

For more details, refer to clear rsvp session.

Modification History

2022/10/19: Change IP address to be compliant with RFC block