IP Multicast Training - Cisco
IP Multicast Training - Cisco
IP Multicast Training - Cisco
Agenda
Less host/router processing Receivers addresses unknown Trade-off is state creation and maintenance
IP Multicast Basics
Multicast Applications
Live TV and Radio Broadcast to the Desktop
Corporate Broadcasts
Training
Duplicate Delivery
During some transition periods, duplicate packet delivery can occur
Reliable Multicast
IP Multicast Basics
MSDP
RP
Multicast Source X
DR
Multicast Source Y
RP
ISP B
ISP A
MBGP CGMP
DR
IGMP
PIM-SM
DR
Campus Multicast
End Stations (hosts-to-routers): Switches (Layer 2 Optimization): Routers (Multicast Forwarding Protocol):
IP Multicast Basics
2002, Cisco Systems, Inc.
Interdomain Multicast
Multicast routing across domains
MBGP
IGMP
1. If you send to group address, all members receive it 2. You must be a member of a group to receive data 3. You do not have to be a member of a group to send to a group
Group Member 1
IP Multicast Basics
2002, Cisco Systems, Inc.
Group Member 2
7
Global Multicast
PE
mVRF
SPs RP
P
Global
Customer PIM Adjacency PE CE SP PIM Adjacency Receiver
IP Multicast Basics
Multicast Addressing
IP Multicast Group Addresses
224.0.0.0 239.255.255.255 Class D Address Space
224.0.0.0 224.0.0.255 (used typically by routing protocols) Transmitted with TTL = 1 (not forwarded by routers) Examples:
224.0.0.1 224.0.0.2 224.0.0.9 224.0.0.5 224.0.0.13 All systems on this subnet All routers on this subnet RIPv2 OSPF routers ALL PIM ROUTERS
Multicast Addressing
Administratively Scoped Addresses
Same as RFC 1918 addresses
239.0.0.0 239.255.255.255
Used to limit scope of multicast traffic Configured via ip multicast boundary on an interface
multicast traffic with the group range specified cannot enter or leave the network
10
S0
S1 S2
E0
11
Report
Host sends IGMP Report to join group There are several IGMP versions 1,2,3 Useful on routers for testing multicast forwarding
Specify ip igmp join-group X on a loopback interface to simulate a receiver
IP Multicast Basics
2002, Cisco Systems, Inc.
12
Receiver 1
Receiver 2
IP Multicast Basics
13
D ) (RP
(RP)
Receiver 1
Receiver 2
IP Multicast Basics
14
(RP)
Receiver 1
Receiver 2
IP Multicast Basics
15
Shared trees
Uses less memory O(G) but you may get sub-optimal paths from source to all receivers; may introduce extra delay
IP Multicast Basics
16
IP Multicast Basics
17
Source 151.10.3.21
IP Multicast Basics
18
S1 E0
X
S0 S2
IP Multicast Basics
19
S1
S2 E0
Packet Arrived on Correct Interface! Forward out all outgoing interfaces. (i. e. down the distribution tree)
IP Multicast Basics
20
S0 S1 E0 S2
Non-RPF Interface
IP Multicast Basics
21
Sparse-mode
Uses Pull Model
IP Multicast Basics
22
Doesnt care how the unicast routing table has been built
2002, Cisco Systems, Inc.
23
Source
Multicast Packets
Receiver
IP Multicast Basics
2002, Cisco Systems, Inc.
24
Source
25
Source
Multicast Packets
Receiver
26
PIM-DM Evaluation
Most effective for small pilot networks Advantages:
Easy to configuretwo commands Simple flood and prune mechanism
Potential issues...
Inefficient flood and prune behavior Complex Assert mechanism
IP Multicast Basics
27
Appropriate for
Wide scale deployment for both densely and sparsely populated groups in the enterprise Optimal choice for all production networks regardless of size and membership density.
IP Multicast Basics
2002, Cisco Systems, Inc.
28
RP
If the last of the receivers behind this router leaves, then its (*.G) OIL is empty (NULL). The router will send (*,G) Prune towards RP.
IP Multicast Basics
2002, Cisco Systems, Inc.
29
6. RP now has an SPT to the source 7. RP sends a (S,G) Register-Stop towards Source 8. Traffic flows SPT to RP and Shared Tree to Receiver
30
(unicast)
Receiver
Source
RP
2. Additional (S, G) State is created along new part of the Source Tree.
Traffic Flow
Shared Tree Source Tree (S, G) Join
IP Multicast Basics
2002, Cisco Systems, Inc.
3. Router is receiving duplicate packets SPT and Shared Tree Router send (S,G) RP-bit Prune toward RP
Receiver 1. Last-hop router joins the Source Tree.
31
Source
RP
RTR X RTR Y
Receiver
RTR X waits for 3 minute Receiver Before flushing the interface from the (S,G) or (*,G) OIL RTR Y sends (*,G) and (S,G) Joins to RTR X every 1 minute
IP Multicast Basics
2002, Cisco Systems, Inc.
32
PIM-SMEvaluation
Effective for sparse or dense distribution of multicast receivers Advantages:
Traffic only sent down joined branches
Can switch to optimal source-trees for high traffic sources dynamically Unicast routing protocol-independent
IP Multicast Basics
2002, Cisco Systems, Inc.
33
PIM SSM
Assume a One-to-Many Multicast Model.
Example: Video/Audio broadcasts, Stock Market data
34
PIM SSM
SSM Advantages
Allows immediate use of shortest forwarding path to a specific source, without need to create shared tree.
35
Receiver learns of source, group/port Receiver sends IGMPv3 (S,G) Join First-hop send PIM s,g join directly toward Source
A (S, G) Join
IP Multicast Basics
36
Result: Shortest Path Tree rooted at the Source, with NO Shared Tree.
Receiver 1
IP Multicast Basics
37
Auto-RP
Routers that want to be RPs announce to Mapping Agents Mapping Agents determine RP and inform all routers Uses dense mode groups 224.0.1.39 and 224.0.1.40 to achieve this
BSR
Similar to Auto-RP Candidate RPs announce their intention But Candidate BSRs dont determine the RPs they send all the RP information to all routers and let them decide.
IP Multicast Basics
2002, Cisco Systems, Inc.
38
Agenda
Part 3 RP Details
IP Multicast Basics
39
Configuration Setup
R2(PE)
s1/0 e0/0 10.0.1/24 s1/0 s2/ 0 10.0.4/24 10.0.3/24
R7
AS 13979
s2/0
192.168.1/30 1.1.1.1/32 e0/0 10.0.2/24 s1/0
s3/0
R3 - RR
s3/0
s2/0 10.0.5/24
s4/0
R5
192.168.3/30
R1
e1/0
192.168.2/30 s1/0 10.0.8/24 e0/0 s1/0
e0/0 s3/0
e0/0 5.5.5.5/32
s2/0 s3/0
R8-RR
s2/0
10.0.9/24
10.0.6/24
s4/0
R9(PE)
R6
PE and P L0 = 12.0.0.N / 32
IP Multicast Basics
2002, Cisco Systems, Inc.
40
including loopback0
IP Multicast Basics
41
IP Multicast Basics
42
43
IP Multicast Basics
44
R2#sh ip igmp g IGMP Connected Group Membership Group Address Interface Uptime Expires Last Reporter 239.1.1.1 Loopback0 02:21:17 stopped 0.0.0.0 239.2.2.2 Loopback0 00:01:43 00:02:12 12.0.0.2 224.0.1.40 Loopback0 02:21:18 00:02:06 12.0.0.2
45
46
(12.0.0.4, 239.2.2.2), 00:03:41/00:00:32, flags: FT Incoming interface: Loopback0, RPF nbr 0.0.0.0, Registering Outgoing interface list: Serial4/0, Forward/Sparse-Dense, 00:03:41/00:03:24
IP Multicast Basics
47
Multicast Trace
R1#mtrace 1.1.1.1 5.5.5.5 ? Hostname or A.B.C.D Group to trace route via <cr>
R1#mtrace 1.1.1.1 5.5.5.5 Type escape sequence to abort. Mtrace from 1.1.1.1 to 5.5.5.5 via RPF From source (?) to destination (?) Querying full reverse path... 0 5.5.5.5 -1 192.168.3.5 PIM [1.1.1.1/32] -2 0.0.0.0 None Admin. Prohibited !RPF!192.168.3.4 [default] -3 0.0.0.0 PIM [1.1.1.1/32] -4 192.168.1.1 PIM [1.1.1.1/32] R1#
IP Multicast Basics
48
Agenda
Part 3 RP Details
IP Multicast Basics
49
RPs can be
Manually configured - Static RPs Dynamic via Ciscos Auto-RP Dynamic via BSR
One RP can support several groups A single group cannot have more than one active RP If RP is not known, group will become dense
IP Multicast Basics
50
Static RPs
Hard-coded RP address
When used, must be configured on every router All routers must have the same RP address
Command
ip pim rp-address <address> [group-list <acl>] [override]
51
Auto-RP Overview
A way to let routers in a PIM domain dynamically learn about active RPs Basic Idea
Routers wishing to be RPs for a group(s) multicast a Candidate RP message
To group address 224.0.1.39 (Cisco-RP-Announce)
A Mapping Agent (MA) gets these and selects one MA multicasts this RP info to all other routers
To group address 224.0.1.40 (Cisco-RP-Discovery)
Routers cache this Group-to-RP mapping 224.0.1.39 and 224.0.1.40 operate in dense mode
IP Multicast Basics
52
Announce
A
Announce
B
Announce
Announce
Announce
MA
MA
Announce
Announce
C-RP 1.1.1.1
Announce
C-RP 2.2.2.2
53
MA
MA
C-RP 1.1.1.1
C-RP 2.2.2.2
54
IP Multicast Basics
55
Sparse-Dense Mode
Problem Chicken & Egg
Mapping agent sends RP announcements to group 224.0.1.40 Routers need to send joins to Auto-RP group 224.0.1.10 to receive this announcement They have to send *G Join to the RP
This allows Auto-RP groups to run in dense mode and all other groups in sparse-mode
IP Multicast Basics
56
Auto-RP Configuration
ip pim send-rp-discovery loopback0 scope 16
Makes this router a mapping agent Need to configure pim in the loopback interface
You can specify an ACL with send-rp-announce ACL specifies group range for which this router is CRP
IP Multicast Basics
57
BSR Overview
A single Bootstrap Router (BSR) is elected
Multiple Candidate BSRs (C-BSR) can be configured
Provides backup in case currently elected BSR fails
IP Multicast Basics
58
C-RP
B E
C-RP
IP Multicast Basics
59
G
BSR Msgs
F
BSR Msgs
BSR
A
BSR Msgs
C-RP
B E
C-RP
MSDP Concept
Simple but elegant
Utilize inter-domain source trees
Reduces problem to locating active sources RP or receiver last-hop can join inter-domain source tree
IP Multicast Basics
61
MSDP Concepts
Works with PIM-SM only
RPs knows about all sources in a domain
Sources cause a PIM Register to the RP Can tell RPs in other domains of its sources
Via MSDP SA (Source Active) messages
IP Multicast Basics
62
MSDP Overview
MSDP Example
Domain E
MSDP Peers Source Active Messages SA SA RP
r
Join (*, 224.2.2.2)
Domain C
RP
Domain B SA
RP SA
SA
SA
RP
Domain D
s
Domain A
63
MSDP Overview
MSDP Example
Domain E
MSDP Peers RP
r
Domain C
RP
Domain B
RP RP
Domain D
RP
s
Domain A
IP Multicast Basics
64
MSDP Overview
MSDP Example
Domain E
MSDP Peers Multicast Traffic RP
r
Domain C
RP
Domain B
RP RP
Domain D
RP
s
Domain A
IP Multicast Basics
65
MSDP Overview
MSDP Example
Domain E
MSDP Peers Multicast Traffic RP
r
Domain C
RP
Domain B
RP RP
Domain D
RP
s
Domain A
IP Multicast Basics
66
MSDP Overview
MSDP Example
Domain E
MSDP Peers Multicast Traffic RP
r
Domain C
RP
Domain B
RP RP
Domain D
RP
s
Domain A
IP Multicast Basics
67
Anycast RP Overview
Uses single statically defined RP address
Two or more routers have same RP address
RP address defined as a Loopback Interface. Loopback address advertised as a Host route.
68
Anycast RP Overview
Src
Src
RP1
MSDP
SA SA
RP2 B 10.1.1.1
Rec
X
IP Multicast Basics
2002, Cisco Systems, Inc.
A 10.1.1.1
Rec
Rec
Rec
69
Anycast RP Overview
Src
Src
RP1
RP2 B 10.1.1.1
Rec
X
IP Multicast Basics
2002, Cisco Systems, Inc.
A 10.1.1.1
Rec
Rec
Rec
70
Anycast RP Configuration
RP1 A
ip pim rp-address 10.1.1.1
MSDP
RP2 B
ip pim rp-address 10.1.1.1
Interface loopback 1 ip address 10.1.1.1 255.255.255.255 ! ip msdp peer 10.0.0.1 connect-source loopback 0 ip msdp originator-id loopback 0
Interface loopback 1 ip address 10.1.1.1 255.255.255.255 ! ip msdp peer 10.0.0.2 connect-source loopback 0 ip msdp originator-id loopback 0
IP Multicast Basics
71
More Information
White Papers
CCO Multicast page: http://www.cisco.com/go/ipmulticast Questions: [email protected] Customer Support Mailing List: [email protected]
IP Multicast Basics
2002, Cisco Systems, Inc.