Professional Documents
Culture Documents
BRKRST-126
1 Copyright 2009
2 Copyright 2009
3 Copyright 2009
Session Goal
4 Copyright 2009
4
• Why Multicast?
• Multicast Fundamentals
• PIM Protocols
• RP Choices
• Multicast at Layer 2
• Interdomain IP Multicast
• Some Latest Additions
5 Copyright 2009
Unicast
Server
Router
Number of Streams
Multicast
Server
Router
6 Copyright 2009
• Server/Website replication
• Reducing network/resource overhead
– More than multiple point-to-point flows
• Resource discovery
• Distributed interactive simulation (DIS)
– War games
– Virtual reality
7 Copyright 2009
8 Copyright 2009
Multicast Advantages
Multicast
0.8
Unicast
Traffic (Mbps)
0.6
0.4
0.2
0
1 20 40 60 80 100
Number of Clients
10 Copyright 2009
• Why Multicast?
• Multicast Fundamentals
• PIM Protocols
• RP Choices
• Multicast at Layer 2
• Interdomain IP Multicast
• Some Latest Additions
11 Copyright 2009
Multicast Components
Cisco End-to-End Architecture
ISP A ISP B
MSDP
RP
Multicast Source
Multicast Source DR Y
X
RP ISP B
DR
12 Copyright 2009
Multicast Addressing
IPv4 Header
Version IHL
n N e ve r Be
Type of Service Total Length
d d re ss Ca A ddress
e A u p
Sourc ulticast Gro
Identification Flags Fragment Offset
DM
Class
Time to Live Protocol Header Checksum
Source
Source Source Address
1.0.0.0 - 223.255.255.255 (Class A, B, C)
Destination
Destination Destination Address
224.0.0.0 - 239.255.255.255 (Class D) Multicast Group Address Range
Options Padding
14 Copyright 2009
15 Copyright 2009
Multicast Addressing—224/4
16 Copyright 2009
1110 28 Bits
239.255.0.1
5 Bits
Lost
01-00-5e-7f-00-01
25 Bits 23 Bits
48 Bits
17 Copyright 2009
Multicast Addressing
19 Copyright 2009
20 Copyright 2009
Joining a Group
H1 H2 224.1.1.1 H3
Report
21 Copyright 2009
Maintaining a Group
X X
Suppressed Report Suppressed
Query
Leave to
#1 224.0.0.2
Group Specific
Query to 224.1.1.1
#2
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
23 Copyright 2009
RFC 3376
• Adds include/exclude source lists
• Enables hosts to listen only to a specified subset of
the hosts sending to the group
• Requires new ‘IPMulticastListen’ API
• New IGMPv3 stack required in the OS
• Apps must be rewritten to use IGMPv3
include/exclude features
24 Copyright 2009
25 Copyright 2009
IGMPv3—Joining a Group
H1 H2 H3
1.1.1.1
rtr-a
26 Copyright 2009
H1 H2 H3
1.1.1.1
rtr-a
27 Copyright 2009
IGMPv3—Maintaining State
H1 H2 H3
1.1.1.1 Query
29 Copyright 2009
Unicast Forwarding
• Destination IP address directly indicates where to
forward packet
• Forwarding is hop-by-hop
– Unicast routing table determines interface and next-hop
router to forward packet
30 Copyright 2009
Multicast Forwarding
• Destination IP address (group) doesn’t directly
indicate where to forward packet
• Forwarding is connection-oriented
– Receivers must first be “connected” to the tree before traffic
begins to flow
• Connection messages (PIM joins) follow unicast routing
table toward multicast source
• Build multicast distribution trees that determine where to
forward packets
• Distribution trees rebuilt dynamically in case of network
topology changes
31 Copyright 2009
32 Copyright 2009
• RPF calculation
SRC 10.1.1.1
– Based on source address
– Best path to source found
A
in unicast route table
– Determines where to send Join
C
join
B
– Joins continue towards
source to build multicast Join D
tree E0 E1
33 Copyright 2009
• RPF calculation
SRC 10.1.1.1
– Based on source address
– Best path to source found
A
in unicast route table Join
tree E0 E1
• RPF calculation
10.1.1.1
SRC
– What if we have equal-cost
paths?
A
• We can’t use both
– Tie-breaker
B C
• Use highest next-hop
IP address
D E
1.1.1.1 Join 1.1.2.1
E0 E1
F
Unicast Route Table E2
Network Intfc Nxt-Hop
10.1.0.0/24 E0 1.1.1.1 R1
10.1.0.0/24 E1 1.1.2.1
35 Copyright 2009
A B D F
C E
Receiver 1 Receiver 2
36 Copyright 2009
A B D F
C E
Receiver 1 Receiver 2
37 Copyright 2009
A B D (RP) F
Receiver 1 Receiver 2
38 Copyright 2009
Source 2
A B D (RP) F
Receiver 1 Receiver 2
39 Copyright 2009
40 Copyright 2009
41 Copyright 2009
Agenda
• Why Multicast?
• Multicast Fundamentals
• PIM Protocols
• RP Choices
• Multicast at Layer 2
• Interdomain IP Multicast
• Some Latest Additions
42 Copyright 2009
PIM-SM
• ASM
– Any Source Multicast/RP/SPT/shared tree
• SSM
– Source Specific Multicast, no RP, SPT only
• BiDir
– Bidirectional PIM, no SPT, shared tree only
43 Copyright 2009
RP
Receiver
44 Copyright 2009
RP
Source
45 Copyright 2009
RP
Source
46 Copyright 2009
RP
Source
47 Copyright 2009
RP
Source
48 Copyright 2009
RP
Source
49 Copyright 2009
RP
Source
50 Copyright 2009
RP
Source
51 Copyright 2009
RP
Source
52 Copyright 2009
BRKRST-1261
53 Copyright 2009
14489_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 53
PIM-SM—Evaluation
54 Copyright 2009
55 Copyright 2009
A B C D
Out-of-Band Source
(S, G) Join Directory
Example: Web Server
D F
IGMPv3 (S, G) Join
Receiver 1
56 Copyright 2009
A B C D
E F
Receiver 1
57 Copyright 2009
SSM—Evaluation
58 Copyright 2009
59 Copyright 2009
Bidirectional PIM—Overview
RP Sender/
Receiver Receiver
Shared Tree
Receiver
60 Copyright 2009
RP Sender/
Receiver Receiver
Shared Tree
Source Traffic
Receiver
61 Copyright 2009
Bidir PIM—Evaluation
62 Copyright 2009
• Why Multicast?
• Multicast Fundamentals
• PIM Protocols
• RP Choices
• Multicast at Layer 2
• Interdomain IP Multicast
• Some Latest Additions
63 Copyright 2009
• Group to RP mapping
– Consistent in all routers within the PIM domain
• RP redundancy requirements
– Eliminate any single point of failure
64 Copyright 2009
65 Copyright 2009
Static RPs
• Hard-configured RP address
– When used, must be configured on every router
– All routers must have the same RP address
– RP failover not possible
• Exception: if anycast RPs are used
• Command
– ip pim rp-address <address> [group-list <acl>] [override]
– Optional group list specifies group range
• Default: range = 224.0.0.0/4 (includes auto-RP groups!!!)
– Override keyword “overrides” auto-RP information
• Default: auto-RP learned info takes precedence
66 Copyright 2009
Announce
MA MA
Announce A B
Announce
RP-Announcements Multicast to the
Cisco Announce (224.0.1.39) Group
Announce
67 Copyright 2009
ry
e
cov
ove
Dis
Disc
Dis Disc
c ove ove
ry MA ry MA
Dis Disc
A c ove B ove
ry
ry
ry
ry
e
ove
cov
Disc
Dis
C D
C-RP C-RP
1.1.1.1 2.2.2.2
68 Copyright 2009
sg
M
sg
sg
BSR
M
M
BSR
BSR
BSR
BSR
M sg C-BSR BSR
M sg C-BSR M sg C-BSR
A BSR
D M sg F BSR
BSR
M sg M sg
sg
M
sg
sg
BSR
M
M
BSR
BSR
B C
E
BSR Msgs
69 Copyright 2009
BSR
A
D F
B C
70 Copyright 2009
BSR
A
D t C- F
en R P
m Ad
se
rti ) (U vert
ve t ni i
Ad icas ca sem
RP (Un st
) en
C- t
C-RP C-RP
B C
71 Copyright 2009
G
sg
M
BSR
BSR
M sg
BSR
A BSR
D M sg F
sg
M
BSR
C-RP C-RP
B C
BSR Msgs E
BSR Messages Containing RP-Set
Flooded Hop-by-Hop
72 Copyright 2009
• Why Multicast?
• Multicast Fundamentals
• PIM Protocols
• RP Choices
• Multicast at Layer 2
• Interdomain IP Multicast
• Some Latest Additions
73 Copyright 2009
74 Copyright 2009
IGMPv1–v2 Snooping
75 Copyright 2009
76 Copyright 2009
IGMP Snooping
• Switches with Layer 3-aware hardware/ASICs
• High-throughput performance maintained
• Increases cost of switches
• Switches without Layer 3-aware hardware/ASICs
• Suffer serious performance degradation or even
meltdown!
• Shouldn’t be a problem when IGMPv3 is implemented
77 Copyright 2009
Agenda
• Why Multicast?
• Multicast Fundamentals
• PIM Protocols
• RP Choices
• Multicast at Layer 2
• Interdomain IP Multicast
• Some Latest Additions
78 Copyright 2009
79 Copyright 2009
MBGP Overview
80 Copyright 2009
81 Copyright 2009
MSDP
• RFC 3618
• ASM only
– RPs knows about all sources in their domain
• Sources cause a “PIM Register” to the RP
• Tell RPs in other domains of it’s sources
– Via MSDP SA (Source Active) messages
– RPs know about receivers in a domain
• Receivers cause a “(*, G) Join” to the RP
• RP can join the source tree in the peer domain
– Via normal PIM (S, G) joins
– MSDP required for interdomain ASM source discovery
82 Copyright 2009
r
Domain C
RP
Domain B
RP
RP
Domain D
RP
Domain A
83 Copyright 2009
MSDP Overview
MSDP Example
Domain E
MSDP Peers RP
Source Active SA SA r
Messages Domain C
RP
SA
Domain B SA SA
RP
SA
RP
SA Domain D
SA Message
192.1.1.1, 224.2.2.2
RP
SA Message
192.1.1.1, 224.2.2.2 s
Domain A
Register
192.1.1.1, 224.2.2.2
84 Copyright 2009
MSDP Peers RP
r
Domain C
.2.2.2)
RP
(S, 224in
Jo
Domain B
RP
RP
Domain D
RP
s
Domain A
85 Copyright 2009
MSDP Overview
MSDP Example
Domain E
MSDP Peers RP
Multicast Traffic r
Domain C
RP
Domain B
RP
RP
Domain D
RP
s
Domain A
86 Copyright 2009
MSDP Peers RP
Multicast Traffic r
Domain C Join
2)
(S, 224.2.2.
RP
Domain B
RP
RP
Domain D
RP
s
Domain A
87 Copyright 2009
MSDP Overview
MSDP Example
Domain E
MSDP Peers RP
Multicast Traffic r
Domain C
RP
Domain B
RP
RP
Domain D
RP
s
Domain A
88 Copyright 2009
Domain E
ASM MSDP Peers
(Irrelevant to SSM)
RP
r
Domain C
Receiver Learns
RP S and G Out of
Domain B Band, i.e.,
Webpage
RP
RP
Domain D
Source in 232/8
RP
s
Domain A
89 Copyright 2009
Domain E
ASM MSDP Peers
(Irrelevant to SSM)
RP
r
Domain C
Receiver Learns
RP S and G Out of
Domain B Band, e.g.,
Webpage
RP
RP
Domain D
Source in 232/8
RP
s
Domain A
90 Copyright 2009
91 Copyright 2009
Anycast RP—Overview
Src Src
RP1 RP2
MSDP
X
A B
10.1.1.1
SA SA 10.1.1.1
92 Copyright 2009
Src Src
RP1 RP2
X
A B
10.1.1.1 10.1.1.1
93 Copyright 2009
Agenda
• Why Multicast?
• Multicast Fundamentals
• PIM Protocols
• RP Choices
• Multicast at Layer 2
• Interdomain IP Multicast
• Some Recent Additions
94 Copyright 2009
CE
CE
MPLS
CE
Core
CE
CE CE
95 Copyright 2009
96 Copyright 2009
97 Copyright 2009
128-Bit (112-Bit
Address Range 32-Bit, Class D
Group)
Protocol-Independent
Protocol-Independent
Routing All IGPs and BGP4+
All IGPs and GBP4+
with v6 Mcast SAFI
PIM-DM, PIM-SM: PIM-SM: ASM, SSM,
Forwarding
ASM, SSM, BiDir BiDir
128 Bits
8 4 4
FF Flags Scope 0 Interface-ID
99 Copyright 2009
80 Bits Lost
33-33-xx-xx-xx-xx
48 Bits
Ethernet MAC Address
8 4 4 8 8 64 32
FF Flags Scope Rsvd Plen Network-Prefix Group-ID
RP Mapping Mechanisms
for IPv6 PIM-SM
• Static RP assignment
• BSR
• Auto-RP—no current plans
• Embedded RP
8 4 4 4 4 8 64 32
FF Flags Scope Rsvd RPadr Plen Network-Prefix Group-ID
Embedded RP Addressing—Example
FF76:0130:1234:5678:9abc::4321
1234:5678:9abc::1
Resulting RP Address
More Information
• White papers
• Web and mailers
• Cisco Press®
RTFB
• CCO multicast
– http://www.cisco.com/go/ipmultic
ast
• Customer support mailing list
– tac@cisco.com
RTFB = “Read the Fine Book”
• Internet IP multicast
• AMT—Automatic Multicast Tunneling
Internet IP Multicast
• What worked?
• What didn’t work?
• What’s being done to fix it?
What Worked?
As Long as IP Multicast Is
Mcast-Enabled ISP Content Owner
Enabled on Every Router
from the Source to the
Receivers, the Benefits of
IP Multicast Are Realized
Unicast-Only Network
Mcast Traffic
Mcast Join
Unicast-Only Network
Mcast Traffic
Mcast Join
What Didn’t?
Even Though the Content
Mcast-Enabled ISP Content Owner
Owner and Core Provider
Are IP Multicast-Enabled, the
Majority of Edge Networks
Are Still Unicast-Only
Unicast-Only Network
Unicast-Only Network
To Gain Maximum
Audience Size,
Unicast Fallback
Streams (i.e., Servers)
Are Deployed
Mcast Traffic
Mcast Join
Session Description
File Defines Mcast Ucast Request
Timeout, and the
Backup Unicast
Transport
Mcast-Enabled Local Provider
117 Copyright 2009
What Didn’t?
More Receivers Consumes
Mcast-Enabled ISP Content Owner
More Resources and Costs the
Content Owner More Money $$$$
Unicast-Only Network
$$$$
Mcast Traffic
Mcast Join
Ucast Request
Ucast Stream
Mcast-Enabled Local Provider
118 Copyright 2009
Unicast-Only Network
Mcast Traffic
Once the Multicast Mcast Join
Join Times Out, an
AMT Join Is Sent AMT Request
from the Host
Gateway Toward the
Global AMT Anycast
Address Mcast-Enabled Local Provider
121 Copyright 2009
Unicast-Only Network
Mcast Traffic
Mcast Join
AMT Request
Unicast-Only Network
Mcast Traffic
Mcast Join
AMT Request
Unicast-Only Network
Mcast Traffic
Mcast Join
AMT Request
Ucast Stream
Mcast-Enabled Local Provider
124 Copyright 2009
Unicast-Only Network
Mcast Traffic
Mcast Join
AMT Request
Ucast Stream
Mcast-Enabled Local Provider
125 Copyright 2009
Unicast-Only Network
Enables Multicast
Content to a Large
(Global) Audience
Mcast Traffic
Mcast Join
AMT Request
Ucast Stream
Mcast-Enabled Local Provider
126 Copyright 2009
Unicast-Only Network
Enables Multicast
Content to a Large
(Global) Audience
Mcast Traffic
Mcast Join
AMT Request
Ucast Stream
Mcast-Enabled Local Provider
127 Copyright 2009
Enables Multicast
Content to a Large
(Global) Audience
Mcast Traffic
Mcast Join
AMT Request
Ucast Stream
Mcast-Enabled Local Provider
128 Copyright 2009