Beruflich Dokumente
Kultur Dokumente
Module 3
3200 1254_05_2000_c1_Mod3_rev1
Module3.ppt
Agenda
Geekometer
PIM Neighbor Discovery PIM State PIM SM Forwarding PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM Special Cases
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Cisco.com
Module3.ppt
PIMv2 Hellos are periodically multicast to the All-PIM-Routers (224.0.0.13) group address. (Default = 30 seconds)
Note: PIMv1 multicasts PIM Query messages to the All-Routers (224.0.0.2) group address.
If the DR times-out, a new DR is elected. The DR is responsible for sending all Joins and Register messages for any receivers or senders on the network. 3200 1254_05_2000_c1_Mod3_rev1 2000, Cisco Systems, Inc. Cisco.com
Module3.ppt
Uptime Uptime 2w1d 2w1d 2w6d 2w6d 7w0d 7w0d 7w0d 7w0d 7w0d 7w0d 22:47:11 22:47:11 22:47:22 22:47:22 22:47:07 22:47:07 1d04h 1d04h 1w4d 1w4d 1d04h 1d04h 12:53:25 12:53:25
Expires Expires 00:01:24 00:01:24 00:01:01 00:01:01 00:01:14 00:01:14 00:01:13 00:01:13 00:01:02 00:01:02 00:01:16 00:01:16 00:01:08 00:01:08 00:01:21 00:01:21 00:01:06 00:01:06 00:01:25 00:01:25 00:01:20 00:01:20 00:01:03 00:01:03
Mode Mode Sparse Sparse Sparse (DR) Sparse (DR) Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
Module3.ppt
Agenda
PIM Neighbor Discovery PIM SM State PIM SM Forwarding PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM Special Cases
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Cisco.com
Module3.ppt
PIM State
Describes the state of the multicast distribution trees as understood by the router at this point in the network. Represented by entries in the multicast routing (mroute) table
Used to make multicast traffic forwarding decisions Composed of (*, G) and (S, G) entries Each entry contains RPF information
Incoming (i.e. RPF) interface RPF Neighbor (upstream)
Cisco.com
PIM State
In general, Multicast State basically describes the multicast distribution tree as it is understood by the router at this point in the network. However to be completely correct, Multicast State describes the multicast traffic forwarding state that is used by the router to forward multicast traffic.
Module3.ppt
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
Module3.ppt
(*,G) deletion
When OIL = NULL and no child (S,G) state exists
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Cisco.com
Module3.ppt
(S,G) deletion
By normal (S,G) entry timeout
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Cisco.com
Module3.ppt
Cisco.com
10
Module3.ppt
10
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
11
Module3.ppt
11
In (S, G) entry
Indicates SPT joined due to SPT-Threshold If rate < SPT-Threshold, switch back to Shared Tree
F = Register
In (S,G) entry
S is a directly connected source Triggers the Register Process
In (*, G) entry
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
12
Module3.ppt
12
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
13
PIM-SM Flags
R Flag (RP-Bit) This flag is set on (S, G) entries only and indicates that the (S, G) forwarding information in the entry is applicable to (S, G) traffic flowing down the Shared Tree. The R flag is set on an (S, G) entry by the receipt of an (S, G)RP-bit Prune message. These messages are sent by downstream routers on the Shared Tree that are requesting that this specific (S, G) traffic flow be pruned off of the Shared Tree. This is done to eliminate duplicate (S, G) traffic after a downstream router has switched to the (S, G) Shortest-Path Tree. Whenever the R flag is set on an (S, G) entry, the RPF information must be changed to point toward the RP instead of pointing at source S. This is done because the (S, G) entry is now applicable to (S, G) traffic arriving down the Shared Tree. As a result, the RPF information must point up the Shared Tree in order for arriving (S, G) packets to RPF correctly. (This should be made clear later.)
Module3.ppt
13
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
14
PIM-SM Flags
X Flag (Proxy Join Timer Running) This flag is set on (S, G) entries only and is used to indicate that the Proxy Join Timer is running. When this timer is running, the router will continue to send (S, G) Joins in the direction of the source even if the OIL is NULL. This is used to handle the special turn-around router situation which occurs when the SPT to the RP and the Shared Tree merge. (More on this special scenario will be presented in another module.)
Module3.ppt
14
15
PIM-SM Flags
M Flag (MSDP Created) This flag only appears on (S, G) entries and only on the router that is the active RP for group G. The flag indicates that the RP has learned of this particular source via an MSDP Source Active message. (MSDP is addressed in more detail in another module.) A Flag (Advertise Flag) This flag only appears on (S, G) entries and only on the router that is the active RP for group G. The A flag indicates that this source is in the local PIM-SM domain and that it is a candidate for being announced to RPs in other networks via MSDP Source Active messages. A source is considered to be in the local domain if an (S, G) Register message was received for this source or the source is directly connected to the RP or the (S, G) traffic was received on a Dense mode interface that has been designated as a dense mode boundary interface.
Module3.ppt
15
Agenda
PIM Neighbor Discovery PIM SM State PIM SM Forwarding PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM Special Cases
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Cisco.com
16
Module3.ppt
16
PIM SM Forwarding
to RP (10.1.5.1) S0 Shared Tree Multicast Packets (128.9.160.1, 224.1.1.1) S1 Source Tree (SPT) Multicast Packets (128.9.160.43, 224.1.1.1)
E0
rtr-a
Packets are forwarded out all interfaces in oilist. PIM Sparse mode interfaces are placed on the oilist for a Multicast Group IF:
PIM neighbor Joins the group on this interface Host on this interface has joined the group Interface has been manually configured to join group.
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Cisco.com
17
PIM SM Forwarding
In PIM Sparse mode, incoming multicast packets for group G are forwarded out all interfaces that are in the Multicast Route table entrys outgoing interface list (oilist). Once again, an attempt is made to forward using a matching (S,G) entry if one exists. In that case, the oilist of the (S,G) entry is used to control forwarding of the multicast packet. If no (S, G) entry exists, then the oilist of the (*,G) entry is used to control the forwarding of the multicast packet.
Module3.ppt
17
Agenda
PIM Neighbor Discovery PIM State PIM SM Forwarding PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM Special Cases
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Cisco.com
18
Module3.ppt
18
PIM SM Joining
Leaf routers send a (*,G) Join to toward RP
Joins sent hop-by-hop along path toward RP
ELSE
Join process complete. Reached the Shared Tree.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
19
Module3.ppt
19
PIM SM Joining
To RP (10.1.5.1)
10.1.4.2 Shared Tree 10.1.2.2 E0
S1 S0 E0
rtr-a
10.1.2.1
1 IGMP Join
Rcvr A
E1
rtr-b
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
20
Module3.ppt
20
PIM SM Joining
To RP (10.1.5.1)
10.1.4.2 Shared Tree 10.1.2.2 E0
S1 S0 E0
rtr-a
10.1.2.1
E1
Rcvr A
rtr-b
(*, 224.1.1.1), 00:00:05/00:02:54, RP 10.1.5.1, flags: SC (*, 224.1.1.1), 00:00:05/00:02:54, RP 10.1.5.1, flags: SC Incoming interface: Ethernet0, RPF nbr 10.1.2.1 Incoming interface: Ethernet0, RPF nbr 10.1.2.1 Outgoing interface list: Outgoing interface list: Ethernet1, Forward/Sparse, 00:00:05/00:02:54 Ethernet1, Forward/Sparse, 00:00:05/00:02:54
Cisco.com
21
Module3.ppt
21
PIM SM Joining
To RP (10.1.5.1)
10.1.4.2 Shared Tree 10.1.2.2 E0
S1 S0 E0
rtr-a
10.1.2.1
2 PIM Join
E1
Rcvr A
rtr-b
1 2
Rcvr A wishes to receive group G traffic. Sends IGMP Join for G. rtr-b sends (*,G) Join towards RP.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
22
Module3.ppt
22
PIM SM Joining
To RP (10.1.5.1)
10.1.4.2 Shared Tree 10.1.2.2 E0
S1 S0 E0
rtr-a
10.1.2.1
E1
Rcvr A
rtr-b
(*, 224.1.1.1), 00:00:05/00:02:54, RP 10.1.5.1, flags: S (*, 224.1.1.1), 00:00:05/00:02:54, RP 10.1.5.1, flags: S Incoming interface: Serial0, RPF nbr 10.1.4.1 Incoming interface: Serial0, RPF nbr 10.1.4.1 Outgoing interface list: Outgoing interface list: Ethernet0, Forward/Sparse, 00:00:05/00:02:54 Ethernet0, Forward/Sparse, 00:00:05/00:02:54
Cisco.com
23
Module3.ppt
23
PIM SM Joining
4 Shared Tree To RP (10.1.5.1) 3 PIM Join
Shared Tree 10.1.2.2 E0 10.1.4.2
S1 S0 E0
rtr-a
10.1.2.1
E1
Rcvr A
rtr-b
1 2 3 4
Rcvr A wishes to receive group G traffic. Sends IGMP Join for G. rtr-b sends (*,G) Join towards RP. rtr-a sends (*,G) Join towards RP. Shared tree is built all the way back to the RP.
2000, Cisco Systems, Inc.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
24
Module3.ppt
24
Agenda
PIM Neighbor Discovery PIM SM State PIM SM Forwarding PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM Special Cases
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Cisco.com
25
Module3.ppt
25
PIM SM Registering
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
26
Module3.ppt
26
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
27
Module3.ppt
27
Receivers Join Group First Source Registers First Receivers along the SPT
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
28
Module3.ppt
28
PIM SM Registering
Receiver Joins Group First
RP
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
Shared Tree
(*, 224.1.1.1), 00:00:03/00:02:56, RP 171.68.28.140, flags:S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Serial0, Forward/Sparse, 00:03:14/00:02:59 Serial1, Forward/Sparse, 00:03:14/00:02:59
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
29
Module3.ppt
29
PIM SM Registering
Receiver Joins Group First
RP
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
Shared Tree
rtr-b>sh ip mroute 224.1.1.1 rtr-b>sh ip mroute 224.1.1.1 No such group No such group
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
30
Module3.ppt
30
PIM SM Registering
Receiver Joins Group First
RP
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
Shared Tree
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
31
Module3.ppt
31
PIM SM Registering
Receiver Joins Group First
(171.68.37.121, 224.1.1.1) Mcast Packets
1
Source 171.68.37.121
E0 S0 S0 S1 S3 S0 S1
RP rtr-c
rtr-a
rtr-b
Shared Tree
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
32
Module3.ppt
32
PIM SM Registering
Receiver Joins Group First
(171.68.37.121, 224.1.1.1) Mcast Packets
Register Msgs RP
Source 171.68.37.121
E0
S0
S0
S1
S3 S0 S1
rtr-a
rtr-b
rtr-c
Shared Tree (*, 224.1.1.1), 00:00:03/00:02:56, RP 171.68.28.140, flags: SP (*, 224.1.1.1), 00:00:03/00:02:56, RP 171.68.28.140, flags: SP Incoming interface: Serial0, RPF nbr 171.68.28.191, Incoming interface: Serial0, RPF nbr 171.68.28.191, Outgoing interface list: Null Outgoing interface list: Null (171.68.37.121/32, 224.1.1.1), 00:00:03/00:02:56, flags: FPT (171.68.37.121/32, 224.1.1.1), 00:00:03/00:02:56, flags: FPT Incoming interface: Ethernet0, RPF nbr 0.0.0.0, Registering Incoming interface: Ethernet0, RPF nbr 0.0.0.0, Outgoing interface list: Null Outgoing interface list: Null
Source begins sending group G traffic. rtr-a encapsulates packets in Registers; unicasts to RP. 3200 1254_05_2000_c1_Mod3_rev1 2000, Cisco Systems, Inc. Cisco.com
2
33
Module3.ppt
33
PIM SM Registering
Receiver Joins Group First
(171.68.37.121, 224.1.1.1) Mcast Packets Register Msgs 171.68.28.139
S0 S0 S1 S3 S0 S1
RP
rtr-c 3 (*, 224.1.1.1) Mcast Traffic Shared Tree (*, 224.1.1.1), 00:09:21/00:02:38, RP 171.68.28.140, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Serial0, Forward/Sparse, 00:09:21/00:02:38 Serial1, Forward/Sparse, 00:03:14/00:02:46 rtr-a rtr-b (171.68.37.121, 224.1.1.1, 00:01:15/00:02:46, flags: Incoming interface: Serial3, RPF nbr 171.68.28.139, Outgoing interface list: Serial0, Forward/Sparse, 00:00:49/00:02:11 Serial1, Forward/Sparse, 00:00:49/00:02:11
Source 171.68.37.121
E0
rtr-c (RP) de-encapsulates packets; forwards down Shared tree. 2000, Cisco Systems, Inc. Cisco.com
34
Module3.ppt
34
PIM SM Registering
Receiver Joins Group First
(171.68.37.121, 224.1.1.1) Mcast Packets Register Msgs
4 Join S0
Source 171.68.37.121
E0 S0 S0 S1 S0 S1
rtr-a
rtr-b
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
35
Module3.ppt
35
PIM SM Registering
Receiver Joins Group First
(171.68.37.121, 224.1.1.1) Mcast Packets Register Msgs
5 Join S0
Source 171.68.37.121
E0 S0 S0 S1 S0 S1
rtr-a 171.68.28.190
rtr-b
(*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP (*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP Incoming interface: Serial1, RPF nbr 171.68.28.140, Incoming interface: Serial1, RPF nbr 171.68.28.140, Outgoing interface list: Null Outgoing interface list: Null (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: Incoming interface: Serial0, RPF nbr 171.68.28.190 Incoming interface: Serial0, RPF nbr 171.68.28.190 Outgoing interface list: Outgoing interface list: Serial1, Forward/Sparse, 00:04:28/00:01:32 Serial1, Forward/Sparse, 00:04:28/00:01:32
RP sends (S,G) Join toward Source to build SPT. 5 rtr-b sends (S,G) Join toward Source to continue building SPT. 3200 1254_05_2000_c1_Mod3_rev1 2000, Cisco Systems, Inc. Cisco.com
36
Module3.ppt
36
PIM SM Registering
Receiver Joins Group First
(171.68.37.121, 224.1.1.1) Mcast Packets Register Msgs RP Source 171.68.37.121
E0 S0 S0 S1
rtr-a
rtr-b
S0
S1
(*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP (*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP Incoming interface: Serial0, RPF nbr 171.68.28.191, Incoming interface: Serial0, RPF nbr 171.68.28.191, Outgoing interface list: Null Outgoing interface list: Null (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: FT (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: FT Incoming interface: Ethernet0, RPF nbr 0.0.0.0, Registering Incoming interface: Ethernet0, RPF nbr 0.0.0.0, Registering Outgoing interface list: Outgoing interface list: Serial0, Forward/Sparse, 00:04:28/00:01:32
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
37
Module3.ppt
37
PIM SM Registering
Receiver Joins Group First
(171.68.37.121, 224.1.1.1) Mcast Packets Register Msgs
6
Source 171.68.37.121
E0 S0 S0 S1 S0 S1
rtr-a
rtr-b
7 Register-Stop
6 7
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
38
Module3.ppt
38
PIM SM Registering
Receiver Joins Group First
(171.68.37.121, 224.1.1.1) Mcast Packets
8
Source 171.68.37.121
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
(*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP (*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP Incoming interface: Serial0, RPF nbr 171.68.28.191, Incoming interface: Serial0, RPF nbr 171.68.28.191, Outgoing interface list: Null Outgoing interface list: Null (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: FT (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: FT Incoming interface: Ethernet0, RPF nbr 0.0.0.0, Registering Incoming interface: Ethernet0, RPF nbr 0.0.0.0, Registering Outgoing interface list: Outgoing interface list: Serial0, Forward/Sparse, 00:04:28/00:01:32 Serial0, Forward/Sparse, 00:04:28/00:01:32
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
39
Module3.ppt
39
PIM SM Registering
Receiver Joins Group First
(171.68.37.121, 224.1.1.1) Mcast Packets RP Source 171.68.37.121
E0 S0 S0 S1
rtr-a
rtr-b
S0
S1
(*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP (*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP Incoming interface: Serial1, RPF nbr 171.68.28.140, Incoming interface: Serial1, RPF nbr 171.68.28.140, Outgoing interface list: Null Outgoing interface list: Null (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: T (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: T Incoming interface: Serial0, RPF nbr 171.68.28.190 Incoming interface: Serial0, RPF nbr 171.68.28.190 Outgoing interface list: Outgoing interface list: Serial1, Forward/Sparse, 00:04:28/00:01:32 Serial1, Forward/Sparse, 00:04:28/00:01:32
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
40
Module3.ppt
40
PIM SM Registering
Receiver Joins Group First
(171.68.37.121, 224.1.1.1) Mcast Packets 171.68.28.139 RP rtr-c (*, 224.1.1.1) Mcast Traffic Shared Tree (*, 224.1.1.1), 00:09:21/00:02:38, RP 171.68.28.140, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Serial0, Forward/Sparse, 00:09:21/00:02:38 Serial1, Forward/Sparse, 00:03:14/00:02:46 rtr-a rtr-b (171.68.37.121, 224.1.1.1, 00:01:15/00:02:46, flags: T Incoming interface: Serial3, RPF nbr 171.68.28.139, Outgoing interface list: Serial0, Forward/Sparse, 00:00:49/00:02:11 Serial1, Forward/Sparse, 00:00:49/00:02:11 Source 171.68.37.121
E0 S0 S0 S1 S3 S0 S1
Cisco.com
41
Module3.ppt
41
Receivers Join Group First Source Registers First Receivers along the SPT
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
42
Module3.ppt
42
PIM SM Registering
Source Registers First
RP
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
rtr-c>show ip mroute 224.1.1.1 rtr-c>show ip mroute 224.1.1.1 Group 224.1.1.1 not found. Group 224.1.1.1 not found.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
43
Module3.ppt
43
PIM SM Registering
Source Registers First
RP
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
rtr-b>show ip mroute 224.1.1.1 rtr-b>show ip mroute 224.1.1.1 Group 224.1.1.1 not found. Group 224.1.1.1 not found.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
44
Module3.ppt
44
PIM SM Registering
Source Registers First
RP
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
45
Module3.ppt
45
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets
1
Source 171.68.37.121
E0 S0 S0 S1 S3 S0 S1
RP rtr-c
rtr-a
rtr-b
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
46
Module3.ppt
46
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets
Register Msgs RP
Source 171.68.37.121
E0
S0
S0
S1
S3 S0 S1
rtr-a
rtr-b
rtr-c
(*, 224.1.1.1), 00:00:03/00:02:56, RP 171.68.28.140, flags: SP (*, 224.1.1.1), 00:00:03/00:02:56, RP 171.68.28.140, flags: SP Incoming interface: Serial0, RPF nbr 171.68.28.191, Incoming interface: Serial0, RPF nbr 171.68.28.191, Outgoing interface list: Null Outgoing interface list: Null (171.68.37.121/32, 224.1.1.1), 00:00:03/00:02:56, flags: FPT (171.68.37.121/32, 224.1.1.1), 00:00:03/00:02:56, flags: FPT Incoming interface: Ethernet0, RPF nbr 0.0.0.0, Registering Incoming interface: Ethernet0, RPF nbr 0.0.0.0, Outgoing interface list: Null Outgoing interface list: Null
Source begins sending group G traffic. rtr-a encapsulates packets in Registers; unicasts to RP. 3200 1254_05_2000_c1_Mod3_rev1 2000, Cisco Systems, Inc. Cisco.com
2
47
Module3.ppt
47
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets Register Msgs 171.68.28.139
S0 S0 S1 S3 S0 S1
RP
Source 171.68.37.121
E0
3
rtr-c
rtr-a
rtr-b
(*, 224.1.1.1), 00:01:15/00:01:45, RP 171.68.28.140, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Null (171.68.37.121, 224.1.1.1), 00:01:15/00:01:45, flags: P Incoming interface: Serial3, RPF nbr 171.68.28.139, Outgoing interface list: Null
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
48
Module3.ppt
48
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets Register Msgs RP Source 171.68.37.121
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b Register-Stop 4
rtr-c
3 4
rtr-c (RP) has no receivers on Shared Tree; discards packet. RP sends Register-Stop to rtr-a.
2000, Cisco Systems, Inc.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
49
Module3.ppt
49
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets RP Source 171.68.37.121
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
rtr-c (RP) has no receivers on Shared Tree; discards packet. RP sends Register-Stop to rtr-a. 5 rtr-a stops encapsulating traffic in Register Messages; drops packets from Source. 3200 1254_05_2000_c1_Mod3_rev1 2000, Cisco Systems, Inc. Cisco.com
4
50
Module3.ppt
50
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets RP Source 171.68.37.121
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
(*, 224.1.1.1), 00:01:28/00:01:32, RP 171.68.28.140, flags: SP (*, 224.1.1.1), 00:01:28/00:01:32, RP 171.68.28.140, flags: SP Incoming interface: Serial0, RPF nbr 171.68.28.191, Incoming interface: Serial0, RPF nbr 171.68.28.191, Outgoing interface list: Null Outgoing interface list: Null (171.68.37.121/32, 224.1.1.1), 00:01:28/00:01:32, flags: FPT (171.68.37.121/32, 224.1.1.1), 00:01:28/00:01:32, flags: FPT Incoming interface: Ethernet0, RPF nbr 0.0.0.0 Incoming interface: Ethernet0, RPF nbr 0.0.0.0 Outgoing interface list: Null Outgoing interface list: Null
Cisco.com
51
Module3.ppt
51
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets RP Source 171.68.37.121
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
rtr-b>show ip mroute 224.1.1.1 rtr-b>show ip mroute 224.1.1.1 Group 224.1.1.1 not found. Group 224.1.1.1 not found.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
52
Module3.ppt
52
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets 171.68.28.139 RP Source 171.68.37.121
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
(*, 224.1.1.1), 00:01:15/00:01:45, RP 171.68.28.140, flags: S (*, 224.1.1.1), 00:01:15/00:01:45, RP 171.68.28.140, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Null Outgoing interface list: Null (171.68.37.121, 224.1.1.1), 00:01:15/00:01:45, flags: P (171.68.37.121, 224.1.1.1), 00:01:15/00:01:45, flags: P Incoming interface: Serial3, RPF nbr 171.68.28.139, Incoming interface: Serial3, RPF nbr 171.68.28.139, Outgoing interface list: Null Outgoing interface list: Null
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
53
Module3.ppt
53
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets RP Source 171.68.37.121
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
(*, G) Join 6
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
54
Module3.ppt
54
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets Join 7 Source 171.68.37.121
E0 S0 S0 S1 S3 S0 S1
RP rtr-c
rtr-a
rtr-b
(*, 224.1.1.1), 00:09:21/00:02:38, RP 171.68.28.140, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Serial1, Forward/Sparse, 00:00:14/00:02:46 (171.68.37.121/32, 224.1.1.1, 00:01:15/00:02:46, flags: T Incoming interface: Serial3, RPF nbr 171.68.28.139, Outgoing interface list: Serial1, Forward/Sparse, 00:00:14/00:02:46
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
55
Module3.ppt
55
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets
8 Join S0
Source 171.68.37.121
E0 S0 S0
Join 7
S1 S3 S0 S1
RP rtr-c
rtr-a 171.68.28.190
rtr-b
(*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP (*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP Incoming interface: Serial1, RPF nbr 171.68.28.140, Incoming interface: Serial1, RPF nbr 171.68.28.140, Outgoing interface list: Null Outgoing interface list: Null (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: Incoming interface: Serial0, RPF nbr 171.68.28.190 Incoming interface: Serial0, RPF nbr 171.68.28.190 Outgoing interface list: Outgoing interface list: Serial1, Forward/Sparse, 00:04:28/00:01:32 Serial1, Forward/Sparse, 00:04:28/00:01:32
RP sends (S,G) Joins for all known Sources in Group. 8 rtr-b sends (S,G) Join toward Source to continue building SPT. 3200 1254_05_2000_c1_Mod3_rev1 2000, Cisco Systems, Inc. Cisco.com
56
Module3.ppt
56
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets
9
Source 171.68.37.121
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
(*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP (*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP Incoming interface: Serial0, RPF nbr 171.68.28.191, Incoming interface: Serial0, RPF nbr 171.68.28.191, Outgoing interface list: Null Outgoing interface list: Null (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: FT (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: FT Incoming interface: Ethernet0, RPF nbr 0.0.0.0, Registering Incoming interface: Ethernet0, RPF nbr 0.0.0.0, Registering Outgoing interface list: Outgoing interface list: Serial0, Forward/Sparse, 00:04:28/00:01:32
RP begins receiving (S,G) traffic down SPT. RP forwards (S,G) traffic down Shared Tree to receivers. 2000, Cisco Systems, Inc. Cisco.com
57
3200 1254_05_2000_c1_Mod3_rev1
Module3.ppt
57
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets RP Source 171.68.37.121
E0 S0 S0 S1 S3 S0 S1
rtr-a 171.68.28.190
rtr-b
(*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP (*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP Incoming interface: Serial1, RPF nbr 171.68.28.140, Incoming interface: Serial1, nbr 171.68.28.140, Outgoing interface list: Null Outgoing interface list: Null (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: T (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: T Incoming interface: Serial0, RPF nbr 171.68.28.190 Incoming interface: Serial0, nbr 171.68.28.190 Outgoing interface list: Outgoing interface list: Serial1, Forward/Sparse, 00:04:28/00:01:32 Serial1, Forward/Sparse, 00:04:28/00:01:32
Cisco.com
58
Module3.ppt
58
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets 171.68.28.139 RP Source 171.68.37.121
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
(*, 224.1.1.1), 00:09:21/00:02:38, RP 171.68.28.140, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Serial1, Forward/Sparse, 00:03:14/00:02:46 (171.68.37.121/32, 224.1.1.1, 00:01:15/00:02:46, flags: T Incoming interface: Serial3, RPF nbr 171.68.28.139, Outgoing interface list: Serial1, Forward/Sparse, 00:00:49/00:02:11
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
59
Module3.ppt
59
Receivers Join Group First Source Registers First Receivers along the SPT
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
60
Module3.ppt
60
PIM SM Registering
Receivers along the SPT
(171.68.37.121, 224.1.1.1) Mcast Packets RP Source 171.68.37.121
S0 S1 S3
rtr-a
rtr-b
S1
(*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP (*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SP Incoming interface: Serial1, RPF nbr 171.68.28.140, Incoming interface: Serial1, nbr 171.68.28.140, Outgoing interface list: Null Outgoing interface list: Null (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: T (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: T Incoming interface: Serial0, RPF nbr 171.68.28.190 Incoming interface: Serial0, nbr 171.68.28.190 Outgoing interface list: Outgoing interface list: Serial1, Forward/Sparse, 00:04:28/00:01:32 Serial1, Forward/Sparse, 00:04:28/00:01:32
Cisco.com
61
Module3.ppt
61
PIM SM Registering
Receivers along the SPT
(171.68.37.121, 224.1.1.1) Mcast Packets RP Source 171.68.37.121
S0 S1 S3
rtr-a
rtr-b
S1
(*, 224.1.1.1), 00:09:21/00:02:38, RP 171.68.28.140, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Serial1, Forward/Sparse, 00:03:14/00:02:46 (171.68.37.121/32, 224.1.1.1, 00:01:15/00:02:46, flags: T Incoming interface: Serial3, RPF nbr 171.68.28.139, Outgoing interface list: Serial1, Forward/Sparse, 00:00:49/00:02:11
Cisco.com
62
Module3.ppt
62
PIM SM Registering
Receivers along the SPT
(171.68.37.121, 224.1.1.1) Mcast Packets RP Source 171.68.37.121
S0 S1 E0 S3
rtr-a
rtr-b
S1
1 IGMP Join
Rcvr A
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
63
Module3.ppt
63
PIM SM Registering
Receivers along the SPT
(171.68.37.121, 224.1.1.1) Mcast Packets RP Source 171.68.37.121
S0 S1 E0 S3
rtr-a
rtr-b
S1
Rcvr A (*, 224.1.1.1), 00:04:28/00:01:32, RP 171.68.28.140, flags: SC Incoming interface: Serial1, RPF nbr 171.68.28.140, Outgoing interface list: Ethernet0, Forward/Sparse, 00:00:30/00:02:30 (171.68.37.121/32, 224.1.1.1), 00:04:28/00:01:32, flags: CT Incoming interface: Serial0, RPF nbr 171.68.28.190 Outgoing interface list: Serial1, Forward/Sparse, 00:04:28/00:01:32 Ethernet0, Forward/Sparse, 00:00:30/00:02:30
Added Interfaces
Cisco.com
64
Module3.ppt
64
PIM SM Registering
Receivers along the SPT
(171.68.37.121, 224.1.1.1) Mcast Packets RP Source 171.68.37.121
S0 S1 E0
rtr-a
rtr-b
S3
S1
(*, G) Join
Rcvr A
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
65
Module3.ppt
65
PIM SM Registering
Receivers along the SPT
(171.68.37.121, 224.1.1.1) Mcast Packets RP Source 171.68.37.121
S0 S1 E0 S3
rtr-a
rtr-b
S1
Rcvr A (*, 224.1.1.1), 00:09:21/00:02:38, RP 171.68.28.140, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Serial1, Forward/Sparse, 00:03:14/00:02:46 Serial3, Forward/Sparse, 00:00:10/00:02:50 (171.68.37.121/32, 224.1.1.1, 00:01:15/00:02:46, flags: T Incoming interface: Serial3, RPF nbr 171.68.28.139, Outgoing interface list: Serial1, Forward/Sparse, 00:00:49/00:02:11
Cisco.com
66
Module3.ppt
66
PIM SM Registering
Receivers along the SPT
(171.68.37.121, 224.1.1.1) Mcast Packets RP Source 171.68.37.121
S0 S1 E0 S3
rtr-a
rtr-b
S1
3
Rcvr A
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
67
Module3.ppt
67
Agenda
PIM Neighbor Discovery PIM SM State PIM SM Forwarding PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM Special Cases
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Cisco.com
68
Module3.ppt
68
PIM SM SPT-Switchover
SPT Thresholds may be set for any Group
Access Lists may be used to specify which Groups Default Threshold = 0kbps (I.e. immediately join SPT) Threshold = infinity means never join SPT.
Pros
Reduces Network Latency
Cons
More (S,G) state must be stored in the routers.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
69
SPT Thresholds
In PIM Sparse mode, SPT Thresholds may be configured to control when to switch to the Shortest-Path Tree (SPT). SPT Thresholds are specified in Kbps and can be used with Access List to specify to which Group(s) the Threshold applies. The default SPT-Threshold is 0Kbps. This means that any and all sources are immediately switched to the Shortest-Path Tree. If an SPT-Threshold of Infinity is specified for a group, the sources will not be switched to the Shortest-Path Tree (SPT) and will remain on the Shared Tree.
PROS
By switching to the Shortest-Path Tree (SPT), the most optimal (usually) path is used to deliver the multicast traffic. Depending on the location of the source in relation to the RP, this switch to the SPT can reduce network latency substantially.
CONS
In networks with large numbers of senders (remember most multicast applications such as IP/TV Client, send RTCP multicast packets in the background and are therefore senders), an increased amount of state must be kept in the routers. In some cases, an Infinity threshold may be used to force certain groups to remain on the Shared Tree when latency is not an issue.
Module3.ppt
69
PIM SM SPT-Switchover
SPT-Switchover Mechanism Once each second Once each second
Compute new (*, G) traffic rate Compute new (*, G) traffic rate If threshold exceeded, set J flag in (*, G) If threshold exceeded, set J flag in (*, G)
For each (Sii,, G) packet received: For each (S G) packet received:
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
70
SPT-Threshold Myth
This is a frequently misunderstood mechanism. Many people think that the the traffic rates of the sources in the group are monitored and compared against the SPTThreshold. THIS IS NOT THE CASE. Instead, the total aggregate rate of Group traffic flowing down the Shared Tree (RPT) is calculated once per second. If this total aggregate rate is exceed, then the next Group packet received causes that source to be switched to the Shortest-Path Tree (SPT).
SPT-Switchover Mechanism
Once each second, the aggregate (*, G) traffic rate is computed and checked against the SPT-Threshold. If the aggregate rate of all group traffic flowing down the Shared Tree (RPT) exceeds the threshold, then the J flag is set in the (*, G) entry. As each multicast packet is received on the Shared Tree, the J bit is checked in the (*, G) entry. If the J flag is set, a new (S, G) entry is created for the source of the packet. An (S, G) Join is sent towards the source in order to join the SPT. The J flag is set in the (S, G) entry to denote that this entry was created as a result of the SPT-Threshold switchover. The J flag in the (*, G) is reset. (It will be set in one second if the aggregate rate on the Shared Tree is still over the SPT-Threshold.) This mechanism can sometimes result in low rate sources being switched to the SPT erroneously. However, the RPT-switchback mechanism will correct this situation and eventually only the high rate sources will be received via SPTs while low rate sources will remain on the Shared Tree.
Module3.ppt
70
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
rtr-a
10.1.4.2
S1
To Source S i
E0
10.1.2.1
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
(*, 224.1.1.1), 00:01:43/00:02:13, RP 10.1.5.1, flags: S Incoming interface: Serial0, RPF nbr 10.1.5.1, Outgoing interface list: Serial1, Forward/Sparse, 00:01:43/00:02:11 Serial2, Forward/Sparse, 00:00:32/00:02:28
Cisco.com
71
Module3.ppt
71
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
rtr-a
10.1.4.2
S1
To Source S i
E0
10.1.2.1
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
(*, 224.1.1.1), 00:01:43/00:02:13, RP 10.1.5.1, flags: SC Incoming interface: Serial0, RPF nbr 10.1.4.8, Outgoing interface list: Ethernet0, Forward/Sparse, 00:01:43/00:02:11
Cisco.com
72
Module3.ppt
72
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
rtr-a
10.1.4.2
S1
To Source S i
E0
10.1.2.1
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
(*, 224.1.1.1), 00:01:43/00:02:13, RP 10.1.5.1, flags: S Incoming interface: Serial0, RPF nbr 10.1.4.1, Outgoing interface list: Ethernet0, Forward/Sparse, 00:01:43/00:02:11
Cisco.com
73
Module3.ppt
73
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
rtr-a
10.1.4.2
S1
To Source S i
E0
10.1.2.1
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
(*, 224.1.1.1), 00:01:43/00:02:13, RP 10.1.5.1, flags: SC Incoming interface: Ethernet0, RPF nbr 10.1.2.1, Outgoing interface list: Ethernet1, Forward/Sparse, 00:01:43/00:02:11
Cisco.com
74
Module3.ppt
74
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
rtr-a
10.1.4.2
S1
To Source S i
E0
10.1.2.1
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
(*, 224.1.1.1), 00:01:43/00:02:13, RP 10.1.5.1, flags: SC J Incoming interface: Ethernet0, RPF nbr 10.1.2.1, Outgoing interface list: Ethernet1, Forward/Sparse, 00:01:43/00:02:11
1 2
Group G rate exceeds SPT Threshold at rtr-b; Set J Flag in (*, G) and wait for next (Si,G) packet.
2000, Cisco Systems, Inc.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
75
Module3.ppt
75
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
rtr-a
10.1.4.2
S1
To Source S i
E0 3
10.1.2.1
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
(*, 224.1.1.1), 00:01:43/00:02:13, RP 10.1.5.1, flags: SC J Incoming interface: Ethernet0, RPF nbr 10.1.2.1, Outgoing interface list: Ethernet1, Forward/Sparse, 00:01:43/00:02:11
3 4
(Si,G) packet arrives down Shared tree. Clear J Flag in the (*,G) & create (S i,G) state.
2000, Cisco Systems, Inc.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
76
Module3.ppt
76
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
rtr-a
10.1.4.2
S1
To Source S i
E0
10.1.2.1
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
(*, 224.1.1.1), 00:01:43/00:02:13, RP 10.1.5.1, flags: SC Incoming interface: Ethernet0, RPF nbr 10.1.2.1, Outgoing interface list: Ethernet1, Forward/Sparse, 00:01:43/00:02:11 (171.68.37.121/32, 224.1.1.1), 00:13:28/00:02:53, flags: CJT Incoming interface: Ethernet0, RPF nbr 10.1.2.1 Outgoing interface list: Ethernet1, Forward/Sparse, 00:13:28/00:02:53
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
77
Module3.ppt
77
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
rtr-a
10.1.4.2
S1
To Source S i
E0
10.1.2.1
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
5 (S i,G) Join
rtr-b
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
78
Module3.ppt
78
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
rtr-a
10.1.4.2
S1
To Source S i
E0
10.1.2.1
S0
rtr-d
E0
Rcvr A
10.1.2.2
E0 E1
rtr-b
Rcvr B (*, 224.1.1.1), 00:01:43/00:02:13, RP 10.1.5.1, flags: S Incoming interface: Serial0, RPF nbr 10.1.4.1, Outgoing interface list: Ethernet0, Forward/Sparse, 00:01:43/00:02:11 (171.68.37.121/32, 224.1.1.1), 00:13:28/00:02:53, flags: T Incoming interface: Serial1, RPF nbr 10.1.9.2 Outgoing interface list: Ethernet0, Forward/Sparse, 00:13:25/00:02:30
Cisco.com
79
Module3.ppt
79
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1
(S i,G)RP-bit Prune
rtr-a
S1
10.1.4.2
S0 E0
10.1.2.1
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
6 7
rtr-a forwards (Si,G) Join toward Si. SPT & RPT diverge, triggering (S i,G)RP-bit Prunes toward RP.
2000, Cisco Systems, Inc.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
80
Module3.ppt
80
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
rtr-a
10.1.4.2
S1
E0
10.1.2.1
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
81
Module3.ppt
81
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
rtr-a
10.1.4.2
S1
To Source S i
E0
10.1.2.1
S0
rtr-d
E0
Rcvr A
10.1.2.2
E0 E1
rtr-b
Rcvr B (*, 224.1.1.1), 00:01:43/00:02:13, RP 10.1.5.1, flags: S Incoming interface: Serial0, RPF nbr 10.1.5.1, Outgoing interface list: Serial1, Forward/Sparse, 00:01:43/00:02:11 Serial2, Forward/Sparse, 00:00:32/00:02:28 (171.68.37.121/32, 224.1.1.1), 00:13:28/00:02:53, flags: R Incoming interface: Serial0, RPF nbr 10.1.5.1 Outgoing interface list: Serial2, Forward/Sparse, 00:00:32/00:02:28
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
82
Module3.ppt
82
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 9 S0
rtr-a
10.1.4.2
S1
To Source S i
E0
10.1.2.1
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
83
Module3.ppt
83
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 10 S0 S2
rtr-c
10.1.4.1
S1 S0
rtr-a
10.1.4.2
S1
To Source S i
E0
10.1.2.1
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
84
Module3.ppt
84
PIM SM SPT-Switchover
Shared Tree Switchback Mechanism
Once each minute Once each minute If J flag set in (Sii,, G) entry If J flag set in (S G) entry
Compute new (Sii,, G) traffic rate Compute new (S G) traffic rate If rate < SPT-threshold If rate < SPT-threshold
Rejoin (*, G) Tree for (S i i,, G) traffic Rejoin (*, G) Tree for (S G) traffic Send (S i i,, G) prune up SPT toward Si i Send (S G) prune up SPT toward S Delete (Si i,, G) entry Delete (S G) entry
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
85
Switchback Algorithm
The Switchback mechanism runs once a minute. (This helps prevent Sources from cycling between Shared Tree and Shortest-Path Tree too rapidly.) For each (Si, G) entry in the Multicast Routing Table that has the J flag set, the mechanism computes the traffic rate for source Si. If the rate has fallen below the SPT-Threshold, a switchback to the Shared Tree is initiated by the last-hop router by: Sending a Join/Prune message that contains a (*, G) Join without a (Si, G)RP-bit Prune, up the Shared Tree (RPT). (This will cause the (Si, G) Prune state along the RPT to be deleted which will permit (Si, G) traffic to begin flowing down the RPT again.) Deleteing its (Si, G) entry in the Multicast Routing Table. Send (Si, G) Prune up the Shortest-Path Tree (SPT) to stop traffic from flowing down the SPT. Note that this Switchback Algorithm is broken in older versions of IOS.
Module3.ppt
85
Agenda
PIM Neighbor Discovery PIM SM State PIM SM Forwarding PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM State Maintenance
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Cisco.com
86
Module3.ppt
86
PIM SM Pruning
IGMP group times out / last host sends Leave Interface removed from all (*,G) & (S,G) entries
IF all interfaces in oilist for (*,G) are pruned; THEN send Prune up shared tree toward RP Any (S, G) state allowed to time-out
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
87
SM Pruning
Locally connected host sends an IGMP Leave (or IGMP state times out in the router) for group G. The interface is removed from the (*, G) and all (S, G) entries in the Multicast Routing Table. If the (*, G) Outgoing Interface list is now Null, then send a (*, G) Prune up the Shared Tree (RPT) towards the RP. Any remaining (S, G) entries are allowed to timeout and be deleted from the Multicast Routing Table. When the routers up the Shared Tree receive the (*, G) Prune, they remove the interface on which the Prune was received from their (*, G) Outgoing interface list. If as a result of removing the interface the (*, G) Outgoing Interface list becomes Null, then forward a (*, G) Prune up the Shared Tree (RPT) towards the RP. Any remaining (S, G) entries are allowed to timeout and be deleted from the Multicast Routing Table.
Module3.ppt
87
PIM SM Pruning
IGMP group times out / last host sends Leave Interface removed from all (*,G) & (S,G) entries
IF all interfaces in oilist for (*,G) are pruned; THEN send Prune up shared tree toward RP Any (S, G) state allowed to time-out
Cisco.com
88
SM Pruning
Locally connected host sends an IGMP Leave (or IGMP state times out in the router) for group G. The interface is removed from the (*, G) and all (S, G) entries in the Multicast Routing Table. If the (*, G) Outgoing Interface list is now Null, then send a (*, G) Prune up the Shared Tree (RPT) towards the RP. Any remaining (S, G) entries are allowed to timeout and be deleted from the Multicast Routing Table. When the routers up the Shared Tree receive the (*, G) Prune, they remove the interface on which the Prune was received from their (*, G) Outgoing interface list. If as a result of removing the interface the (*, G) Outgoing Interface list becomes Null, then forward a (*, G) Prune up the Shared Tree (RPT) towards the RP. Any remaining (S, G) entries are allowed to timeout and be deleted from the Multicast Routing Table.
Module3.ppt
88
PIM SM Pruning
Shared Tree Case
To RP (10.1.5.1)
10.1.4.2
S1 S0 E0
rtr-a
10.1.2.1
10.1.2.2E0
E1
Rcvr A
rtr-b
(*, 224.1.1.1), 00:01:43/00:02:13, RP 10.1.5.1, flags: SC Incoming interface: Ethernet0, RPF nbr 10.1.2.1, Outgoing interface list: Ethernet1, Forward/Sparse, 00:01:43/00:02:11
Cisco.com
89
Module3.ppt
89
PIM SM Pruning
Shared Tree Case
To RP (10.1.5.1)
10.1.4.2
S1 S0 E0
rtr-a
10.1.2.1
10.1.2.2E0
E1
Rcvr A
rtr-b
(*, 224.1.1.1), 00:01:43/00:02:13, RP 10.1.5.1, flags: S Incoming interface: Serial0, RPF nbr 10.1.4.1, Outgoing interface list: Ethernet0, Forward/Sparse, 00:01:43/00:02:11
Cisco.com
90
Module3.ppt
90
PIM SM Pruning
Shared Tree Case
To RP (10.1.5.1)
10.1.4.2
S1 S0 E0
rtr-a
10.1.2.1
10.1.2.2E0
3 (*,G) Prune
1 IGMP Leave
Rcvr A
E1 2
rtr-b
1 2 3
rtr-b is a Leaf router. Last host Rcvr A, leaves group G. rtr-b removes E1 from (*,G) and any (S i,G) oilists. rtr-b (*,G) oilist now empty; sends (*,G) Prune toward RP.
X X
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
91
Module3.ppt
91
PIM SM Pruning
Shared Tree Case
To RP (10.1.5.1)
(*,G) Prune (S i, G) Traffic Flow Shared Tree SPT Tree
X
E1
6 S0
S1
10.1.4.2
rtr-a
10.1.2.2E0
E0 4
10.1.2.1
rtr-b
4 5 6
rtr-a (*,G) oilist now empty; send (*,G) Prune toward RP. Pruning continues back toward RP.
2000, Cisco Systems, Inc.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
92
Module3.ppt
92
PIM SM Pruning
Source (SPT) Case
To RP (10.1.5.1)
10.1.4.2
S1 S0
To Source S i
rtr-a
E010.1.2.1
10.1.2.2
E0
E1
Rcvr A
rtr-b
(*, 224.1.1.1), 00:01:43/00:02:59, RP 10.1.5.1, flags: SC (*, 224.1.1.1), 00:01:43/00:02:59, RP 10.1.5.1, flags: SC Incoming interface: Ethernet0, RPF nbr 10.1.2.1, Incoming interface: Ethernet0, RPF nbr 10.1.2.1, Outgoing interface list: Outgoing interface list: Ethernet1, Forward/Sparse, 00:01:43/00:02:11 Ethernet1, Forward/Sparse, 00:01:43/00:02:11 (171.68.37.121/32, 224.1.1.1), 00:01:05/00:01:55, flags: CJT (171.68.37.121/32, 224.1.1.1), 00:01:05/00:01:55, flags: CJT Incoming interface: Ethernet0, RPF nbr 10.1.2.1 Incoming interface: Ethernet0, RPF nbr 10.1.2.1 Outgoing interface list: Outgoing interface list: Ethernet1, Forward/Sparse, 00:01:05/00:02:55 Ethernet1, Forward/Sparse, 00:01:05/00:02:55
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
93
Module3.ppt
93
PIM SM Pruning
Source (SPT) Case
To RP (10.1.5.1)
10.1.4.2
S1 S0
To Source S i
rtr-a
E010.1.2.1
10.1.2.2
E0
E1
Rcvr A
rtr-b
(*, 224.1.1.1), 00:01:43/00:02:59, RP 10.1.5.1, flags: S Incoming interface: Serial0, RPF nbr 10.1.4.1, Outgoing interface list: Ethernet0, Forward/Sparse, 00:01:43/00:02:11 (171.68.37.121/32, 224.1.1.1), 00:01:05/00:01:55, flags: T Incoming interface: Serial1, RPF nbr 10.1.9.2 Outgoing interface list: Ethernet0, Forward/Sparse, 00:01:05/00:02:55
Cisco.com
94
Module3.ppt
94
PIM SM Pruning
Source (SPT) Case
To RP (10.1.5.1)
10.1.4.2
S1 S0
To Source S i
rtr-a
E010.1.2.1 3 (*,G) Prune
10.1.2.2
E0
1 IGMP Leave
Rcvr A
E1 2
rtr-b
X X
1 2 3
rtr-b is a Leaf router. Last host Rcvr A, leaves group G. rtr-b removes E1 from (*,G) and any (S i,G) oilists. rtr-b (*,G) oilist now empty; sends (*,G) Prune toward RP.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
95
Module3.ppt
95
PIM SM Pruning
Source (SPT) Case
To RP (10.1.5.1)
10.1.4.2
S1 S0
To Source S i
rtr-a
E010.1.2.1
X X
10.1.2.2
E0
4 Periodic
E1
(S, G) Join
rtr-b
X X
Rcvr A
1 2 3 4
rtr-b is a Leaf router. Last host Rcvr A, leaves group G. rtr-b removes E1 from (*,G) and any (S i,G) oilists. rtr-b (*,G) oilist now empty; sends (*,G) Prune toward RP. rtr-b stops sending periodic (S, G) joins.
2000, Cisco Systems, Inc.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
96
Module3.ppt
96
PIM SM Pruning
Source (SPT) Case
To RP (10.1.5.1)
(*,G) Prune (S i, G) Traffic Flow Shared Tree SPT Tree
S1 S0
To Source S i
10.1.4.2
rtr-a
10.1.2.2
E010.1.2.1 5
E0
E1
rtr-b
5 6
rtr-a (*,G) oilist now empty; sends (*,G) Prune toward RP.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
97
Module3.ppt
97
PIM SM Pruning
Source (SPT) Case
To RP (10.1.5.1)
10.1.4.2
S1 S0
To Source S i
rtr-a
E010.1.2.1
10.1.2.2
E0
E1
rtr-b
(*, 224.1.1.1), 00:02:32/00:02:59, RP 10.1.5.1, flags: SP Incoming interface: Ethernet0, RPF nbr 10.1.2.1, Outgoing interface list: (171.68.37.121/32, 224.1.1.1), 00:01:56/00:00:53, flags: PT Incoming interface: Ethernet0, RPF nbr 10.1.2.1 Outgoing interface list:
Cisco.com
98
Module3.ppt
98
PIM SM Pruning
Source (SPT) Case
To RP (10.1.5.1)
10.1.4.2
S1 S0
To Source S i
rtr-a
E010.1.2.1
10.1.2.2
E0
E1
rtr-b
(*, 224.1.1.1), 00:02:32/00:02:59, RP 10.1.5.1, flags: SP (*, 224.1.1.1), 00:02:32/00:02:59, RP 10.1.5.1, flags: SP Incoming interface: Serial0, RPF nbr 10.1.4.1, Incoming interface: Serial0, RPF nbr 10.1.4.1, Outgoing interface list: Outgoing interface list: (171.68.37.121/32, 224.1.1.1), 00:01:56/00:00:53, flags: PT (171.68.37.121/32, 224.1.1.1), 00:01:56/00:00:53, flags: PT Incoming interface: Serial1, RPF nbr 10.1.9.2 Incoming interface: Serial1, RPF nbr 10.1.9.2 Outgoing interface list: Outgoing interface list:
Cisco.com
99
Module3.ppt
99
PIM SM Pruning
Source (SPT) Case
To RP (10.1.5.1)
10.1.4.2 (Si ,G) Data
S1 S0 E0
rtr-a
10.1.2.1
10.1.2.2
E0
E1
rtr-b
7 8
Another (Si,G) data packet arrives via Serial1. rtr-a responds by sending an (Si,G) Prune toward source.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
100
Module3.ppt
100
PIM SM Pruning
Source (SPT) Case
9 To RP (10.1.5.1)
10.1.4.2
S1 S0 E0
To Source S i
rtr-a
10.1.2.1
10.1.2.2
E0
E1
rtr-b
7 8 9
Another (Si,G) data packet arrives via Serial1. rtr-a responds by sending an (Si,G) Prune toward source. (Si,G) traffic ceases flowing down SPT.
2000, Cisco Systems, Inc.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
101
Module3.ppt
101
Agenda
PIM Neighbor Discovery PIM SM State PIM SM Forwarding PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM Special Cases
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Cisco.com
102
Module3.ppt
102
RP on a Stick
Special situation that occurs on the RP:
When all members have joined the Shared tree only via a single interface on the RP. And the source is out the same interface
Mishandled in versions of IOS prior to 12.0 Requires the Proxy Join Timer to resolve Need to understand concept of atomic joins
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
103
RP on a Stick
This is a special situation that occurs under the following conditions: All branches of the Shared Tree are out a single interface on the RP (i.e. there is only a single interface in the (*, G) OIL at the RP.) All sources for the group are out the same interface. (This would result in (S, G) entries with Null OILs since the incoming interface can never appear in the OIL of an entry.)
Module3.ppt
103
RP on a Stick
RP rtr-a
E0 10.1.4.1
10.1.4.2 E1
10.1.4.3 E1
rtr-b
E0 E0
rtr-c
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
104
RP-on-a-Stick Example
Consider that above network topology where both rtr-b and rtr-c share a common Ethernet segment with the RP.
Module3.ppt
104
RP on a Stick
Shared Tree
RP rtr-a
E0 10.1.4.1
10.1.4.2 E1
10.1.4.3 E1
rtr-b
E0
(*, 224.1.1.1), 00:01:21/00:02:59, RP 10.1.4.1, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Ethernet0, Forward/Sparse, 00:01:21/00:02:39
rtr-c
E0
Member 224.1.1.1
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
105
RP-on-a-Stick Example
When a host behind rtr-c joins group 224.1.1.1, a branch of the Shared Tree is created (shown by the solid arrow) which results in the following state on the RP: (*, 224.1.1.1), 00:01:21/00:02:59, RP 10.1.4.1, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Ethernet0, Forward/Sparse, 00:01:21/00:02:39
Module3.ppt
105
RP on a Stick
Shared Tree
RP rtr-a
E0 10.1.4.1
10.1.4.2 E1
10.1.4.3 E1
rtr-b
E0 E0
rtr-c
(*, 224.1.1.1), 00:01:21/00:02:59, RP 10.1.4.1, flags: SC Incoming interface: Ethernet1, RPF nbr 10.1.4.1, Outgoing interface list: Ethernet0, Forward/Sparse, 00:01:21/00:02:39
Member 224.1.1.1
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
106
RP-on-a-Stick Example
This also results in the following state on rtr-c: (*, 224.1.1.1), 00:01:21/00:02:59, RP 10.1.4.1, flags: SC Incoming interface: Ethernet1, RPF nbr 10.1.4.1, Outgoing interface list: Ethernet0, Forward/Sparse, 00:01:21/00:02:39
Module3.ppt
106
RP on a Stick
(192.1.1.1, 224.1.1.1) Traffic Flow Shared Tree SPT
RP rtr-a
E0 10.1.4.1
10.1.4.2 E1
10.1.4.3 E1
rtr-b
E0 E0
rtr-c
Source 192.1.1.1
3200 1254_05_2000_c1_Mod3_rev1
Member 224.1.1.1
Cisco.com
107
RP-on-a-Stick Example
Now assume that source 192.1.1.1 behind rtr-b begins sending to group 224.1.1.1. After the normal Register process has completed, a branch of the SPT (shown by the heave dashed arrow) is built from rtr-b to the RP. This allows traffic to flow to the members as shown by the thin dashed arrows.
Module3.ppt
107
RP on a Stick
(192.1.1.1, 224.1.1.1) Traffic Flow Shared Tree SPT
RP rtr-a
E0 10.1.4.1
10.1.4.2 E1
10.1.4.3 E1
rtr-b
E0 E0
rtr-c
(*, 224.1.1.1), 00:01:21/00:02:59, RP 10.1.4.1, flags: SP Incoming interface: Ethernet1, RPF nbr 10.1.4.1, Outgoing interface list: (192.1.1.1/32, Source 224.1.1.1), 00:00:49/00:02:46, flags: T Incoming interface: Ethernet0, RPF nbr 0.0.0.0, 192.1.1.1 Outgoing interface list: Ethernet1, Forward/Sparse, 00:00:49/00:02:11
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Member 224.1.1.1
Cisco.com
108
RP-on-a-Stick Example
The creation of the SPT results in the following state on rtr-b: (*, 224.1.1.1), 00:01:21/00:02:59, RP 10.1.4.1, flags: SP (192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:46, flags: T Incoming interface: Ethernet0, RPF nbr 0.0.0.0, Outgoing interface list: Ethernet1, Forward/Sparse, 00:00:49/00:02:11 Incoming interface: Ethernet1, RPF nbr 10.1.4.1, Outgoing interface list:
Module3.ppt
108
RP on a Stick
(192.1.1.1, 224.1.1.1) Traffic Flow Shared Tree SPT
RP rtr-a
E0 10.1.4.1
10.1.4.2 E1
10.1.4.3 E1
rtr-b
E0
(*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.4.1, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Ethernet0, Forward/Sparse, 00:02:43/00:02:17 (192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:46, flags: PT Source Incoming interface: Ethernet0, RPF nbr 10.1.4.2, 192.1.1.1 Outgoing interface list:
rtr-c
E0
Member 224.1.1.1
Cisco.com
109
RP-on-a-Stick Example
The creation of the SPT also results in the following state on the RP: (*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.4.1, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Ethernet0, Forward/Sparse, 00:02:43/00:02:17 (192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:46, flags: PT Incoming interface: Ethernet0, RPF nbr 10.1.4.2, Outgoing interface list: Notice that the OIL of the (S, G) entry is Null which, in turn, results in the P flag being set. Normally, this would cause the RP to send an (S, G) Prune toward the source to shut off the flow of (S, G) traffic. However in this case, that would starve the host behind rtr-c of the desired group traffic. Obviously, something else must be done to prevent this.
Module3.ppt
109
RP on a Stick
Solution requires three new concepts
Atomic & Non-Atomic Joins Proxy Join Timer/Flag Header-only Registers
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
110
RP-on-a-Stick Solution
In order to deal of this special situation, several new concepts were added to the 12.0 implementation of PIM. These are: Atomic vs. Non-Atomic (*, G) Joins The Proxy Join Timer (and its flag) on (S, G) entries Header-only Registers (aka Data-less Registers) Each of the above are discussed in the following pages
Module3.ppt
110
RP on a Stick
Non-Atomic Joins
Contains (*, G) Join for group G only
This is the type of (*, G) Join we are familiar with
Atomic Joins
Contains (*, G) Join for group G followed by (S, G)RP-bit Prunes for all sources in group G
Used to prune unnecessary (S, G) traffic from the Shared Tree after switchover to the SPT.
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
111
Non-Atomic Joins
This is a PIM Join/Prune message that contains only a (*, G) Join for group G in the Join list without any associated (S, G)RP-bit Prunes for group G in the Prune list. This is the typical (*, G) Join that has been described in most of the examples in Module 5, PIM-SM.
Atomic Joins
This is a PIM Join/Prune message that contains a (*, G) Join for group G in the Join list AND a complete list of all (S, G)RP-bit Prunes for group G in the Prune list. Remember, these (S, G)RP-bit Prunes are used to Prune specific (S, G) traffic off of the Shared Tree after a router has joined the SPT directly toward the source.
Module3.ppt
111
RP on a Stick
PIM Join/Prune Message
Header (10.1.4.1, 224.1.0.5) (10.1.4.1, 224.1.1.1) Join List (10.1.4.1, 224.2.2.2) (10.1.19.21, 224.2.2.2) . . . (10.1.19.21, 224.1.0.5) (10.1.4.1, 224.3.3.3) (192.1.1.1, 224.1.1.1) (192.1.4.2, 224.2.2.2) . . . WC, RP WC, RP WC, RP RP (*, G) Join + (S, G)RP-bit Prune = Atomic Join
WC, RP RP
Prune List
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
112
Module3.ppt
112
RP on a Stick
PIM Join/Prune Message
Header (10.1.4.1, 224.1.0.5) (10.1.4.1, 224.1.1.1) Join List (10.1.4.1, 224.2.2.2) (10.1.19.21, 224.2.2.2) . . . (10.1.19.21, 224.1.0.5) (10.1.4.1, 224.3.3.3) (192.1.1.1, 224.1.1.1) (192.1.4.2, 224.2.2.2) . . . WC, RP WC, RP WC, RP RP
WC, RP RP
Prune List
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
113
Module3.ppt
113
RP on a Stick
Proxy Join Timer
Used on (S, G) entries only Started on the RP by the initial (S, G) Register
If (S, G) OIL is Null AND (*, G) OIL is Non-Null
Controls the sending of (S, G) Joins and Prunes down the SPT When Proxy Join Timer is Running (X flag set)
Send (S, G) Joins down SPT Suppress sending any (S, G) Prunes down SPT
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
114
Module3.ppt
114
RP on a Stick
Header-only Registers
Used to keep (S, G) state alive in the RP Sent every 2 minutes by First-hop router
As long as source is still active Continues sending until a Register-Stop is received
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
115
Module3.ppt
115
RP on a Stick
Non-Atomic Join Normal Register (S, G) Join
RP rtr-a
E0 10.1.4.1
10.1.4.2 E1
10.1.4.3 E1
rtr-b
E0
(*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.4.1, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Ethernet0, Forward/Sparse, 00:02:43/00:02:17 (192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:46, flags: PXT X Incoming interface: Ethernet0, RPF nbr 10.1.4.2, Source Outgoing interface list:
rtr-c
E0
192.1.1.1
Member 224.1.1.1
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
116
RP-on-a-Stick Example
In this example, rtr-c is sending Non-Atomic (*, G) Joins to the RP to keep on the Shared Tree. (Note that rtr-c has not joined the SPT at this point. This could be due to the SPT-Threshold being set to Infinity.) The RP is now running version 12.0 or later of IOS. Therefore, when the Non-Atomic (*, G) Join for group 224.1.1.1 is received, the RP starts the Proxy Join Timer in all (S, G) entries for group 224.1.1.1. This results in the following state in the RP: (*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.4.1, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Ethernet0, Forward/Sparse, 00:02:43/00:02:17 (192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:46, flags: PXT X Incoming interface: Ethernet0, RPF nbr 10.1.4.2, Outgoing interface list: Notice the X flag is set in the above example. This causes the RP to continue sending (S, G) Joins toward the source (even though the OIL is Null) which, in turn, will keep the traffic flowing to the member across the common Ethernet segment.
Module3.ppt
116
RP on a Stick
Periodic (S, G) Joins Header-only Registers E0 10.1.4.1
RP rtr-a
10.1.4.2 E1
10.1.4.3 E1
rtr-b
E0
(*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.4.1, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Ethernet0, Forward/Sparse, 00:02:43/00:02:17 (192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:59 flags: PXT 00:02:59, Incoming interface: Ethernet0, RPF nbr 10.1.4.2, Source Outgoing interface list:
rtr-c
E0
192.1.1.1
Member 224.1.1.1
Cisco.com
117
RP-on-a-Stick Example
The First-hop router (rtr-b) is also running version 12.0 or later of IOS and it will therefore send periodic Header-only (S, G) Register messages to the RP. When RP receives these Header-only (S, G) Registers, (roughly every 2 minutes), it resets the Expire timer in the corresponding (S, G) entry in the Mroute table. This results in the following state in the RP: (*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.4.1, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Ethernet0, Forward/Sparse, 00:02:43/00:02:17 (192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:59 flags: PXT 00:02:59, Incoming interface: Ethernet0, RPF nbr 10.1.4.2, Outgoing interface list: (Notice the Expire timer in the (S, G) entry has been reset.)
Module3.ppt
117
Turnaround Router
Extension of the RP-on-a-Stick Problem
Occurs when the SPT and the Shared Tree share a single common path Want to avoid pulling traffic to the RP unnecessarily
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
118
Turnaround Router
As it turns out, the RP-on-a-Stick problem is actually a special case of another problem referred to the Turnaround Router problem. This situation occurs whenever : There is only a single branch of the Shared Tree and the Shared Tree and a SPT share a common path to the RP. We want to have the (S, G) traffic flow along the SPT toward the RP and turnaround at the appropriate router in the network and flow back down the Shared Tree without sending unnecessary traffic to the RP.
Module3.ppt
118
Turnaround Router
(192.1.1.1, 224.1.1.1) Traffic Flow Shared Tree SPT
RP rtr-a
S0 10.1.3.1 S0 10.1.3.2
10.1.4.2 E1
10.1.4.3 E1
rtr-b
E0 E0
rtr-c
Source 192.1.1.1
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Member 224.1.1.1
Cisco.com
119
Module3.ppt
119
Turnaround Router
Non-Atomic Joins
RP rtr-a
S0 10.1.3.1 S0 10.1.3.2
rtr-b
rtr-c
E0
E0
(*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.3.1, flags: S Incoming interface: Serial0, RPF nbr 10.1.3.1, Outgoing interface list: Member Ethernet0, Forward/Sparse, 00:02:43/00:02:17
Source 192.1.1.1
3200 1254_05_2000_c1_Mod3_rev1
224.1.1.1
Cisco.com
120
Module3.ppt
120
Turnaround Router
Non-Atomic Joins Normal Register
RP rtr-a
S0 10.1.3.1 S0 10.1.3.2
10.1.4.2 E1
10.1.4.3 E1
rtr-b
E0 (*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.3.1, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Serial0, Forward/Sparse, 00:02:43/00:02:17 E0
rtr-c
(192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:59, flags: PXT Incoming interface: Serial0, RPF nbr 10.1.3.2, Source Member Outgoing interface list:
192.1.1.1
224.1.1.1
Cisco.com
121
Module3.ppt
121
Turnaround Router
Non-Atomic Joins
RP rtr-a
S0 10.1.3.1
10.1.4.2 E1
10.1.4.3 E1
(*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.3.1, flags: S Incoming interface: Serial0, RPF nbr 10.1.3.1, Outgoing interface list: E0 E0 Ethernet0, Forward/Sparse, 00:02:43/00:02:17
rtr-b
rtr-c
(192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:59, flags: T Incoming interface: Ethernet0, RPF nbr 10.1.4.2, Outgoing interface list: Serial0, Forward/Sparse, 00:00:48/00:02:12
Source 192.1.1.1
Member 224.1.1.1
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
122
Module3.ppt
122
Turnaround Router
Non-Atomic Joins
RP rtr-a
S0 10.1.3.1
10.1.4.2 E1
10.1.4.3 E1
rtr-b
E0 E0
rtr-c
Source 192.1.1.1
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Member 224.1.1.1
Cisco.com
123
Module3.ppt
123
Turnaround Router
Non-Atomic Joins Atomic Joins
(Contains (*,G)Join + (S,G)RP-bit Prune)
RP rtr-a
S0 10.1.3.1 S0 10.1.3.2
(S, G) Joins
10.1.4.2 E1
10.1.4.3 E1
(*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.3.1, flags: S Incoming interface: Serial0, RPF nbr 10.1.3.1, Outgoing interface list: E0 E0 Ethernet0, Forward/Sparse, 00:02:43/00:02:17
rtr-b
rtr-c
(192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:59, flags: PT Incoming interface: Ethernet0, RPF nbr 10.1.4.2, 10.1.4.2, Outgoing interface list: Serial0, Forward/Sparse, 00:00:48/00:02:12
Source 192.1.1.1
Member 224.1.1.1
3200 1254_05_2000_c1_Mod3_rev1
Cisco.com
124
Module3.ppt
124
Turnaround Router
Non-Atomic Joins Atomic Joins
(Contains (*,G)Join + (S,G)RP-bit Prune)
RP rtr-a
S0 10.1.3.1 S0 10.1.3.2
(S, G) Joins
(*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.4.1, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, 10.1.4.3 E1 Outgoing 10.1.4.2 E1 list: interface Serial0, Forward/Sparse, 00:02:43/00:02:17
rtr-b
rtr-c
(192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:59, flags: PXT PT E0 E0 Incoming interface: Serial0, RPF nbr 10.1.3.2, Outgoing interface list:
Source 192.1.1.1
(Non-Atomic Joins no longer being 3200 1254_05_2000_c1_Mod3_rev1 2000, Cisco Systems, Inc. Proxy Join Timer eventually expires received)
Member 224.1.1.1
Cisco.com
125
Module3.ppt
125
Turnaround Router
Non-Atomic Joins Atomic Joins
(Contains (*,G)Join + (S,G)RP-bit Prune)
RP rtr-a
S0 10.1.3.1 S0 10.1.3.2
10.1.4.2 E1
10.1.4.3 E1
rtr-b
E0 (*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.3.1, flags: S Incoming interface: Serial0, RPF nbr 10.1.3.1, Outgoing interface list: Ethernet0, Forward/Sparse, 00:02:43/00:02:17
(192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:59, flags: PT Incoming interface: Ethernet0, RPF nbr 10.1.4.2, Source Outgoing interface list:
rtr-c
E0
192.1.1.1
Member 224.1.1.1
Cisco.com
126
Module3.ppt
126
Turnaround Router
Non-Atomic Joins Atomic Joins
(Contains (*,G)Join + (S,G)RP-bit Prune)
RP rtr-a
S0 10.1.3.1 S0 10.1.3.2
(S, G) Join
10.1.4.2 E1
10.1.4.3 E1
rtr-b
E0 (*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.3.1, flags: S Incoming interface: Serial0, RPF nbr 10.1.3.1, Outgoing interface list: Ethernet0, Forward/Sparse, 00:02:43/00:02:17
PXT (192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:59, flags: PT Incoming interface: Ethernet0, RPF nbr 10.1.4.2, Source Outgoing interface list:
rtr-c
E0
192.1.1.1
Member 224.1.1.1
Cisco.com
127
Step 10
Module3.ppt
127
Turnaround Router
Non-Atomic Joins Atomic Joins (S, G) Joins Header-only Registers (192.1.1.1, 224.1.1.1) Traffic Flow S0 10.1.3.2
RP rtr-a
S0 10.1.3.1
10.1.4.2 E1
10.1.4.3 E1
rtr-b
E0 E0
rtr-c
Source 192.1.1.1
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Member 224.1.1.1
Cisco.com
128
Turnaround Router
Step 11 Finally, Header-only Registers sent by the First-hop router (rtr-b) continue to reset the Expire timer in the (S, G) entry at the RP. This prevents the (S, G) entry from timing out and being deleted at the RP.
Module3.ppt
128
Turnaround Router
Non-Atomic Joins Atomic Joins (S, G) Joins Header-only Registers (192.1.1.1, 224.1.1.1) Traffic Flow S0 10.1.3.2
RP rtr-a
S0 10.1.3.1
(*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.3.1, flags: S Incoming 10.1.4.2 E1 Null, RPF nbr 0.0.0.0, interface: 10.1.4.3 E1 Outgoing interface list: Serial0, Forward/Sparse, 00:02:43/00:02:17
rtr-b
rtr-c
(192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:59, flags: PT E0 Incoming interface: Serial0, RPF nbr 10.1.3.2, Outgoing interface list:
E0
Source 192.1.1.1
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Member 224.1.1.1
Cisco.com
129
Turnaround Router
As a result of the Header-only Registers, the state in the RP will be as follows as long as the source and member remain active: (*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.3.1, flags: S Incoming interface: Null, RPF nbr 0.0.0.0, Outgoing interface list: Serial0, Forward/Sparse, 00:02:43/00:02:17 (192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:59, flags: PT Incoming interface: Serial0, RPF nbr 10.1.3.2, Outgoing interface list:
Module3.ppt
129
Turnaround Router
Non-Atomic Joins Atomic Joins (S, G) Joins Header-only Registers (192.1.1.1, 224.1.1.1) Traffic Flow S0 10.1.3.2
RP rtr-a
S0 10.1.3.1
10.1.4.2 E1
10.1.4.3 E1
(*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.3.1, flags: S Incoming interface: Serial0, RPF nbr 10.1.3.1, Outgoing interface list: E0 E0 Ethernet0, Forward/Sparse, 00:02:43/00:02:17
rtr-b
rtr-c
(192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:59, flags: PXT Incoming interface: Ethernet0, RPF nbr 10.1.4.2, Outgoing interface list:
Source 192.1.1.1
3200 1254_05_2000_c1_Mod3_rev1
2000, Cisco Systems, Inc.
Member 224.1.1.1
Cisco.com
130
Turnaround Router
As a result of the Non-Atomic Joins, the state in the Turnaround router will be as follows as long as the source and member remain active : (*, 224.1.1.1), 00:02:43/00:02:59, RP 10.1.3.1, flags: S Incoming interface: Serial0, RPF nbr 10.1.3.1, Outgoing interface list: Ethernet0, Forward/Sparse, 00:02:43/00:02:17 (192.1.1.1/32, 224.1.1.1), 00:00:49/00:02:59, flags: PXT Incoming interface: Ethernet0, RPF nbr 10.1.4.2, Outgoing interface list:
Module3.ppt
130
3200 1254_05_2000_c1_Mod3_rev1
131
Module3.ppt
131