Professional Documents
Culture Documents
BSCI30S07 IP Multicast
BSCI30S07 IP Multicast
Explaining Multicast
Why Multicast?
Used when sending same data to multiple receivers
Better bandwidth utilization
Less host/router processing
Used when addresses of receivers unknown
Used when simultaneous delivery for a group of receivers is
required (simulcast)
Multicast Advantages
Enhanced efficiency: Controls network traffic and reduces server
and CPU loads
Multicast Disadvantages
Multicast is UDP-based.
Best-effort delivery: Drops are to be expected. Multicast
applications must not expect reliable delivery of data and should be
designed accordingly. Reliable multicast applications will address
this issue.
No congestion avoidance: The lack of TCP windowing and slowstart mechanisms can result in network congestion. If possible,
multicast applications should attempt to detect and avoid
congestion conditions.
Duplicates: Some multicast protocol mechanisms result in the
occasional generation of duplicate packets. Multicast applications
should be designed to expect occasional duplicate packets.
Out-of-sequence delivery: Network topology changes affect the
order of deliverythe application must properly address the issue.
IP Multicast Applications
Live TV and Radio Broadcast
to the Desktop
Corporate Broadcasts
Training
Directory services
Web page, e-mail
Session Announcement Protocol
Summary
IP multicast is a much more efficient means of delivering
content where a single sender needs to deliver the content to
multiple receivers. This task may be achieved through the
use of multicast groups.
IP multicasts are designated by the use of a specific Class D
IP address range. This is achieved through global scope
addresses, which are assigned dynamically, and
administratively scoped, which are assigned locally and are
reserved for use inside private domains.
Implementing Multicast
IGMPv2
RFC 2236
Group-specific query
Router sends group-specific query to make sure that there
are no members present before ceasing to forward data for
the group for that subnet.
IGMPv2Joining a Group
IGMPv2Leaving a Group
IGMPv3Joining a Group
IGMPv3Maintaining State
Summary
IGMPv2 is a protocol used by multicast clients to join a
multicast group.
IGMPv3 allows a receiver to specify a source.
If controls such as CGMP and IGMP snooping are not added
at the Ethernet switching level, all multicast frames are
flooded.
CGMP is a Cisco proprietary protocol used to implement
multicast efficiently.
IGMP snooping is a standard protocol that has a function
similar to CGMP.
Implementing Multicast
Shortest-Path Trees
Shortest-Path or Source Distribution Tree
(*,G) entries
For any (*) source sending to this group
Traffic forwarded via a meeting point for this group
Multicast Forwarding
Multicast routing operation is the opposite of unicast
routing.
Unicast routing is concerned with where the packet is going.
Multicast routing is concerned with where the packet comes
from.
Summary
IP multicast requires multiple protocols and processes for
proper packet forwarding.
Source and shared trees may be used to define multicast
packet flows to group members.
Multicast routing utilizes the distribution trees for proper
packet forwarding.
PIM is the routing protocol for multicast.
PIM-DM uses flood and prune.
PIM-SM uses less device and bandwidth resources and is
typically chosen to implement multicast. PIM sparse-dense
mode is the recommended methodology for maximum
efficiency in IP multicast.
Implementing Multicast
show ip mroute
NA-1#sh ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry,
X - Proxy Join Timer Running, A - Advertised via MSDP, U - URD,
I - Received Source Specific Host Report
Outgoing interface flags: H - Hardware switched
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(*, 224.1.1.1), 00:07:54/00:02:59, RP 10.127.0.7, flags: S
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Serial1/3, Forward/Sparse, 00:07:54/00:02:32
(172.16.8.1, 224.1.1.1), 00:01:29/00:02:08, flags: TA
Incoming interface: Serial1/4, RPF nbr 10.139.16.130
Outgoing interface list:
Serial1/3, Forward/Sparse, 00:00:57/00:02:02
Serial0/0
Serial1/2
Serial1/3
Ver/
Mode
v2/S
v2/S
v2/S
Nbr
Count
1
1
1
Query
Intvl
30
30
30
DR
Prior
1
1
1
DR
0.0.0.0
0.0.0.0
0.0.0.0
Uptime/Expires
Ver
00:01:46/00:01:28 v2
00:01:05/00:01:40 v2
00:01:56/00:01:18 v2
DR
Priority
None
1
(BD)
1
(BD)
Checking RP Information
router(config)#
show ip pim rp
P4-2#show ip pim rp
Group: 224.1.2.3, RP: 10.127.0.7, uptime 00:00:20, expires never
P4-2#show ip pim rp mapping
PIM Group-to-RP Mappings
Group(s) 224.0.1.39/32
RP 10.127.0.7 (NA-1), v1
Info source: local, via Auto-RP
Uptime: 00:00:21, expires: never
Group(s) 224.0.1.40/32
RP 10.127.0.7 (NA-1), v1
Info source: local, via Auto-RP
Uptime: 00:00:21, expires: never
Group(s): 224.0.0.0/4, Static
RP: 10.127.0.7 (NA-1)
show ip rpf
(towards the RP)
NA-2#show ip rpf 10.127.0.7
RPF information for NA-1 (10.127.0.7)
RPF interface: Serial1/3
RPF neighbor: ? (10.127.0.241)
RPF route/mask: 10.127.0.7/32
RPF type: unicast (ospf 1)
RPF recursion count: 0
Doing distance-preferred lookups across tables
(towards the source)
NA-2#show ip rpf 10.139.17.126
RPF information for ? (10.139.17.126)
RPF interface: Serial0/0
RPF neighbor: ? (10.139.16.134)
RPF route/mask: 10.139.17.0/25
RPF type: unicast (ospf 1)
RPF recursion count: 0
Doing distance-preferred lookups across tables
Expires
00:01:47
never
Last Reporter
1.1.1.12
1.1.1.17
Receive:
General Queries: 1
Group Specific Queries: 0
Reports: 2
Leaves: 0
Total Valid pkts: 4
Total Invalid pkts: 0
Other pkts: 1
MAC-Based General Queries: 0
Failures to add GDA to EARL: 0
Topology Notifications: 0
Summary
Configuring a simple multicast network requires a global
multicast command, a multicast command for each interface,
and the specification of an RP discovery method.
Effective methods for verifying a multicast network include
checking the multicast routing table and checking PIM
neighbors.
Module Summary
IP multicast supports numerous critical applications within
an enterprise.
Issues related to multicast frame flooding at the Ethernet
level are resolved with IGMP snooping and CGMP.
The IP multicast routing protocols are PIM-DM, PIM-SM, and
PIM sparse-dense mode.
PIM is implemented at the interface level.