Introduction To IP Multicast PDF
Introduction To IP Multicast PDF
Introduction To IP Multicast PDF
RST-1261
RST-1261 12682_05_2006_X3
Cisco Public
Cisco Public
Session Goal
To provide you with a thorough understanding of the concepts, mechanics and protocols used to build IP Multicast networks
RST-1261 12682_05_2006_X3
Cisco Public
Agenda
Why Multicast? Multicast Fundamentals PIM Protocols RP choices Multicast at Layer 2 Interdomain IP Multicast Latest Additions
RST-1261 12682_05_2006_X3
Cisco Public
Why Multicast?
RST-1261 12682_05_2006_X3
Cisco Public
Unicast
Server Router Number of streams!
Multicast
Server Router
RST-1261 12682_05_2006_X3 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
Unicast Protocols
ARP not applicable HSRP etc are not applicable
RST-1261 12682_05_2006_X3
Cisco Public
Multicast Disadvantages
Multicast Is UDP Based!!!
Best Effort Delivery: Drops are to be expected. Multicast applications Delivery
should not expect reliable delivery of data and should be designed accordingly. Reliable Multicast is still an area for much research. Expect to see more developments in this area. PGM offers reliability!
Out of Order Delivery : Some protocol mechanisms may also result in out
of order delivery of packets.
RST-1261 12682_05_2006_X3
Cisco Public
Multicast Advantages
Enhanced Efficiency: Controls network traffic and reduces server and CPU Efficiency
loads
Optimized Performance: Eliminates traffic redundancy Performance Distributed Applications: Makes multipoint applications possible Applications
Multicast Unicast 0.8 Traffic 0.4 Mbps 0.2 0 1 20 40 60 80 100 # Clients
RST-1261 12682_05_2006_X3 2006 Cisco Systems, Inc. All rights reserved.
Example: Audio Streaming All clients listening to the same 8 Kbps audio
0.6
Cisco Public
Surveillance
Law Enforcement and Federal
IPv6 Multicast
NTT, Sony, Panasonic,
E Learning
150 Universities in US, Hawaii, Oregon, USC, UCLA, Berkley
Multicast VPN
C&W, MCI, AT&T, TI, FT, DT, NTT
Financials
NASDAQ, NYSE, LIFE, Morgan, GS, Prudential
Early Adopters
NASA, DOD, Cisco, Microsoft, Sprint
t en ym o pl De t as c lti Mu
1986
1992
1996
1997
1998
2000
2001
2002
2003
2004
2005
Cisco Public
10
RST-1261 12682_05_2006_X3
Time
Multicast Fundamentals
RST-1261 12682_05_2006_X3
Cisco Public
11
Multicast Components
Cisco End-to-End Architecture
ISP A
ISP B
MSDP
RP
Multicast Source X
DR
Multicast Source Y
RP
ISP B
ISP A
MBGP
IGMP
DR
Campus Multicast
End Stations (hosts-to-routers):
IGMP
Interdomain Multicast
Multicast routing across domains
MBGP
1. You must be a member of a group to receive its data 2. If you send to a group address, all members receive it 3. You do not have to be a member of a group to send to a group
RST-1261 12682_05_2006_X3 2006 Cisco Systems, Inc. All rights reserved.
Sender
Multicast Addressing
IPv4 Header
Version
Time to Live
Address Range
Padding
RST-1261 12682_05_2006_X3
Cisco Public
14
D)
Multicast Addressing
Administratively Scoped Addresses 239.0.0.0 239.255.255.255 Private address space Similar to RFC1918 unicast addresses Not used for global Internet traffic Used to limit scope of multicast traffic Same addresses may be in use at different locations for different multicast sessions
Examples
SSM (Source Specific Multicast) Range 232.0.0.0 232.255.255.255 Primarily targeted for Internet style Broadcast
RST-1261 12682_05_2006_X3 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
16
Multicast Addressing
IP Multicast MAC Address Mapping
(FDDI and Ethernet)
32 Bits 1110 5 Bits Lost 28 Bits
239.255.0.1 01-00-5e-7f-00-01
25 Bits 48 Bits 23 Bits
RST-1261 12682_05_2006_X3
Cisco Public
17
Multicast Addressing
IP Multicast MAC Address Mapping
(FDDI & Ethernet)
0x0100.5E01.0101
Cisco Public
18
Madcap in MS Server
RST-1261 12682_05_2006_X3
Cisco Public
19
Cisco Public
20
Cisco Public
21
Report
Cisco Public
22
X
Suppressed Report
X
Suppressed Query
Router sends periodic Queries to 224.0.0.1 One member per group per subnet reports Other members suppress reports
RST-1261 12682_05_2006_X3 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
23
1. 2. 3. 4.
RST-1261 12682_05_2006_X3
Host sends Leave message to 224.0.0.2 Router sends Group specific query to 224.1.1.1 No IGMP Report is received within ~3 seconds Group 224.1.1.1 times out
2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
24
RST-1261 12682_05_2006_X3
Cisco Public
25
All IGMPv3 Routers listen to this address Hosts do not listen or respond to this address
No Report Suppression
All Hosts on wire respond to Queries
Hosts complete IGMP state sent in single response
RST-1261 12682_05_2006_X3
Cisco Public
26
IGMPv3Joining a Group
1.1.1.10 H1
v3 Report (224.0.0.22)
1.1.1.11 H2
Group: 224.1.1.1 Exclude: <empty>
1.1.1.12 H3
1.1.1.1 rtr-a
Cisco Public
27
1.1.1.11 H2
Group: 224.1.1.1 Include: 10.0.0.1
1.1.1.12 H3
1.1.1.1 rtr-a
IGMPv3 Report contains desired source(s) in the Include list. Only Included source(s) are joined.
RST-1261 12682_05_2006_X3 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
28
IGMPv3Maintaining State
1.1.1.10 H1
v3 Report (224.0.0.22) v3 Report (224.0.0.22)
1.1.1.11 H2
1.1.1.12 H3
v3 Report (224.0.0.22)
1.1.1.1
Query
Cisco Public
29
Multicast L3 Forwarding
RST-1261 12682_05_2006_X3
Cisco Public
30
RST-1261 12682_05_2006_X3
Cisco Public
31
Cisco Public
32
RST-1261 12682_05_2006_X3
Cisco Public
33
SRC
10.1.1.1
Join C B
Join E0 E E2 R1 E1
Cisco Public
34
SRC
10.1.1.1
A Join
C B Join R2 D E0 E E2 R1 E1
Cisco Public
35
Tie-Breaker
Use highest Next-Hop IP address.
D 1.1.1.1 E0
Join E1 F E2 R1
E 1.1.2.1
Unicast Route Table Network Intfc Nxt H - op 10.1.0.0/24 E0 1.1.1.1 10.1.0.0/24 E1 1.1.2.1
RST-1261 12682_05_2006_X3
Cisco Public
36
Receiver 1
RST-1261 12682_05_2006_X3
Receiver 2
Cisco Public
37
Receiver 1
RST-1261 12682_05_2006_X3
Receiver 2
Cisco Public
38
D (RP)
(RP)
Receiver 1
RST-1261 12682_05_2006_X3
Receiver 2
Cisco Public
39
(RP)
Receiver 1
RST-1261 12682_05_2006_X3
Receiver 2
Cisco Public
40
Shared trees
Uses less memory O(G) but you may get suboptimal paths from source to all receivers; may introduce extra delay
RST-1261 12682_05_2006_X3
Cisco Public
41
Shared trees
PIM control messages are sent toward RP
RST-1261 12682_05_2006_X3
Cisco Public
42
D (RP)
(RP)
Receiver 1
RST-1261 12682_05_2006_X3
Receiver 2
Cisco Public
43
RST-1261 12682_05_2006_X3
Cisco Public
44
PIM SSM
Source Specific Multicast, no RP, SPT only
PIM BiDir
BiDirectional PIM, no SPT, Shared tree only
RST-1261 12682_05_2006_X3
Cisco Public
45
RP
RST-1261 12682_05_2006_X3
Cisco Public
46
Source
RP
Traffic Flow Shared Tree Source Tree (S, G) Register (S, G) Join
(unicast)
Receiver
RST-1261 12682_05_2006_X3
Cisco Public
47
Source
RP
Traffic Flow Shared Tree Source Tree (S, G) Register (S, G) Register-Stop
(S, G) traffic begins arriving at the RP via the Source tree. RP sends a Register-Stop back to the first-hop router to stop the Register process.
(unicast) (unicast)
Receiver
RST-1261 12682_05_2006_X3
Cisco Public
48
Source
RP
Source traffic flows natively along SPT to RP. From RP, traffic flows down the Shared Tree to Receivers.
RST-1261 12682_05_2006_X3
Cisco Public
49
Source
RP
Last-hop router joins the Source Tree. Additional (S, G) State is created along new part of the Source Tree. Receiver
RST-1261 12682_05_2006_X3
Cisco Public
50
Source
RP
Traffic begins flowing down the new branch of the Source Tree. Receiver Additional (S, G) State is created along along the Shared Tree to prune off (S, G) traffic.
RST-1261 12682_05_2006_X3
Cisco Public
51
Source
RP
(S, G) Traffic flow is now pruned off of the Shared Tree and is flowing to the Receiver via the Source Tree.
RST-1261 12682_05_2006_X3
Cisco Public
52
Source
RP
(S, G) traffic flow is no longer needed by the RP so it Prunes the flow of (S, G) traffic. Receiver
RST-1261 12682_05_2006_X3
Cisco Public
53
Source
RP
(S, G) Traffic flow is now only flowing to the Receiver via a single branch of the Source Tree.
RST-1261 12682_05_2006_X3
Cisco Public
54
PIM-SM FFF
The default behavior of PIM-SM is that routers with directly connected members will join the Shortest Path Tree as soon as they detect a new multicast source.
PIM-SM Frequently Forgotten Fact
Cisco Public
55
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 Basis for inter-domain multicast routing
When used with MBGP, MSDP and/or SSM
RST-1261 12682_05_2006_X3
Cisco Public
56
Cisco Public
57
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
RST-1261 12682_05_2006_X3
Cisco Public
58
Result: Shortest Path Tree rooted at the Source, with NO Shared Tree.
Receiver 1
RST-1261 12682_05_2006_X3
Cisco Public
59
PIM-SSM - Evaluation
Ideal for applications with one source sending to many receivers Solves multicast address allocation problems.
Flows differentiated by both source and group. Not just by group. Content providers can use same group ranges. Since each (S,G) flow is unique.
Cisco Public
60
RST-1261 12682_05_2006_X3
Cisco Public
61
Bidirectional PIMOverview
RP Receiver
Sender/ Receiver
Cisco Public
62
Bidirectional PIMOverview
RP Receiver
Sender/ Receiver
Source Traffic forwarded bidirectionally using (*,G) state. Shared Tree Source Traffic Receiver
RST-1261 12682_05_2006_X3 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
63
Bidir PIMEvaluation
Ideal for Many to Many applications Drastically reduces network mroute state.
Eliminates ALL (S,G) state in the network.
SPTs between sources to RP eliminated. Source traffic flows both up and down Shared Tree.
RST-1261 12682_05_2006_X3
Cisco Public
64
RP choices
RST-1261 12682_05_2006_X3
Cisco Public
65
RST-1261 12682_05_2006_X3
Cisco Public
66
Static RPs
Hard-coded RP address
When used, must be configured on every router All routers must have the same RP address RP fail-over not possible
Exception: If Anycast RPs are used.
Command
ip pim rp-address <address> [group-list <acl>] [override]
Cisco Public
67
Announce
A
Announce
B
Announce
Announce
Announce
MA
MA
Announce
Announce
C-RP 1.1.1.1
Announce
C-RP 2.2.2.2
Cisco Public
68
MA A
Dis cov ery
Disc ove ry
Disc ove ry
MA B
Disc ove ry Disc ove ry
C-RP 1.1.1.1
C-RP 2.2.2.2
Cisco Public
69
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
Cisco Public
70
BSR Msg
BSR
BSR
BSR
Msg
C-BSR D
Msg
Msg
C-BSR A
Msg
Msg
C-BSR F
Msg BSR Msg
BSR
Msg
BSR
BSR
B
BSR Msgs
BSR
C E
BSR
Msg
Cisco Public
71
BSR
A D F
B E
RST-1261 12682_05_2006_X3
Cisco Public
72
BSR
A D
en em s rti ve st) Ad ica RP (un Ct
CRP (u
F
ve ni rtise ca st men ) Ad
C-RP
B E
C-RP
RST-1261 12682_05_2006_X3
Cisco Public
73
G
Msg BSR Msg
BSR
A
BSR Msg
BSR
D
BSR Msg
C-RP
BSR Msgs
B E
C-RP
Cisco Public
74
Multicast at Layer 2
RST-1261 12682_05_2006_X3
Cisco Public
75
Multicast M
RST-1261 12682_05_2006_X3
Cisco Public
76
IGMPv1-v2 Snooping
Switches become IGMP aware IGMP packets intercepted by the NMP or by special hardware ASICs Requires special hardware to maintain throughput Switch must examine contents of IGMP messages to determine which ports want what traffic IGMP membership reports IGMP leave messages Impact on low-end Layer-2 switches: Must process ALL Layer 2 multicast packets Admin. load increases with multicast traffic load Generally results in switch Meltdown !!!
RST-1261 12682_05_2006_X3 2006 Cisco Systems, Inc. All rights reserved.
PIM
IGMP
IGMP
Cisco Public
77
RST-1261 12682_05_2006_X3
Cisco Public
78
SummaryFrame Switches
IGMP snooping
Switches with Layer 3 aware Hardware/ASICs
High-throughput performance maintained Increases cost of switches
RST-1261 12682_05_2006_X3
Cisco Public
79
Interdomain IP Multicast
RST-1261 12682_05_2006_X3
Cisco Public
80
MBGP Overview
MBGP: Multiprotocol BGP
Defined in RFC 2858 (extensions to BGP) Can carry different types of routes
Unicast Multicast
Both routes carried in same BGP session Does not propagate multicast state info Same path selection and validation rules
AS-Path, LocalPref, MED,
RST-1261 12682_05_2006_X3
Cisco Public
81
MBGP Overview
Separate BGP tables maintained Unicast Routing Information Base (URIB) Multicast Routing Information Base (MRIB) URIB Contains unicast prefixes for unicast forwarding Populated with BGP unicast NLRI
AFI = 1, Sub-AFI = 1
MRIB Contains unicast prefixes for RPF checking Populated with BGP multicast NLRI
AFI = 1, Sub-AFI = 2
RST-1261 12682_05_2006_X3 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
82
MBGP Overview
MBGP allows divergent paths and policies
Same IP address holds dual significance
RST-1261 12682_05_2006_X3
Cisco Public
83
MSDP
Based on RFC 3618 Works with PIM-SM only
RPs knows about all sources in their domain
Sources cause a PIM Register to the RP Tell RPs in other domains of its sources
Via MSDP SA (Source Active) messages
RST-1261 12682_05_2006_X3
Cisco Public
84
MSDP Overview
MSDP Example
MSDP Peers
Domain E
RP Join (*, 224.2.2.2)
r
Domain C
RP
Domain B
RP RP
Domain D
RP
Domain A
RST-1261 12682_05_2006_X3
Cisco Public
85
MSDP Overview
MSDP Example
MSDP Peers Source Active Messages SA SA
Domain E
RP
Domain C
RP
Domain B SA
RP SA
SA
SA
RP
Domain D
s
Domain A
Cisco Public
86
MSDP Overview
MSDP Example
MSDP Peers
Domain E
RP
r
Domain C
RP
Jo i (S, 224 n .2.2.2)
Domain B
RP
RP
Domain D
RP
s
Domain A
RST-1261 12682_05_2006_X3
Cisco Public
87
MSDP Overview
MSDP Example
MSDP Peers Multicast Traffic
Domain E
RP
r
Domain C
RP
Domain B
RP RP
Domain D
RP
s
Domain A
RST-1261 12682_05_2006_X3
Cisco Public
88
MSDP Overview
MSDP Example
MSDP Peers Multicast Traffic
Domain E
RP
Domain C
RP
Domain B
RP RP
Domain D
RP
s
Domain A
RST-1261 12682_05_2006_X3
Cisco Public
89
MSDP Overview
MSDP Example
MSDP Peers Multicast Traffic
Domain E
RP
r
Domain C
RP
Domain B
RP RP
Domain D
RP
s
Domain A
RST-1261 12682_05_2006_X3
Cisco Public
90
Anycast RP Overview
Uses single 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. Senders & Receivers Join/Register with closest RP Closest RP determined from the unicast routing table. Can never fall back to Dense mode. Because RP is statically defined.
Cisco Public
91
Anycast RP Overview
Src
RP1
Src
RP2
MSDP
SA SA
Rec
X X
RST-1261 12682_05_2006_X3
A 10.1.1.1
B 10.1.1.1
Rec
Rec
Rec
Cisco Public
92
Anycast RP Overview
Src
RP1
Src
RP2 B 10.1.1.1
Rec
X X
RST-1261 12682_05_2006_X3
A 10.1.1.1
Rec
Rec
Rec
Cisco Public
93
Latest Additions
RST-1261 12682_05_2006_X3
Cisco Public
94
CE
CE
MPLS Core
CE
CE
RST-1261 12682_05_2006_X3
CE
Cisco Public
95
RST-1261 12682_05_2006_X3
Cisco Public
96
Cisco Public
97
Default-MDT:
Default MDT group used for control traffic and flooding channel for dense mode and low bandwidth groups.
Data-MDT:
MDT group created on demand for MVPN (S,G) pairs, usually high bandwidth traffic
RST-1261 12682_05_2006_X3 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
98
CE
A
New York New York
CE
B1
San San Francisco Francisco
CE
B2
Receiver 1
CE
E
A B
PE PE
E
PE Default MDT
For low Bandwidth & control traffic only. Los Los Angeles Angeles
Customer CE devices joins the MPLS Core through providers PE devices The MPLS Core forms a Default MDT for a given Customer
CE
Data MDT
D C
For High Bandwidth traffic only.
PE PE
Receiver 3
CE
D
Dallas Dallas
A High-bandwidth source for that customer starts sending traffic Interested receivers 1 & 2 join that High Bandwidth source Data-MDT is formed for this High-Bandwidth source
CE
Receiver 2
Cisco Public
99
PGM: Specifications
RFC 3208 : Pragmatic Generic Multicast
(PGM) Reliable Transport Protocol Specification (experimental) Defines an industry standard protocol for scalable, reliable multicast PGM guarantees that a receiver in the group either receives all data packets from transmissions and repairs, or is able to detect unrecoverable data packet loss (just like TCP, but for IP multicast !)
RST-1261 12682_05_2006_X3
Cisco Public
100
PGM: Components
Server
PGM (Server/Source) Stack
Network
Optional PGM functions
Host
PGM (Host/Receiver) Stack
RST-1261 12682_05_2006_X3 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
101
Cisco Public
102
N20
N21
R12 R11
N00
N01
X X
R00
RST-1261 12682_05_2006_X3
R01
R02
R03
R04
Suppresses NAK
N20
N21
R11
N00
N01
R00
RST-1261 12682_05_2006_X3
R01
R02
R03
R04
R05
Cisco Public
104
N20
N21
R12 R11
N00
N01
R00
RST-1261 12682_05_2006_X3
R01
R02
R03
R04
R05
Cisco Public
105
N20
N21
N10
N11
R11
N00
N01
R00
RST-1261 12682_05_2006_X3
R01
R02
R03
R04
R05
Cisco Public
106
IPv4 Solution
32-bit, class D Protocol Independent All IGPs,and BGP4+ PIM-DM, PIM-SM, PIM-SSM, PIM-bidir IGMPv1, v2, v3 Boundary/Border MSDP across Independent PIM Domains
IPv6 Solution
128-bit (112-bit Group) Protocol Independent All IGPs,and BGP4+ with v6 mcast SAFI PIM-SM, PIM-SSM, PIM-bidir MLDv1, v2 Scope Identifier Single RP within Globally Shared Domains
Cisco Public
107
Routing
1111 1111
Flags P T scope
F 8 bits
Flags =
T or Lifetime, 0 if permanent, 1 if temporary P proposed for unicast-based assignments Others are undefined and must be zero 1 = interface-local 2 = link 4 = admin-local 5 = site 8 = organization E = global
8 bits
Scope =
RST-1261 12682_05_2006_X3
Cisco Public
108
80 Bits Lost
33-33-xx-xx-xx-xx
48 Bits
RST-1261 12682_05_2006_X3
Cisco Public
109
Example:
Content Providers Unicast Prefix
1234:5678:9abc::/64 1234:5678:9abc
Multicast Address
FF36:0030:1234:5678:9abc::0001 1234:5678:9abc
RST-1261 12682_05_2006_X3 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
110
RST-1261 12682_05_2006_X3
Cisco Public
111
Cisco Public
112
RST-1261 12682_05_2006_X3
Cisco Public
113
Network-Prefix::RPadr = RP address For each Unicast prefix you own, you now also own:
16 RPs for each of the 16 Multicast Scopes (256 total) with 2^32 multicast groups assigned to each RP (2^40 total)
RST-1261 12682_05_2006_X3
Cisco Public
114
FF76:0130:1234:5678:9abc::4321 1234:5678:9abc
1234:5678:9abc::1
Resulting RP address
RST-1261 12682_05_2006_X3 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
115
MLD snooping
draft-ietf-magma-snoop-12.txt
RST-1261 12682_05_2006_X3 2006 Cisco Systems, Inc. All rights reserved.
Cisco Public
116
RST-1261 12682_05_2006_X3
Cisco Public
117
More Information
White Papers Web and Mailers Cisco Press
Cisco Public
118
Recommended Reading
Continue your Cisco Networkers learning experience with further reading from Cisco Press Check the Recommended Reading flyer for suggested books
Available on site at the Cisco Company Store
RST-1261 12682_05_2006_X3
Cisco Public
119
RST-1261 12682_05_2006_X3
Cisco Public
120
RST-1261 12682_05_2006_X3
Cisco Public
121