PIM Sparse Mode: 1 1999-2001, Cisco Systems, Inc
PIM Sparse Mode: 1 1999-2001, Cisco Systems, Inc
PIM Sparse Mode: 1 1999-2001, Cisco Systems, Inc
Module 5
Module5. ppt
8/10/2001 2:37 PM
Module5.ppt
Module Objectives
Identify and explain the basic mechanisms of PIM Sparse Mode. Configure and verify normal PIM SM operation.
Module5. ppt
8/10/2001 2:37 PM
2 2
Module5.ppt
Module Agenda
Geekometer
Module5. ppt
8/10/2001 2:37 PM
3 3
Module5.ppt
8/10/2001 2:37 PM
4 4
Module5.ppt
Only one RP is chosen for a particular group RP statically configured or dynamically learned (Auto-RP or PIM v2 BSR) Data forwarded based on the source state (S, G) if it exists, otherwise use the shared state (*, G) RFC 2362 - PIM Sparse Mode Protocol Spec
Module5. ppt
8/10/2001 2:37 PM
5 5
RP Configuration
RPs may be configured statically on each router (although they must all agree or your network will be broken!) in your network. However, a better solution is to use the Auto-RP or PIMv2 mechanisms to configure RPs.
Data Forwarding
Multicast traffic forwarding In a PIM Sparse mode network is first attempted using any matching (S,G) entries in the Multicast Routing table. If no matching (S,G) state exists, then the traffic is forwarded using the matching (*,G) entry in the Multicast Routing table.
Module5.ppt
RP
Module5. ppt
8/10/2001 2:37 PM
6 6
Module5.ppt
Source
RP
(unicast)
Receiver
Module5. ppt
8/10/2001 2:37 PM
7 7
Module5.ppt
Source
RP
(S, G) Register (S, G) Joins Shared Tree Source Tree (S, G) Register-Stop
(unicast)
(unicast)
Receiver
Module5. ppt
8/10/2001 2:37 PM
8 8
Module5.ppt
Source
RP
Source traffic flows natively along SPT to RP. From RP, traffic flows down the Shared Tree to Receivers.
Module5. ppt
8/10/2001 2:37 PM
9 9
Module5.ppt
Source
RP
Last-hop router joins the SPT. (S, G) Joins Shared Tree Source Tree (S, G)RP-bit Prunes Additional (S, G) State is created along new part of the Source Tree. Receiver Additional (S, G) State is created along along the Shared Tree to prune off (S, G) traffic.
Module5. ppt
8/10/2001 2:37 PM
10 10
Module5.ppt
10
Source
RP
(S, G) Traffic flow is now pruned off of the Shared Tree and is flowing to the Receiver via the SPT.
Module5. ppt
8/10/2001 2:37 PM
11 11
Module5.ppt
11
Source
RP
(S, G) traffic flow is no longer needed by the RP so it Prunes the flow of (S, G) traffic.
Module5.ppt
8/10/2001 2:37 PM
12 12
Module5.ppt
12
Source
RP
(S, G) Traffic flow is now only flowing to the Receiver via a single branch of the Source Tree.
Module5.ppt
8/10/2001 2:37 PM
13 13
Module5.ppt
13
PIM Neighbor Discovery PIM State PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM State Maintenance
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
14 14
Module5.ppt
14
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.
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
15 15
Module5.ppt
15
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 Sparse (DR) (DR) Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse Sparse
Module5. ppt
8/10/2001 2:37 PM
16 16
Module5.ppt
16
PIM Neighbor Discovery PIM State PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM State Maintenance
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
17 17
Module5.ppt
17
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)
Module5. ppt
8/10/2001 2:37 PM
18 18
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.
Module5.ppt
18
Module5. ppt
8/10/2001 2:37 PM
19 19
19
(*,G) deletion
When OIL = NULL and no child (S,G) state exists
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
20 20
Module5.ppt
20
(S,G) deletion
By normal (S,G) entry timeout
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
21 21
Module5.ppt
21
8/10/2001 2:37 PM
22 22
Module5.ppt
22
8/10/2001 2:37 PM
23 23
Module5.ppt
23
S C L P T
= = = = =
Sparse Mode Directly Connected Host Local (Router is member) Pruned (All intfcs in OIL = Prune) Forwarding via SPT
Module5. ppt
8/10/2001 2:37 PM
24 24
Module5.ppt
24
In (*, G) entry
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
Set when F set in at least one child (S,G)
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
25 25
Module5.ppt
25
Module5. ppt
8/10/2001 2:37 PM
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.)
Module5.ppt
26
Module5. ppt
8/10/2001 2:37 PM
27 27
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.)
Module5.ppt
27
8/10/2001 2:37 PM
28 28
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.
Module5.ppt
28
PIM Neighbor Discovery PIM State PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM State Maintenance
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
29 29
Module5.ppt
29
PIM SM Joining
ELSE
Join process complete. Reached the Shared Tree.
Module5. ppt
8/10/2001 2:37 PM
30 30
Module5.ppt
30
PIM SM Joining
To RP (10.1.5.1) S0
10.1.4.2 Shared Tree 10.1.2.2
S1
rtr-a
E0
10.1.2.1
E0
1 IGMP Join
Rcvr A
E1
rtr-b
Module5. ppt
8/10/2001 2:37 PM
31 31
Module5.ppt
31
PIM SM Joining
To RP (10.1.5.1) S0
10.1.4.2 Shared Tree 10.1.2.2
S1
rtr-a
E0
10.1.2.1
E0
E1
Rcvr A
rtr-b
(*, (*, 224.1.1.1), 224.1.1.1), 00:00:05/00:02:54, 00:00:05/00:02:54, RP RP 10.1.5.1, 10.1.5.1, flags: flags: SC SC Incoming Incoming interface: interface: Ethernet0, Ethernet0, RPF RPF nbr nbr 10.1.2.1 10.1.2.1 Outgoing Outgoing interface interface list: list: Ethernet1, Forward/Sparse, 00:00:05/00:02:54 Ethernet1, Forward/Sparse, Forward/Sparse, 00:00:05/00:02:54 00:00:05/00:02:54
Module5. ppt
8/10/2001 2:37 PM
32 32
Module5.ppt
32
PIM SM Joining
To RP (10.1.5.1) S0
10.1.4.2 Shared Tree 10.1.2.2
S1
rtr-a
E0
10.1.2.1
E0
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.
Module5. ppt
8/10/2001 2:37 PM
33 33
Module5.ppt
33
PIM SM Joining
To RP (10.1.5.1) S0
10.1.4.2 Shared Tree 10.1.2.2
S1
rtr-a
E0
10.1.2.1
E0
E1
Rcvr A
rtr-b
(*, (*, 224.1.1.1), 224.1.1.1), 00:00:05/00:02:54, 00:00:05/00:02:54, RP RP 10.1.5.1, 10.1.5.1, flags: flags: S S Incoming Incoming interface: interface: Serial0, Serial0, RPF RPF nbr nbr 10.1.4.1 10.1.4.1 Outgoing Outgoing interface interface list: list: Ethernet0, Ethernet0, 00:00:05/00:02:54 Ethernet0, Forward/Sparse, Forward/Sparse, 00:00:05/00:02:54 00:00:05/00:02:54
Module5. ppt
8/10/2001 2:37 PM
34 34
Module5.ppt
34
PIM SM Joining
To RP (10.1.5.1) 4 Shared Tree S0
10.1.4.2
S1
3 PIM Join
Shared Tree
rtr-a
E0
10.1.2.1
10.1.2.2
E0
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.
1998 2001, Cisco Systems, Inc. All rights reserved.
Module5. ppt
8/10/2001 2:37 PM
35 35
Module5.ppt
35
PIM Neighbor Discovery PIM State PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM State Maintenance
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
36 36
Module5.ppt
36
PIM SM Registering
Senders begin sourcing Multicast Traffic
Senders dont necessarily perform IGMP group joins.
8/10/2001 2:37 PM
37 37
Module5.ppt
37
Module5. ppt
8/10/2001 2:37 PM
38 38
38
Receivers Join Group First Source Registers First Receivers along the SPT
Module5. ppt
8/10/2001 2:37 PM
39 39
Module5.ppt
39
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:03:14/00:02:59, 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:45 Serial1, Forward/Sparse, 00:03:14/00:02:45
Module5. ppt
8/10/2001 2:37 PM
40 40
Module5.ppt
40
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 rtr-b>sh >sh ip ip mroute mroute 224.1.1.1 224.1.1.1 No No such such group group
Module5. ppt
8/10/2001 2:37 PM
41 41
Module5.ppt
41
PIM SM Registering
Receiver Joins Group First
RP
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
Shared Tree
Module5. ppt
8/10/2001 2:37 PM
42 42
Module5.ppt
42
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-a
rtr-b
rtr-c
Shared Tree
Module5. ppt
8/10/2001 2:37 PM
43 43
Module5.ppt
43
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), 224.1.1.1), 00:00:03/00:02:56, 00:00:03/00:02:56, RP RP 171.68.28.140, 171.68.28.140, flags: flags: SP SP Incoming Incoming interface: interface: Serial0, Serial0, RPF RPF nbr nbr 171.68.28.191, 171.68.28.191, Outgoing Outgoing interface interface list: list: Null Null PT (171.68.37.121/32, FPT (171.68.37.121/32, 224.1.1.1), 224.1.1.1), 00:00:03/00:02:56, 00:00:03/00:02:56, flags: flags: F FPT Incoming Incoming interface: interface: Ethernet0, Ethernet0, RPF RPF nbr nbr 0.0.0.0, 0.0.0.0, Registering Outgoing Outgoing interface interface list: list: Null Null
Source begins sending group G traffic. rtr-a encapsulates packets in Registers; unicasts to RP.
1998 2001, Cisco Systems, Inc. All rights reserved.
Module5. ppt
8/10/2001 2:37 PM
44 44
Module5.ppt
44
PIM SM Registering
Receiver Joins Group First
(171.68.37.121, 224.1.1.1) Mcast Packets Register Msgs 171.68.28.139
S0 S3 S0 S1
RP
Source 171.68.37.121
E0
S0
S1
rtr-a
rtr-b
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 (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
Module5. ppt
8/10/2001 2:37 PM
45 45
Module5.ppt
45
PIM SM Registering
Receiver Joins Group First
(171.68.37.121, 224.1.1.1) Mcast Packets Register Msgs (S,G) Join
4 S0
S0 S1
RP
Source 171.68.37.121
E0
S0
S0
S1
rtr-a
rtr-b
Shared Tree
Module5. ppt
8/10/2001 2:37 PM
46 46
Module5.ppt
46
PIM SM Registering
Receiver Joins Group First
(171.68.37.121, 224.1.1.1) Mcast Packets (S,G) Join Source 171.68.37.121
E0 S0
Register Msgs
5 S0
S0 S1 S0 S1
RP
rtr-a 171.68.28.190
rtr-b
Shared Tree
(*, (*, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, Incoming Incoming interface: interface: Serial1, Serial1, RPF RPF Outgoing Outgoing interface interface list: list: Null Null
(171.68.37.121/32, (171.68.37.121/32, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, flags: flags: Incoming Incoming interface: interface: Serial0, Serial0, RPF RPF nbr nbr 171.68.28.190 171.68.28.190 Outgoing Outgoing interface interface list: list: Serial1, Serial1, Forward/Sparse, Forward/Sparse, 00:04:28/00:01:32 00:04:28/00:01:32
Module5. ppt
8/10/2001 2:37 PM
47 47
Module5.ppt
47
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 S0 S1
rtr-a
rtr-b
Shared Tree (*, (*, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, RP RP 171.68.28.140, 171.68.28.140, flags: flags: SP SP Incoming Incoming interface: interface: Serial0, Serial0, RPF RPF nbr nbr 171.68.28.191, 171.68.28.191, Outgoing Outgoing interface interface list: list: Null Null (171.68.37.121/32, (171.68.37.121/32, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, flags: flags: FT FT Incoming Incoming interface: interface: Ethernet0, Ethernet0, RPF RPF nbr nbr 0.0.0.0, 0.0.0.0, Registering Registering Outgoing Outgoing interface interface list: list: Serial0, Forward/Sparse, 00:04:28/00:01:32
Module5. ppt
8/10/2001 2:37 PM
48 48
Module5.ppt
48
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
RP
rtr-a
rtr-b
7 Register -Stop
Shared Tree
6 7
Module5. ppt
8/10/2001 2:37 PM
49 49
Module5.ppt
49
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
RP
rtr-a
rtr-b
Shared Tree (*, (*, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, RP RP 171.68.28.140, 171.68.28.140, flags: flags: SP SP Incoming Incoming interface: interface: Serial0, Serial0, RPF RPF nbr nbr 171.68.28.191, 171.68.28.191, Outgoing Outgoing interface interface list: list: Null Null (171.68.37.121/32, (171.68.37.121/32, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, flags: flags: FT FT Incoming Incoming interface: interface: Ethernet0, Ethernet0, RPF RPF nbr nbr 0.0.0.0, 0.0.0.0, Registering Registering Outgoing Outgoing interface interface list: list: Serial0, Serial0, Forward/Sparse, Forward/Sparse, 00:04:28/00:01:32 00:04:28/00:01:32
Module5. ppt
8/10/2001 2:37 PM
50 50
Module5.ppt
50
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 S0 S1
rtr-a
rtr-b
Shared Tree
(*, (*, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, Incoming Incoming interface: interface: Serial1, Serial1, RPF RPF Outgoing Outgoing interface interface list: list: Null Null
(171.68.37.121/32, (171.68.37.121/32, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, flags: flags: T T Incoming Incoming interface: interface: Serial0, Serial0, RPF RPF nbr nbr 171.68.28.190 171.68.28.190 Outgoing Outgoing interface interface list: list: Serial1, Serial1, Forward/Sparse, Forward/Sparse, 00:04:28/00:01:32 00:04:28/00:01:32
Module5. ppt
8/10/2001 2:37 PM
51 51
Module5.ppt
51
PIM SM Registering
Receiver Joins Group 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
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 (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
8/10/2001 2:37 PM
52 52
Module5.ppt
52
Receivers Join Group First Source Registers First Receivers along the SPT
Module5. ppt
8/10/2001 2:37 PM
53 53
Module5.ppt
53
PIM SM Registering
Source Registers First
RP
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
rtr-c rtr-c>show >show ip ip mroute mroute 224.1.1.1 224.1.1.1 Group Group 224.1.1.1 224.1.1.1 not not found. found.
Module5. ppt
8/10/2001 2:37 PM
54 54
Module5.ppt
54
PIM SM Registering
Source Registers First
RP
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
rtr-b rtr-b>show >show ip ip mroute mroute 224.1.1.1 224.1.1.1 Group Group 224.1.1.1 224.1.1.1 not not found. found.
Module5. ppt
8/10/2001 2:37 PM
55 55
Module5.ppt
55
PIM SM Registering
Source Registers First
RP
E0 S0 S0 S1 S3 S0 S1
rtr-a
rtr-b
rtr-c
Module5. ppt
8/10/2001 2:37 PM
56 56
Module5.ppt
56
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-a
rtr-b
rtr-c
Module5. ppt
8/10/2001 2:37 PM
57 57
Module5.ppt
57
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets
2 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), 224.1.1.1), 00:00:03/00:02:56, 00:00:03/00:02:56, RP RP 171.68.28.140, 171.68.28.140, flags: flags: SP SP Incoming Incoming interface: interface: Serial0, Serial0, RPF RPF nbr nbr 171.68.28.191, 171.68.28.191, Outgoing Outgoing interface interface list: list: Null Null PT (171.68.37.121/32, FPT (171.68.37.121/32, 224.1.1.1), 224.1.1.1), 00:00:03/00:02:56, 00:00:03/00:02:56, flags: flags: F FPT Incoming Incoming interface: interface: Ethernet0, Ethernet0, RPF RPF nbr nbr 0.0.0.0, 0.0.0.0, Registering Outgoing Outgoing interface interface list: list: Null Null
Source begins sending group G traffic. rtr-a encapsulates packets in Registers; unicasts to RP.
1998 2001, Cisco Systems, Inc. All rights reserved.
Module5. ppt
8/10/2001 2:37 PM
58 58
Module5.ppt
58
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: SP 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
Module5. ppt
8/10/2001 2:37 PM
59 59
Module5.ppt
59
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-c
Module5. ppt
8/10/2001 2:37 PM
60 60
Module5.ppt
60
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-a stops encapsulating traffic in Register Messages; drops packets from Source.
1998 2001, Cisco Systems, Inc. All rights reserved.
Module5. ppt
8/10/2001 2:37 PM
61 61
Module5.ppt
61
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), 224.1.1.1), 00:01:28/00:01:32, 00:01:28/00:01:32, RP RP 171.68.28.140, 171.68.28.140, flags: flags: SP SP Incoming Incoming interface: interface: Serial0, Serial0, RPF RPF nbr nbr 171.68.28.191, 171.68.28.191, Outgoing Outgoing interface interface list: list: Null Null (171.68.37.121/32, (171.68.37.121/32, 224.1.1.1), 224.1.1.1), 00:01:28/00:01:32, 00:01:28/00:01:32, flags: flags: FPT FPT Incoming Incoming interface: interface: Ethernet0, Ethernet0, RPF RPF nbr nbr 0.0.0.0 0.0.0.0 Outgoing Outgoing interface interface list: list: Null Null
8/10/2001 2:37 PM
62 62
Module5.ppt
62
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 rtr-b>show >show ip ip mroute mroute 224.1.1.1 224.1.1.1 Group Group 224.1.1.1 224.1.1.1 not not found. found.
Module5. ppt
8/10/2001 2:37 PM
63 63
Module5.ppt
63
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), 224.1.1.1), 00:01:15/00:01:45, 00:01:15/00:01:45, RP RP 171.68.28.140, 171.68.28.140, flags: flags: SP SP Incoming Incoming interface: interface: Null, Null, RPF RPF nbr nbr 0.0.0.0, 0.0.0.0, Outgoing Outgoing interface interface list: list: Null Null (171.68.37.121, (171.68.37.121, 224.1.1.1), 224.1.1.1), 00:01:15/00:01:45, 00:01:15/00:01:45, flags: flags: P P Incoming Incoming interface: interface: Serial3, Serial3, RPF RPF nbr nbr 171.68.28.139, 171.68.28.139, Outgoing Outgoing interface interface list: list: Null Null
Module5. ppt
8/10/2001 2:37 PM
64 64
Module5.ppt
64
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
Module5. ppt
8/10/2001 2:37 PM
65 65
Module5.ppt
65
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets
7
(S, G) Join RP
S0 S0 S1 S3 S0 S1
Source 171.68.37.121
E0
rtr-a
rtr-b
rtr-c
(*, 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
Module5. ppt
8/10/2001 2:37 PM
66 66
Module5.ppt
66
PIM SM Registering
Source Registers First
(171.68.37.121, 224.1.1.1) Mcast Packets
8
(S, G) Join RP
S1 S3 S0 S1 S0 S0
Source 171.68.37.121
E0
rtr-a 171.68.28.190
rtr-b
rtr-c
(*, (*, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, Incoming Incoming interface: interface: Serial1, Serial1, RPF RPF Outgoing Outgoing interface interface list: list: Null Null
(171.68.37.121/32, (171.68.37.121/32, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, flags: flags: Incoming Incoming interface: interface: Serial0, Serial0, RPF RPF nbr nbr 171.68.28.190 171.68.28.190 Outgoing Outgoing interface interface list: list: Serial1, Serial1, Forward/Sparse, Forward/Sparse, 00:04:28/00:01:32 00:04:28/00:01:32
Module5. ppt
8/10/2001 2:37 PM
67 67
Module5.ppt
67
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
RP
rtr-a
rtr-b
rtr-c
10 (*, 224.1.1.1)
Mcast Traffic
(*, (*, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, RP RP 171.68.28.140, 171.68.28.140, flags: flags: SP SP Incoming Incoming interface: interface: Serial0, Serial0, RPF RPF nbr nbr 171.68.28.191, 171.68.28.191, Outgoing Outgoing interface interface list: list: Null Null (171.68.37.121/32, (171.68.37.121/32, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, flags: flags: FT FT Incoming Incoming interface: interface: Ethernet0, Ethernet0, RPF RPF nbr nbr 0.0.0.0, 0.0.0.0, Outgoing Outgoing interface interface list: list: Serial0, Forward/Sparse, 00:04:28/00:01:32
8/10/2001 2:37 PM
68 68
Module5.ppt
68
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), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, RP RP 171.68.28.140, 171.68.28.140, flags: flags: SP SP Incoming Incoming interface: interface: Serial1, Serial1, RPF RPF nbr nbr 171.68.28.140, 171.68.28.140, Outgoing Outgoing interface interface list: list: Null Null (171.68.37.121/32, (171.68.37.121/32, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, flags: flags: T T Incoming Incoming interface: interface: Serial0, Serial0, RPF RPF nbr nbr 171.68.28.190 171.68.28.190 Outgoing Outgoing interface interface list: list: Serial1, Serial1, Forward/Sparse, Forward/Sparse, 00:04:28/00:01:32 00:04:28/00:01:32
8/10/2001 2:37 PM
69 69
Module5.ppt
69
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
Module5. ppt
8/10/2001 2:37 PM
70 70
Module5.ppt
70
Receivers Join Group First Source Registers First Receivers along the SPT
Module5. ppt
8/10/2001 2:37 PM
71 71
Module5.ppt
71
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 S1
rtr-a
rtr-b
(*, (*, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, RP RP 171.68.28.140, 171.68.28.140, flags: flags: SP SP Incoming Incoming interface: interface: Serial1, Serial1, RPF RPF nbr nbr 171.68.28.140, 171.68.28.140, Outgoing Outgoing interface interface list: list: Null Null (171.68.37.121/32, (171.68.37.121/32, 224.1.1.1), 224.1.1.1), 00:04:28/00:01:32, 00:04:28/00:01:32, flags: flags: T T Incoming Incoming interface: interface: Serial0, Serial0, RPF RPF nbr nbr 171.68.28.190 171.68.28.190 Outgoing Outgoing interface interface list: list: Serial1, Serial1, Forward/Sparse, Forward/Sparse, 00:04:28/00:01:32 00:04:28/00:01:32
8/10/2001 2:37 PM
72 72
Module5.ppt
72
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 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
8/10/2001 2:37 PM
73 73
Module5.ppt
73
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 S1
rtr-a
rtr-b
1 IGMP Join
Rcvr A
Module5. ppt
8/10/2001 2:37 PM
74 74
Module5.ppt
74
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 S1
rtr-a
rtr-b
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
8/10/2001 2:37 PM
75 75
Module5.ppt
75
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
Module5. ppt
8/10/2001 2:37 PM
76 76
Module5.ppt
76
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 S1
rtr-a
rtr-b
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
8/10/2001 2:37 PM
77 77
Module5.ppt
77
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 S1
rtr-a
rtr-b
3
Rcvr A
Module5. ppt
8/10/2001 2:37 PM
78 78
Module5.ppt
78
PIM Neighbor Discovery PIM State PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM State Maintenance
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
79 79
Module5.ppt
79
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.
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
80 80
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.
Copyright ? ?1999-2001, Cisco Systems, Inc.
Module5.ppt
80
PIM SM SPT-Switchover
SPT-Switchover Mechanism
Once Once each each second second
Compute Compute new new (*, (*, G) G) traffic traffic rate rate If If threshold threshold exceeded, exceeded, set set J J flag flag in in (*, (*, G) G)
For For each each (S (Sii,, G) G) packet packet received: received:
Module5. ppt
8/10/2001 2:37 PM
81 81
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 SPT-Threshold. 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.
Module5.ppt
81
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
10.1.4.2
rtr-a
S1
To Source Si
E010.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
8/10/2001 2:37 PM
82 82
Module5.ppt
82
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
10.1.4.2
rtr-a
S1
To Source Si
E010.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
8/10/2001 2:37 PM
83 83
Module5.ppt
83
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
10.1.4.2
rtr-a
S1
To Source Si
E010.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
8/10/2001 2:37 PM
84 84
Module5.ppt
84
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
10.1.4.2
rtr-a
S1
To Source Si
E010.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
Module5. ppt
8/10/2001 2:37 PM
Module5.ppt
85
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
10.1.4.2
rtr-a
S1
To Source Si
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: SCJ 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.
1998 2001, Cisco Systems, Inc. All rights reserved.
Module5. ppt
8/10/2001 2:37 PM
86 86
Module5.ppt
86
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
10.1.4.2
rtr-a
S1
To Source Si
E010.1.2.1 3
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: SCJ 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 (Si,G) state.
1998 2001, Cisco Systems, Inc. All rights reserved.
Module5. ppt
8/10/2001 2:37 PM
87 87
Module5.ppt
87
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
10.1.4.2
rtr-a
S1
To Source Si
E010.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:00:28/00:02:51, flags: C CJT JT Incoming interface: Ethernet0, RPF nbr 10.1.2.1 Outgoing interface list: Ethernet1, Forward/Sparse, 00:00:28/00:02:32
8/10/2001 2:37 PM
88 88
Module5.ppt
88
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
10.1.4.2
rtr-a
S1
To Source Si
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
Module5. ppt
8/10/2001 2:37 PM
89 89
Module5.ppt
89
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
10.1.4.2
rtr-a
S1
To Source Si
E010.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
8/10/2001 2:37 PM
90 90
Module5.ppt
90
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
10.1.4.2
rtr-a
S1
E010.1.2.1
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
Module5. ppt
8/10/2001 2:37 PM
91 91
Module5.ppt
91
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
10.1.4.2
rtr-a
S1
E010.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. (Si, G) traffic begins flowing down SPT tree.
1998 2001, Cisco Systems, Inc. All rights reserved.
Module5. ppt
8/10/2001 2:37 PM
92 92
Module5.ppt
92
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1
(Si,G)RP-bit Prune
rtr-a
S1
To Source Si
S0
10.1.4.2
E010.1.2.1
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
6 7 8
rtr-a forwards (Si,G) Join toward Si. (Si, G) traffic begins flowing down SPT tree. SPT & RPT diverge, triggering (Si,G)RP-bit Prunes toward RP.
1998 2001, Cisco Systems, Inc. All rights reserved.
Module5. ppt
8/10/2001 2:37 PM
93 93
Module5.ppt
93
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 S0
10.1.4.2
rtr-a
S1
To Source Si
E010.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
8/10/2001 2:37 PM
94 94
Module5.ppt
94
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 S2
rtr-c
10.1.4.1
S1 9 S0
10.1.4.2
rtr-a
S1
To Source Si
E010.1.2.1
S0
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
Module5. ppt
8/10/2001 2:37 PM
95 95
Module5.ppt
95
PIM SM SPT-Switchover
To RP (10.1.5.1) S0 10 S0 S2
rtr-c
10.1.4.1
S1 S0
10.1.4.2
rtr-a
S1
To Source Si
E010.1.2.1
rtr-d
E0
Rcvr A Rcvr B
10.1.2.2
E0 E1
rtr-b
(Si, G) traffic still flows via other branches of the Shared tree.
Module5. ppt
8/10/2001 2:37 PM
96 96
Module5.ppt
96
PIM SM SPT-Switchover
Shared Tree Switchback Mechanism
Once Once each each minute minute
Module5. ppt
8/10/2001 2:37 PM
97 97
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.
Module5.ppt
97
PIM Neighbor Discovery PIM State PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM State Maintenance
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
98 98
Module5.ppt
98
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
Module5. ppt
8/10/2001 2:37 PM
99 99
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 (RP T) towards the RP. Any remaining (S, G) entries are allowed to timeout and be deleted from the Multicast Routing Table.
Module5.ppt
99
PIM SM Pruning
Shared Tree Case
To RP (10.1.5.1) S0
(Si, G) Traffic Flow Shared Tree SPT Tree 10.1.4.2
S1
rtr-a
E0
10.1.2.1
10.1.2.2
E0
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
Module5. ppt
8/10/2001 2:37 PM
Module5.ppt
100
PIM SM Pruning
Shared Tree Case
To RP (10.1.5.1) S0
(Si, G) Traffic Flow Shared Tree SPT Tree 10.1.4.2
S1
rtr-a
E0
10.1.2.1
10.1.2.2
E0
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
Module5. ppt
8/10/2001 2:37 PM
101 101
Module5.ppt
101
PIM SM Pruning
Shared Tree Case
To RP (10.1.5.1) S0
(Si, G) Traffic Flow Shared Tree SPT Tree 10.1.4.2
S1
rtr-a
E0
10.1.2.1
10.1.2.2
E0
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 (Si,G) oilists. rtr-b (*,G) oilist now empty; sends (*,G) Prune toward RP.
Module5. ppt
8/10/2001 2:37 PM
102 102
Module5.ppt
102
PIM SM Pruning
Shared Tree Case
To RP (10.1.5.1)
(Si, G) Traffic Flow Shared Tree SPT Tree
(*,G) Prune
X
E1
6 S0
S1
10.1.4.2
rtr-a
10.1.2.2
X
E0
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.
1998 2001, Cisco Systems, Inc. All rights reserved.
Module5. ppt
8/10/2001 2:37 PM
103 103
Module5.ppt
103
PIM SM Pruning
Source (SPT) Case
S1 S0 To Source Si
To RP (10.1.5.1)
(Si, G) Traffic Flow Shared Tree SPT Tree 10.1.4.2
rtr-a
E0 10.1.2.1
10.1.2.2
E0
E1
Rcvr A
rtr-b
(*, (*, 224.1.1.1), 224.1.1.1), 00:01:43/00:02:59, 00:01:43/00:02:59, RP RP 10.1.5.1, 10.1.5.1, flags: flags: SC SC Incoming Incoming interface: interface: Ethernet0, Ethernet0, RPF RPF nbr nbr 10.1.2.1, 10.1.2.1, Outgoing Outgoing interface interface list: list: Ethernet1, Ethernet1, Forward/Sparse, Forward/Sparse, 00:01:43/00:02:11 00:01:43/00:02:11 (171.68.37.121/32, (171.68.37.121/32, 224.1.1.1), 224.1.1.1), 00:01:05/00:01:55, 00:01:05/00:01:55, flags: flags: CJT CJT Incoming Incoming interface: interface: Ethernet0, Ethernet0, RPF RPF nbr nbr 10.1.2.1 10.1.2.1 Outgoing Outgoing interface interface list: list: Ethernet1, Ethernet1, Forward/Sparse, Forward/Sparse, 00:01:05/00:02:55 00:01:05/00:02:55
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
104 104
Module5.ppt
104
PIM SM Pruning
Source (SPT) Case
S1 S0 To Source Si
To RP (10.1.5.1)
(Si, G) Traffic Flow Shared Tree SPT Tree 10.1.4.2
rtr-a
E0 10.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
8/10/2001 2:37 PM
105 105
Module5.ppt
105
PIM SM Pruning
Source (SPT) Case
S1 S0 To Source Si
To RP (10.1.5.1)
(Si, G) Traffic Flow Shared Tree SPT Tree 10.1.4.2
rtr-a
E0 10.1.2.1 3 (*,G) Prune
10.1.2.2
E0
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 (Si,G) oilists. rtr-b (*,G) oilist now empty; sends (*,G) Prune toward RP.
1998 2001, Cisco Systems, Inc. All rights reserved.
Module5. ppt
8/10/2001 2:37 PM
106 106
Module5.ppt
106
PIM SM Pruning
Source (SPT) Case
S1 S0 To Source Si
To RP (10.1.5.1)
(Si, G) Traffic Flow Shared Tree SPT Tree 10.1.4.2
rtr-a
E0 10.1.2.1
10.1.2.2
E0
E1
rtr-b
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 (Si,G) oilists. rtr-b (*,G) oilist now empty; sends (*,G) Prune toward RP. rtr-b stops sending periodic (S, G) joins.
1998 2001, Cisco Systems, Inc. All rights reserved.
Module5. ppt
8/10/2001 2:37 PM
107 107
Module5.ppt
107
PIM SM Pruning
Source (SPT) Case
S1
(*,G) Prune (Si, G) Traffic Flow Shared Tree SPT Tree
To Source Si
To RP (10.1.5.1) 6
10.1.4.2
S0
rtr-a
10.1.2.2
E0
E0 10.1.2.1 5
E1
rtr-b
5 6
rtr-a (*,G) oilist now empty; sends (*,G) Prune toward RP.
Module5. ppt
8/10/2001 2:37 PM
108 108
Module5.ppt
108
PIM SM Pruning
Source (SPT) Case
S1 S0 To Source Si
To RP (10.1.5.1)
(Si, G) Traffic Flow Shared Tree SPT Tree 10.1.4.2
rtr-a
E0 10.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: S P 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:
8/10/2001 2:37 PM
109 109
Module5.ppt
109
PIM SM Pruning
Source (SPT) Case
S1 S0 To Source Si
To RP (10.1.5.1)
(Si, G) Traffic Flow Shared Tree SPT Tree 10.1.4.2
rtr-a
E0 10.1.2.1
10.1.2.2
E0
E1
rtr-b
RP RP 10.1.5.1, 10.1.5.1, flags: flags: S SP P nbr nbr 10.1.4.1, 10.1.4.1,
(*, (*, 224.1.1.1), 224.1.1.1), 00:02:32/00:02:59, 00:02:32/00:02:59, Incoming Incoming interface: interface: Serial0, Serial0, RPF RPF Outgoing interface Outgoing interface list: list:
(171.68.37.121/32, (171.68.37.121/32, 224.1.1.1), 224.1.1.1), 00:01:56/00:00:53, 00:01:56/00:00:53, flags: flags: P PT T Incoming Incoming interface: interface: Serial1, Serial1, RPF RPF nbr nbr 10.1.9.2 10.1.9.2 Outgoing Outgoing interface interface list: list:
8/10/2001 2:37 PM
110 110
Module5.ppt
110
PIM SM Pruning
Source (SPT) Case
(Si,G) Data
To RP (10.1.5.1)
(Si, G) Traffic Flow Shared Tree SPT Tree 10.1.4.2
S1 S0
7 To Source Si
rtr-a
E0 10.1.2.1
8 (Si,G) Prune
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.
Module5. ppt
8/10/2001 2:37 PM
111 111
Module5.ppt
111
PIM SM Pruning
Source (SPT) Case
9 To RP (10.1.5.1)
(Si, G) Traffic Flow Shared Tree SPT Tree 10.1.4.2
S1 S0
To Source Si
rtr-a
E0 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.
Module5. ppt
8/10/2001 2:37 PM
112 112
Module5.ppt
112
PIM Neighbor Discovery PIM State PIM SM Joining PIM SM Registering PIM SM SPT-Switchover PIM SM Pruning PIM SM State Maintenance
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
113 113
Module5.ppt
113
Periodic Join/Prunes are sent to all PIM neighbors. Periodic Joins refresh interfaces in a PIM neighbors oilists. Periodic Prunes refresh prune state in a PIM neighbor. Received Multicast packets reset (S,G) entry expiration timers.
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
114 114
Module5.ppt
114
RP
Module5. ppt
8/10/2001 2:37 PM
115 115
Module5.ppt
115
RP Join
Receiver 1
Module5. ppt
8/10/2001 2:37 PM
116 116
Module5.ppt
116
RP
Receiver 1
Module5. ppt
8/10/2001 2:37 PM
117 117
Module5.ppt
117
Register
RP
Receiver 1
Module5. ppt
8/10/2001 2:37 PM
118 118
Module5.ppt
118
Join
Join
RP
Receiver 1
Module5. ppt
8/10/2001 2:37 PM
119 119
Module5.ppt
119
Register-Stop
RP
Receiver 1
Module5. ppt
8/10/2001 2:37 PM
120 120
Module5.ppt
120
A (S, G) Join C
RP
Receiver 1
Module5. ppt
8/10/2001 2:37 PM
121 121
Module5.ppt
121
(S, G) Prune
RP
Receiver 1
Module5. ppt
8/10/2001 2:37 PM
122 122
Module5.ppt
122
B (*, G) Join C
RP
Receiver 1
Receiver 2
Module5. ppt
8/10/2001 2:37 PM
123 123
Module5.ppt
123
RP
Receiver 1
Receiver 2
Module5. ppt
8/10/2001 2:37 PM
124 124
Module5.ppt
124
RP
Receiver 1
Receiver 2
Module5. ppt
8/10/2001 2:37 PM
125 125
Module5.ppt
125
RP
Receiver 1
Receiver 2
Module5. ppt
8/10/2001 2:37 PM
126 126
Module5.ppt
126
RP
Source 2
Receiver 1
Receiver 2
Module5. ppt
8/10/2001 2:37 PM
127 127
Module5.ppt
127
RP
Source 2
Receiver 1
Receiver 2
Module5. ppt
8/10/2001 2:37 PM
128 128
Module5.ppt
128
Anycast/Static RP addressing
RP address must be configured on every router Note: Anycast RP requires MSDP
Module5. ppt
1998 2001, Cisco Systems, Inc. All rights reserved.
8/10/2001 2:37 PM
129 129
Configure the RP
Auto-RP (or BSR) are the simplest forms of RP configuration as they allow the routers in the network to automatically learn the address of the RP. This requires two additional command lines on one or more routers in the network that have been selected as candidate RPs. Configure one or more routers as Candidate RPs using the appropriate Auto-RP or BSR command. Configure one or more routers as Mapping Agents (Auto-RP) or Candidate BSRs (BSR). Anycast/Static RP addressing takes more work as the single RP address must be configured on every router in the network. Anycast RP is a form of redundant static RPs which requires the use of the Multicast Source Discovery Protocol (MSDP) but provides rapid RP failover.
Module5.ppt
129
Module5. ppt
8/10/2001 2:37 PM
130 130
Module5.ppt
130
Module5. ppt
8/10/2001 2:37 PM
131 131
Module5.ppt
131
8/10/2001 2:37 PM
132 132
Module5.ppt
132
Module5. ppt
8/10/2001 2:37 PM
133 133
Common Misconception
Interface Mode controls Group Mode. This is a classic error often made by network administrators. They assume that, If I set all interfaces to ip pim sparse-mode, the router will always operate in Sparse mode and never fall back into Dense mode. Unfortunately, this is incorrect. Group mode is solely controlled by the existence of a valid RP. If a valid RP is learned/configured for a group range, those groups will operate in sparse mode and the (*,G) entry will be created with the S flag set. Otherwise, the groups will operate in Dense mode and the D flag will be set on the (*,G) entry.
Module5.ppt
133
Module5. ppt
8/10/2001 2:37 PM
134 134
Module5.ppt
134
Avoiding DM Fallback
To always guarantee Sparse mode operation (and avoid falling back to Dense mode), make sure that every router always knows of an RP for every group.
Module5.ppt
8/10/2001 2:37 PM
135 135
Module5.ppt
135
Avoiding DM Fallback
Define an "RP-of-last-resort.
Configure as a Static RP on every router.
Will only be used if all Candidate-RPs fall. Can be a dummy address.
Recommendation: Use lowest priority C-RP address.
Module5. ppt
8/10/2001 2:37 PM
136 136
Avoiding DM Fallback
In order to guarantee that the router will never fall back into dense mode, it is necessary to guarantee that the router will never loose RP information. This can be accomplished by defining a static, RP-of-last-resort in each router in the network. Since automatically learned RPs (Auto-RP or BSR) take precedence over statically defined RPs, the static entry will only be activated if all learned RPs timeout and/or fail. The recommendation is to define the lowest priority Candidate RP as the RP-of-last-resort by using a static RP definition pointing to this IP address. This locks the lowest priority RP into the bottom of the failover order. Even if this router fails (or its information times out), the static entry in each router will prevent a total loss of RP information. Special care must be taken if an RP -of-last-resort is defined when using Auto-RP. By default, a static RP definition that covers the Auto-RP group range will be interpreted as the RP for the two Auto-RP groups. (Unlike Auto-RP learned group ranges which have an implied deny for these two groups so that the two Auto-RP groups will default to using dense mode.) The following example shows how to configure an RP -of-last-resort so that the two Auto-RP groups do not accidentally switch to sparse mode: ip pim rp-address <RP-of-last-resort> 10 access-list 10 deny 224.0.1.39 access-list 10 deny 224.0.1.40 access-list 10 permit any
Module5.ppt
136
On routers B and C: ip pim send-rp-announce loopback0 scope 16 ip pim send-rp-discovery loopback0 scope 16
Module5. ppt
8/10/2001 2:37 PM
137 137
Module5.ppt
137
Module5.ppt
138
Module5.ppt
138