Brkipm 1261 PDF
Brkipm 1261 PDF
Brkipm 1261 PDF
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
Introduction and
Troubleshooting IP
Multicast
kycao@cisco.com
Cisco Spark
Questions?
Use Cisco Spark to communicate
with the speaker after the session
How
1. Find this session in the Cisco Live Mobile App
2. Click “Join the Discussion”
3. Install Spark or go directly to the space
4. Enter messages/questions in the space
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Agenda
• Why?
Multicast Overview
• What?
Multicast Fundamental
• How?
Case Study – Multicast
Deployment
• How to Troubleshoot?
Multicast Overview
Unicast Vs Multicast
Unicast
Receiver
Sender
Receiver
Receiver
Number of streams
Multicast Receiver
Receiver
Receiver
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
Broadcast Vs Multicast
I don’t I don’t
want this want this
traffic ! traffic !
Broadcast
Receiver
Sender
Receiver
Receiver
Multicast
Receiver
Sender
Receiver
Receiver
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
Multicast Advantages
• Scalability
Network utilisation is independent of the number of receivers
• Utilisation
Controls network bandwidth and reduces server and router loads
• Performance
Subscriber number 1 and subscriber number 10000 have identical experience
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
Multicast Uses
• Any applications with multiple • Server/Website replication
receivers
• Reducing network/resource
• One-to-many or many-to-many
overhead
• Live video distribution • More than multiple point-to-point
flows
• Collaborative groupware
• Resource discovery
• Periodic data delivery—“push”
technology • Distributed interactive simulation
• Stock quotes, sports scores, (DIS)
• War games
• Inter Data Centre L2 Underlay
• Virtual reality
• VXLAN, etc. for BUM
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Multicast Considerations
Multicast is UDP-based
• “Best effort” delivery
• No congestion avoidance
• Duplicates
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
Multicast Fundamental
Frequent Use term
• MC – Multicast • FHR - First Hop Router
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 12
Multicast Service Model Overview
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
IP Multicast Source
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
Unicast Vs Multicast Addressing
Unicast
Receiver
IP: 13.1.1.1
Sender
Receiver IP: 10.1.1.1
IP: 11.1.1.1
Receiver
IP: 12.1.1.1
Multicast
Receiver
Multicast Sender
Group address Receiver IP: 10.1.1.1
224.1.1.1
Receiver
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
Multicast Addressing
IPv4 Header
Version IHL Type of Service Total Length
Source
Source Always the unique unicast origin address of
SourceAddress
1.0.0.0 - 232.255.255.255 (Class A, B, C) the packet – same as unicast
Destination DestinationAddress
224.0.0.0 - 239.255.255.255 (Class D) Multicast Group Address Range
Options Padding
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
Multicast Addressing
• Reserved link-local addresses (Never use them)
• 224.0.0.0–224.0.0.255
• Transmitted with TTL = 1
• Examples
• 224.0.0.1 All systems on this subnet
• 224.0.0.2 All routers on this subnet
• 224.0.0.5 OSPF routers
• 224.0.0.13 PIMv2 routers
• 224.0.0.22 IGMPv3
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
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—scoped traffic
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
IP Multicast Source
• Any device that sends an IP packet with a destination address between
224.0.0.0 – 239.255.255.255
• A device can be a multicast sender and a multicast receiver at the same time
• There is no multicast control traffic between the sender and the network, or
between the sender and receiver.
• Source does not need to join the multicast group, they just send.
• Applications controls when source to send multicast data.
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
Multicast Service Model Overview – Layer 2
2b. Host-router
1. Source already sending
2a. I want to receive signalling protocol
stream ‘A’
stream ‘A’
IGMP
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
Host-Router Signalling: IGMP
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
IGMPv2 – Joining a Group
No-receiver
Additional
reports for
234.1.1.1
Receiver 1 supressed
Eth0:10.1.1.1
I want to
receiv MC Stream
group
234.1.1.1
First-hop router
Note: The IGMP Eth0:10.1.1.254
message does not
include the identity IGMP Membership Report
of the multicast Requested Group: 234.1.1.1
source Source IP: 10.1.1.1
Destination IP: 234.1.1.1
Non-receiver
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
IGMPv2 – Joining a Group
I also want
Requested Group: 234.1.1.1
to receive
Source IP: 10.1.1.2 Additional IGMP
group Additional
Destination IP: 234.1.1.1 reports for
reports for 234.1.1.1
234.1.1.1 234.1.1.1
Receiver 1
are suppressed by
supressed
Eth0:10.1.1.1 switch
X MC Stream
First-hop router
Eth0:10.1.1.254
Non-receiver
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
IGMPv2 – Maintaining a Group
Receiver 2
Eth0:10.1.1.2
I don’t
require this
stream any IGMP
IGMP Leave
Leave message
message
more Leave
Leave Group: 234.1.1.1
Group: 234.1.1.1
Source
Source IP:
IP: 10.1.1.2
10.1.1.2
Receiver 1 Destination
Destination IP:
IP: 224.0.0.2
224.0.0.1
Eth0:10.1.1.1 Router
E0:10.1.1.254
I still MC Stream
need Does
234.1.1.1 anyone still
need group
234.1.1.1 ?
IGMP
IGMP Membership Report
Membership Report
IGMP Group
IGMP Membership
Group Membership
Message onthis
message on thissegment
segment Query message
Query message
Requested Group: 234.1.1.1 Membership Group: 234.1.1.1
Requested Group: 234.1.1.1
Source IP: 10.1.1.1 Source IP:
Membership 10.1.1.254
Group: 234.1.1.1
Destination Destination IP: 224.0.0.1
Source IP: IP: 224.0.0.2
10.1.1.1 Source IP: 10.1.1.254
Destination IP: 234.1.1.1 Destination IP: 234.1.1.1
Non-receiver
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
IGMPv2 – Leaving a Group
Non-receiver
Receiver 1
Eth0:10.1.1.1 Router
E0:10.1.1.254
I don’t
MC Stream
require this
stream any
more
Non-receiver
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
IGMPv2 – Leaving a Group
Does T+2s
anyone still
Non-receiver need group
Eth0:10.1.1.2 234.1.1.1 ?
Non-Receiver
T+1s
Eth0: 10.1.1.2 Router
E0:10.1.1.254 Does anyone still
need group
234.1.1.1? MC Stream
Does
anyone still
need group
234.1.1.1 ?
IGMP Group Membership
Membership Group: 234.1.1.1
Query message
Source IP:10.1.1.254
Membership Group: 234.1.1.1 IGMP Group Membership
Destination IP:224.0.0.1
Source IP: 10.1.1.254
Destination IP: 224.0.0.1
Query message
Non-receiver
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
IGMP Snooping
• By default, switches forward all layer 2 multicast frames to all ports (except the
originating port)
• IGMP snooping eavesdrops on IGMP messaging
• Switch constrains MC to only ports that want it (key point)
• IGMP snooping is on by default in IOS-based switches
• Replaced Cisco Group Management Protocol (CGMP).
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
Advantages of IGMP Snooping
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
• But.....we have a problem. The receiver just told me the group it wants to join
but didn’t identify the source! So in which direction is the “upstream” router ?
Where can I
joint group
234.1.1.1 ?
I want
234.1.1.1
IGMP
? Source
192.168.1.1
1st IGMP Membership 1. Source already sending
Report message on this stream ‘A’
segment
Note: The IGMP
Requested Group: 234.1.1.1
Source IP: 10.1.1.1 message does not
Destination IP: 224.0.0.1 include the identity
of the multicast
source
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
Unicast vs. Multicast Routing/Forwarding
Unicast Routing/Forwarding
• Destination IP address directly indicates where to forward packet
• Unicast Routing protocols build a table of destination/interface/next-hop triples
• Unicast Forwarding is hop-by-hop simply based on these entries
• Unicast routing table determines interface and next-hop router to forward packet
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
Unicast vs. Multicast Routing/Forwarding
Multicast Routing & Forwarding
• Destination Group address doesn’t directly indicate where to forward packet.
Distributing trees are used to describe forwarding path.
• Multicast Routing is Backwards from Unicast Routing
Multicast Routing builds a Multicast Distribution tree backwards from the receivers to
the source.
Trees are built via connection requests (Joins) “sent” toward the source.
Joins follow the unicast routing table backwards toward the source.
Joins create Multicast tree/forwarding state in the routers along the tree.
Trees are rebuilt dynamically in case of network topology changes.
Only when a tree is completely built from receiver backwards to the source can
source traffic flow down the tree to the receivers.
Multicast routing use separate routing table - mroute
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
Source Tree
Receiver for
239.194.0.5
• Traffic travels from source (root) to receivers
(leaves), shortest path taken
• Packets replicated at branch point
• Forwarding entry states represented as (S, G)
Receiver for in mroute table
239.194.0.5
(S, G) entry is
(196.7.25.12,
239.194.0.5)
Source 196.7.25.12
transmitting to
group 239.194.0.5
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
Shared Tree Receiver for
Receiver for 239.194.0.4
239.194.0.5
• Root is a common point
• Rendezvous Point
Source 196.7.25.11
• Receivers join RP
transmitting to
group 239.194.0.4 • To learn of sources
Rendezvous
Point Source 196.7.25.12
transmitting to
group 239.194.0.5
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
Multicast Service Model Overview
3a. I need
stream ‘A’
2b. Host-router
2a. I want to receive signalling protocol
stream ‘A’ 3b. Router-router
signalling protocol
IGMP
PIM
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
Router-Router Signalling: PIM
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
Router-Router Signalling: PIM-SM
• Each PIM router forms neighbour relationship with adjacent PIM routers using
PIM “hello” messages every 30 seconds.
• When a PIM router wants to receive a multicast stream, it sends a PIM “join”
message towards the IP address of the multicast source.
• When a PIM router wants to stop receiving a multicast stream, it sends a PIM
“prune” message towards the IP address of the multicast source.
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
RPF Mechanism
• Multicast traffic flows are checked from the sender back down the path created
by the PIM messages. This is known as Reverse Path Forwarding (RPF).
• All received multicast traffic is subject to an RPF check
Is the incoming MC traffic being received via the interface on which I have a route to the
source?
RPF check PASS = accept MC traffic and send it on
RPF check FAIL = drop traffic on floor
• Prevents loops and duplicate packets
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
RPF Mechanism
1. Look up route
to Source in
routing table 10 20
Group
7. RPF check 234.1.1.1
I have hosts
that want to = PASS
5. Send MC stream back
receive
down the path created
234.1.1.1
by PIM messages
10 10
Source
• Static multicast routes can be used to send PIM messages down a different path
than would be selected from the unicast routing table.
• Useful if you want MC traffic to travel over different links to unicast traffic
• Best suited for small networks due to scalability issues managing many static
routes.
• Be careful of creating PIM routing loops !
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
Static Multicast Routes
10.1.1.2
10 50
Group
234.1.1.1
I have hosts
that want to
receive
234.1.1.1
Source
10 PIM 10
192.168.1.1
Multicast
traffic
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
Static Multicast Routes 2. Look
up route
to Source
10.1.1.2 in routing
table
1. PIM “join 234.1.1.1”
message sent using
static mroute path
10
LOOP ! 50
Group
234.1.1.1
I have hosts
that want to 2. PIM “join 234.1.1.1”
receive message sent towards
234.1.1.1 source using unicast
routing table
Source
10 10
192.168.1.1
ip mroute 192.168.1.1 255.255.255.255 10.1.1.2
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
Static Multicast Routes 2. Look
up route
to Source
10.1.1.2 in routing
table 3. PIM “join 234.1.1.1”
1. PIM “join 234.1.1.1” message sent towards
message sent using source using unicast
static mroute path routing table
10 50
10.1.1.6 Group
Multicast 234.1.1.1
I have hosts
that want to traffic
receive
234.1.1.1
Source
10 10
192.168.1.1
ip mroute 192.168.1.1 255.255.255.255 10.1.1.6
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
PIM-SM: Rendezvous Point (RP)
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
PIM-SM: Rendezvous Point (RP)
I now know the
RP src IP for
192.168.0.1 234.1.1.1
10 IGP metric
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
PIM-SM: Shortest Path Tree Switch over
Multicast “Shared Tree” RP
Where traffic passes via the RP 192.168.0.1
10 IGP cost = 30 20
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
PIM-SM: Rendezvous Point Discovery
So how does the network know where the RP is ?
• Option 1: Static RP configuration
Configure ALL routers in the network with the IP address of the RP
ip pim rp-address 192.168.0.1
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
IGMPv3 – Joining a Group
Receiver 2
Eth0:10.1.1.2
I also
want 234.1.1.
1 from IGMP Membership Report
source IP Requested Group: 234.1.1.1
192.168.1.1 Group Source: 192.168.1.1
Source IP: 10.1.1.2
Receiver 1
Destination IP: 224.0.0.22
Eth0:10.1.1.1
I want
234.1.1.1
from source
IP 192.168.1.1
234.1.1.1 Source
First-hop router receives 192.168.1.1
IGMP Membership Report ALL IGMPv3 reports (no
Requested Group: 234.1.1.1 report suppression)
Group Source: 192.168.1.1
Source IP: 10.1.1.1
Destination IP: 224.0.0.22
Non-receiver
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
IGMPv3
Receiver 2
Eth0:10.1.1.2
I don’t
require this
stream any IGMP
IGMP Leave
Leave message
message
more Leave
Leave Group: 234.1.1.1
Group: 234.1.1.1
Source
Source IP:
IP: 10.1.1.2
10.1.1.2
Receiver 1 Destination
Destination IP:
IP: 224.0.0.2
224.0.0.1
Eth0:10.1.1.1 Router
E0:10.1.1.254
MC Stream
I still
need Does
234.1.1.1 anyone still
need group
234.1.1.1 ?
IGMP
IGMP Membership Report
Membership Report
IGMP Group
IGMP Membership
Group Membership
Message onthis
message on thissegment
segment Query message
Query message
Requested Group: 234.1.1.1 Membership Group: 234.1.1.1
Requested Group: 234.1.1.1
Source IP: 10.1.1.1 Source IP:
Membership 10.1.1.254
Group: 234.1.1.1
Destination Destination IP: 224.0.0.1
Source IP: IP: 224.0.0.2
10.1.1.1 Source IP: 10.1.1.254
Destination IP: 234.1.1.1 Destination IP: 234.1.1.1
Non-receiver
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
IGMPv3 – Changing a Group
Source
192.168.1.2
Receiver 1
Eth0:10.1.1.1 234.1.1.2
I now want
234.1.1.2
from source
IP 192.168.1.2
234.1.1.1 Source
192.168.1.1
IGMP Change State
INCLUDE: grp 234.1.1.2, src 192.168.1.2
EXCLUDE: grp 234.1.1.1 src 192.168.1.1
Non-receiver
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
IGMPv3 Source Discovery
Q: How does the receiver know the source address for each
group ?
A: The receiver app is pre-populated with this information.
GET CL-1234567.txt
Set Top Box
(STB)
234.1.1.1 192.168.1.1 STB
234.1.1.2 192.168.1.2 Management
234.1.1.3 192.168.1.2 Server
234.1.1.4 192.168.1.1
CL-1234567.txt
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 50
Advantages of IGMPv3
• Hosts can join one group and leave another in the same transaction.
IGMPv2 requires separate report/leave messages.
• Reduces the likelyhood of multicast group being spoofed by a rogue
source.
• Eliminates overlapping multicast addresses.
• First-hop router immediately knows the source address, so no need for
Rendezvous Point – can use PIM-SSM.
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 51
Router-Router Signalling: PIM-SSM
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
PIM-SSM: Operation
Source
192.168.1.2
I want
I want to to receive
receive Group
234.1.1.2 from
232.1.1.2 from 234.1.1.2
192.168.1.2
192.168.1.2
PIM “join 232.1.1.2”
message sent towards
192.168.1.2
IGMP report for group 10 20
232.1.1.2, source Group
Group
192.168.1.2 232.1.1.1
234.1.1.1
Source
I want to receive IGMP report for group 10 10 192.168.1.1
I234.1.1.1
want to receive
from 232.1.1.1, source PIM “join 232.1.1.1”
232.1.1.1
192.168.1.1from
192.168.1.1
192.168.1.1 message sent towards PIM “join 232.1.1.1”
192.168.1.1 message sent towards
192.168.1.1
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
PIM-SSM Advantages
• Enhanced security
• Spoofing of MC stream is more difficult
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
PIM-SSM Mapping
The ideal SSM architecture uses IGMPv3 for host-router signalling and
PIM-SSM for router-router signalling
But...IGMPv3 host support is patchy, whereas IGMPv2 is ubiquitous
Q: Is there a way to use PIM-SSM in the network when I
have hosts that only support IGMPv2 ?
A: Yes – its called PIM-SSM mapping
PIM-SSM mapping can be used as an interim measure until IGMPv3 is
supported on all hosts
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
PIM-SSM Static Mapping
Source
192.168.1.2
I want
I want to to receive
receive Group
234.1.1.2 from
232.1.1.2 from 234.1.1.2
192.168.1.2
192.168.1.2
PIM “join 232.1.1.2”
message sent towards
192.168.1.2
IGMP report for group 10 20
232.1.1.2 Group
Group
232.1.1.1
234.1.1.1
Source
I want to receive IGMP report for group 10 10 192.168.1.1
I234.1.1.1
want to receive
from 232.1.1.1
232.1.1.1
192.168.1.1from
192.168.1.1 PIM “join 232.1.1.1” PIM “join 232.1.1.1”
message sent towards message sent towards
Static ssm-map configured on 192.168.1.1 192.168.1.1
first-hop router
Group Source
232.1.1.1 192.168.1.1
232.1.1.2 192.168.1.2
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
PIM-SSM Static Mapping
Zone File: 1.1.232.ssm.our.net
Source
192.168.1.2 1 IN A 192.168.1.1
2 IN A 192.168.1.2
I want
I want to to receive
receive Group
234.1.1.2 from
232.1.1.2 from 234.1.1.2
192.168.1.2
192.168.1.2
PIM “join 232.1.1.2” DNS
message sent towards
192.168.1.2 192.168.10.1
IGMP report for group 10 20
232.1.1.2, source Group
Group
192.168.1.2 232.1.1.1
234.1.1.1
Source
I want to receive IGMP report for group 10 10 192.168.1.1
I234.1.1.1
want to receive
from 232.1.1.1, source
232.1.1.1
192.168.1.1from
192.168.1.1 PIM “join 232.1.1.1” PIM “join 232.1.1.1”
192.168.1.1
message sent towards message sent towards
192.168.1.1 192.168.1.1
Query DNS server 192.168.10.1 for group source
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
IPv4 vs. IPv6 Multicast
A Quick Qlimpse
IP Service IPv4 Solution IPv6 Solution
Address Range 32-Bit, Class D 128-Bit (112-Bit Group)
Protocol-Independent
Protocol-Independent
Routing All IGPs and BGPv4+
All IGPs and BGPv4+
with IPv6 Mcast SAFI
PIM-DM, PIM-SM:
Forwarding PIM-SM: ASM, SSM, BiDir
ASM, SSM, BiDir
Group Multicast Listener
IGMPv1, v2, v3
Management Discovery MLDv1, v2
Domain Control Boundary/Border Scope Identifier
MSDP Across
Interdomain Source Single RP Within Globally
Independent PIM
Discovery Shared Domains
Domains
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
Case Study – Multicast Deployment
Case Study - Background
• Company has 1 head office with 200 staff, 1 branch office with 10 staff and
occasional home users
• Management wants to deploy an in-house, always-on video channel that staff
may watch at any time for the latest product releases and Company news
• Important events will require all users to watch the channel at the same time
• The video bitrate is 2 Mbps
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
Case Study – Network Topology
Head Office Branch Office
192.168.3.2
100 Media 10
PCs Server PCs
2Mbps
Router A Router C
MAN/WAN
P P P
I 10Mbps
Switch A P P Router E Switch E
LAN
1Gbps
P P
P P P
I
Switch B Router B Router D
100 PCs
Home Office
xDSL
8Mbps
Internet 1 PC
I Router F
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
Case Study – Unicast Bandwidth requirement
Head Office Branch Office
192.168.3.2
100 Media 10
PCs Server PCs
20
422 Mbps
200 Router A Mbps
Mbps Router C
MAN/WAN
P P P
I 10Mbps
Switch A P P Router E Switch E
LAN
1Gbps
200
Mbps P P
P P P
I
Switch B Router B Router D
100 PCs
Home Office
xDSL
8Mbps
Internet 1 PC
211 Concurrent
I 2 Mbps
Router F
Streams = 422Mbps
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 62
Case Study – Multicast Bandwidth requirement
Head Office Branch Office
192.168.3.2
100 Media 10
PCs Server PCs
2
2
Mbps
2 Router A Mbps
Router C
Mbps MAN/WAN
P P P
I 10Mbps
Switch A P P Router E Switch E
LAN
1Gbps
2 P
P
Mbps
P P P
I
Switch B Router B Router D
100 PCs
Home Office
xDSL
8Mbps
Internet 1 PC
I Router F
2 Mbps
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 63
Case Study – Network Support for MC
• Cisco IOS provides broad platform support for PIM (all variants) and IGMPv1/2/3
• Check with WAN provider for MC support
Dark fibre, EoSDH, EoMPLS, Frame relay, ATM, SDH/SONET, leased-line services –
usually no issues
Managed Ethernet, L3VPN, VPLS – check with provider.
SP network generally needs to be configured for MC support
• No native support for multicast across the Internet
• No native IPSec support for multicast
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
Case Study – Design Options
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
Case Study – ASM
Step 1: Configure IGMP snooping on access switches
• IGMP snooping enabled by default on Cisco devices
• Configure
“ip igmp snooping vlan <x> immediate-leave” for vlans with directly
attached hosts only.
Switch_A#sh ip igmp snooping vlan 10
Vlan 10:
--------
IGMP snooping : Enabled
IGMPv2 immediate leave : Enabled
Multicast router learning mode : pim-dvmrp
CGMP interoperability mode : IGMP_ONLY
Robustness variable : 2
Last member query count : 2
Last member query interval : 1000
Switch_A#
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 66
Case Study – ASM
Step 2: Configure all routers for multicast
• Globally enable multicast routing:
Router_A(config)#ip multicast-routing
Router_A(config)#do show ip multicast global
Multicast Routing: enabled
Multicast Multipath: disabled
Multicast Route limit: No limit
Multicast Triggered RPF check: enabled
Multicast Fallback group mode: Sparse
Router_A(config)#
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 67
Case Study – ASM
Step 3: Configure all internal links for PIM-SM, IGMPv2
Head Office Branch Office
192.168.3.2
100 Media 10
PCs Server PCs
Router A I P Router C
P MAN/WAN I
PI P PP P P P
I 10Mbps
PP P
P Router E Switch E
Switch A
LAN
1Gbps
P PP
P P PIM not
PI P
P P P configured on
I
Switch B Router B
external
100 PCs interfaces
Router D
Home Office
xDSL
PI
8Mbps
I IGMPv2 P PIM Sparse Mode Internet 1 PC
I Router F
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 68
Case Study – ASM
Step 4: Verify PIM neighbours
Router_A#sh ip pim neighbor
PIM Neighbor Table
Neighbor Interface Uptime/Expires Ver DR
Address Prio/Mode
10.0.0.5 FastEthernet0/3 1d02h/00:01:17 v2 1 / DR S
10.0.0.3 FastEthernet0/2 1d01h/00:01:31 v2 1 / DR
Router_A#
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
Case Study – ASM
Step 5: Select RP router
• RP should be in a central location between sender and receivers.
• CPU grunt not critical as RP processing overhead is low.
• Select a router that has high network availability.
• Ensure the RP has a /32 loopback address as the source.
• Recommended to assign loopback address dedicated for RP use only (not used
for router ID etc).
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Case Study – ASM
Step 5: Select RP router
Head Office Branch Office
192.168.3.2
100 Media
Server 10
PCs PCs
234.1.1.1
Router A Router C
MAN/WAN
10Mbps
Switch A P Router E Switch E
LAN
1Gbps
P
Rendezvous
P
P P Point
Switch B Router B
Lo4: 4.4.4.4
100 PCs
Router D
Home Office
xDSL
8Mbps
Internet 1 PC
I Router F
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
Case Study – ASM
Step 6: Configure static RP on all routers (including the RP)
ip access-list standard MC_Group_1
permit 234.1.1.0 0.0.0.255
Router_C#conf t
Enter configuration commands, one per line. End with CNTL/Z.
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 72
Case Study – ASM
Step 8: Enable multicast over non-multicast networks
• Use GRE, L2TPv3 to tunnel MC over non-MC networks
• Need a static mroute for both the RP address and the MC source address for
RPF check to pass.
• http://www.cisco.com/c/en/us/support/docs/ip/ip-multicast/43584-mcast-over-
gre.html
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 73
Case Study – ASM
Step 8: Enable multicast over non-multicast networks
192.168.3.2 Router_F
!
Media interface Tunnel1
Server
description GRE tunnel to Router_D
ip address 10.0.0.14 255.255.255.252
ip pim sparse-mode
Router C tunnel source 192.0.2.2
tunnel destination 10.1.1.4
end
Router_D RP Address
! ip mroute 4.4.4.4 255.255.255.255 Tunnel1
interface Tunnel1 Lo4: 4.4.4.4 Router D
Lo0:10.1.1.4
ip mroute 192.168.3.2 255.255.255.255 Tunnel1
description GRE tunnel to Router_F P
ip address 10.0.0.13 255.255.255.252
ip pim sparse-mode P
tunnel source 10.1.1.4 192.0.2.1 10.0.0.13
tunnel destination 192.0.2.2
Router D
end Home Office
10.0.0.14
Internet GRE
1 PC
192.0.2.2
Router F
I BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 74
Case Study – ASM – IGMP Verification
Head Office
192.168.3.2
Media
Server
192.168.1.2 IGMP
Report 234.1.1.1 @ 2Mbps
Router A Router C
Fa0/2 Fa0/6
10.0.0.2 10.0.0.3
Fa0/12
192.168.1.1 Fa0/3
10.0.0.4
Fa0/2
Router_A#show
Router_A#sh ip igmp
ip igmp membership
membership 10.0.0.5
Flags: A - aggregate, T - tracked
Channel/Group-Flags:
L - Local, S - static, V - virtual, R - Reported through v3
I /- -v3lite,
Filtering
U -entry
Urd, (Exclude mode (S,G),
M - SSM (S,G) channel Include mode (*,G))
Router B Router D
Lo4: 4.4.4.4
1,2,3 - The version of IGMP the group is in
Channel/Group
<snip> Reporter Uptime Exp. Flags Interface
/*,234.1.1.1
Channel/Group 192.168.1.2
Reporter 00:43:29
Uptime stop 3MA
Exp. Flags Fa0/12
Interface
192.168.3.2,234.1.1.1
*,234.1.1.1 192.168.1.2 00:43:29 02:03 RA
00:00:12 02:47 2A Fa0/12
Fa0/12
Router_A#
Router_A#
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 75
Case Study – ASM – Mroute Verification
Head Office
192.168.3.2
Media
Router_A#show ip mroute active Server
Active IP Multicast Sources - sending >= 4 kbps 192.168.1.2 IGMP
Report 234.1.1.1 @ 2Mbps
Group: 234.1.1.1, (Stream_1) Router A
Fa0/2 Fa0/6 Router C
Source: 192.168.3.2 (Media_Server) 10.0.0.2 10.0.0.3
Rate: 245 pps/1967 kbps(1sec), 1968 kbps(last 20 secs), Fa0/12
1966 kbps(life avg) 192.168.1.1 Fa0/3
Router_A# 10.0.0.4
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
Case Study – Design Options
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 77
Case Study – SSM
Head Office Branch Office
192.168.3.2
100 Media 10
PCs Server PCs
234.1.1.1
Router A Router C
MAN/WAN
10Mbps
Switch A P Router E Switch E
LAN
1Gbps
P P
P P
Switch B Router B
100 PCs
Router D
Home Office
xDSL
8Mbps
Internet 1 PC
I Router F
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 78
Case Study – SSM
Step 1: Configure all routers for SSM
Globally enable multicast routing:
Router_A(config)#ip multicast-routing
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 79
Case Study – SSM
Step 2: Configure IGMP
• IGMPv3 snooping enabled by default on Cisco devices
• Need to explicitly configure IGMPv3 on router interface that connects to LAN
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 80
Case Study – ASM
Step 3: Configure all internal links for PIM-SM
Head Office Branch Office
192.168.3.2
100 Media 10
PCs Server PCs
Router A I P Router C
P MAN/WAN I
PI P PP P P P
I 10Mbps
PP P
P Router E Switch E
Switch A
LAN
1Gbps
P PP
P P PIM not
PI P
P P P configured on
I
Switch B Router B
external
100 PCs interfaces
Router D
Home Office
xDSL
PI
8Mbps
I IGMPv3 P PIM Sparse Mode Internet 1 PC
I Router F
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 81
Case Study – ASM
Step 4: Enable multicast over non-multicast networks
192.168.3.2
Router_F
Media !
Server interface Tunnel1
description GRE tunnel to Router_D
ip address 10.0.0.14 255.255.255.252
Router C ip pim sparse-mode
tunnel source 192.0.2.2
tunnel destination 10.1.1.4
end
Internet GRE
1 PC
192.0.2.2
Router F
I BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 82
Case Study – SSM – IGMP Verification
Head Office
192.168.3.2
Media
Server
192.168.1.2 IGMP
Report 234.1.1.1
Router A Router C
Fa0/2 Fa0/6
10.0.0.2 10.0.0.3
Fa0/12
192.168.1.1 Fa0/3
10.0.0.4
Fa0/2
Router_A#show ip igmp membership 10.0.0.5
Channel/Group-Flags:
/ - Filtering entry (Exclude mode (S,G), Include mode (*,G)) Router D
Router B
Lo4: 4.4.4.4
Channel/Group Reporter Uptime Exp. Flags Interface
/*,234.1.1.1 192.168.1.2 00:43:29 stop 3MA Fa0/12
192.168.3.2,234.1.1.1 00:43:29 02:03 RA Fa0/12
Router_A#
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 83
Case Study – SSM – Mroute Verification
Head Office
192.168.3.2
Router_A#show ip mroute
Fa0/2
IP Multicast Routing Table
10.0.0.5
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
U - URD, I - Received Source Specific Host Report,
Router B Router D
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(192.168.3.2, 234.1.1.1), 00:59:25/00:02:51, flags: sTI Note there is only (S,G) entry
Incoming interface: FastEthernet0/2, RPF nbr 10.0.0.3 and no (*,G) as no RP is present
Outgoing interface list:
FastEthernet0/12, Forward/Sparse, 00:59:01/00:02:05
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 84
Case Study – Design Options
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 85
Case Study – IGMPv2 + PIM-SSM
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 86
Case Study – IGMPv2 + PIM-SSM
Step 4: Configure all routers for SSM
• Configure PIM-SSM ranges:
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 87
Case Study – IGMPv2 + PIM-SSM
Step 5a: Configure static IGMP SSM mapping
• Globally enable IGMP mapping
Router_A(config)#ip igmp ssm-map enable
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 88
Case Study – IGMPv2 + PIM-SSM
Step 5b: Configure dynamic IGMP SSM mapping
• Globally enable IGMP mapping
Router_A(config)#ip igmp ssm-map enable
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 89
Case Study – IGMPv2 + PIM-SSM
Router A I P Router C
P M MAN/WAN M I
PI P PP P P P
I 10Mbps
PP P
P Router E Switch E
Switch A
LAN
1Gbps
P PP
P P
P
I I M PP P P
Switch B Router B
100 PCs
Router D
Home Office
I IGMPv2 P PIM Sparse Mode xDSL
PI
8Mbps
M IGMP SSM Mapping Internet
M 1 PC
I Router F
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 90
Case Study – SSM Mapping Verification
Step 5: Verify IGMP mapping
• Static mapping
Router_A#sh ip igmp ssm-mapping 234.1.1.1
Group address: 234.1.1.1
Database : Static
Source list : 192.168.3.2
Router_A#
• Dynamic mapping
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 91
Case Study – SSM Mapping – Verification
Head Office
192.168.3.2
Router_A#show ip mroute
Fa0/2
IP Multicast Routing Table
10.0.0.5
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
U - URD, I - Received Source Specific Host Report,
Router B Router D
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
Troubleshooting
93
Mimicking a Multicast Source
MC_Source#ping
• Use a ping flood or Protocol [ip]:
Target IP address: 234.1.1.1
traffic generator to Repeat count [1]: 100000000000
fake it.... Datagram size [100]: 1300
Timeout in seconds [2]: 0
Extended commands [n]: y
Interface [All]: FastEthernet1/0/24
Source address: 192.168.3.2
Type escape sequence to abort.
Sending 1215752192, 1300-byte ICMP Echos to 234.1.1.1,
timeout is 0 seconds:
Packet sent with a source address of 192.168.3.2
...................................................
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 94
Mimicking a Multicast Receiver
or
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
Mimicking a Multicast Receiver
234.1.1.1 @ 2Mbps
Router A Router C
PIM JOIN
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 96
Common Causes of Multicast Problems
• Source problem
Is the source sending the MC stream properly ?
• Receiver issue
Is the client asking to receive the stream ?
• Underlying network issue
Is the underlying network OK ?
• MC network misconfiguration
Is the network configured correctly ?
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 97
Source Not Sending Stream Correctly
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 98
Source – Low TTL value
• Incorrect source TTL can cause MC stream to be dropped
Router_A#show ip mroute
IP Multicast Routing Table
<snip>
(192.168.3.2, 234.1.1.1), 1d18h/00:02:35, flags: sTI
Incoming interface: FastEthernet0/2, RPF nbr 10.0.0.3
Outgoing interface list:
FastEthernet0/12, Forward/Sparse, 1d18h/00:02:35
Media
Router_A#show ip mroute active Server
Stream stops at first-hop
Active IP Multicast Sources - sending >= 4 kbps 192.168.3.2 router (TTL=1) or part-way
Router_A# into the network (TTL >1)
234.1.1.1
@ 2Mbps
Router A Router C
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 99
Receiver Issue
• If not seeing reports come in, then use packet sniffer on receiver.
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 100
Multicast Network Misconfiguration
• Verify
All multicast links have PIM sparse mode configure
RP is configured / learned on all routers (including
the RP itself)
Router_F#sh ip mroute
IP Multicast Routing Table Missing RP configuration
<snip>
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 101
Multicast Network Misconfiguration
• Verify
• Network and hosts are running same IGMP version
• Verify RPF check passes. ‘sh ip mroute count | inc RPF failed|Other
Router_F#sh ip mroute
IP Multicast Routing Table
<snip>
(*, 234.1.1.1), 00:15:01/stopped, RP 4.4.4.4, flags: SJC
Incoming interface: Tunnel1, RPF nbr 10.0.0.13, Mroute
Outgoing interface list:
FastEthernet0/1, Forward/Sparse, 00:15:01/00:01:19
RPF Check OK
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 102
Multicast Network Misconfiguration
• Verify
LHR has igmpv3 enabled on the link connecting to receiver if that SSM is used
SSM range / SSM mapping is configured properly on LHR
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 103
Underlying Network Issue
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 104
Underlying Network Issue
• Verify network reachability from Source to FHR, LHR to RP, RP to
FHR, LHR to FHR
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 105
Summary – What have we learnt?
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 106
Where to go from here.....
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 107
Additional Resources
• Cisco Live Virtual Breakout Sessions
IPv6 from Introduction to Intermediate in 90 Minutes [BRKRST-2116]
Building Data Centre Networks with VXLAN BGP-EVPN [BRKDCN-3378]
CCIE R&S - Multicast Technologies Lab [LABCCIE-2016]
Implementing Multicast Routing in Enterprise Network [LABIPM-1011]
• CCO documentation: http://www.cisco.com/go/multicast
BRKIPM-1261 © 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public 108
Q&A
Complete Your Online
Session Evaluation
• Give us your feedback and
receive a Cisco Live 2018 Cap
by completing the overall event
evaluation and 5 session
evaluations.
• All evaluations can be completed
via the Cisco Live Mobile App.
Don’t forget: Cisco Live sessions will be
available for viewing on demand after the
event at www.CiscoLive.com/Global.
© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
Thank you