Академический Документы
Профессиональный Документы
Культура Документы
Explaining Multicast
Why Multicast?
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 “slow-start”
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 delivery—the application must properly address the issue.
Types of Multicast Applications
ng
Training n c i
re
Wh fe nd
iteb c on a
ard o eo -D em
/Co Vid o - on
llab V ide
ora
Real-Time Data Delivery—Financial tion
IP Multicast Basic Addressing
IP group addresses:
• Class D address (high-order three bits are set)
• Range from 224.0.0.0 through 239.255.255.255
Well-known addresses assigned by IANA
• Reserved use: 224.0.0.0 through 224.0.0.255
– 224.0.0.1 (all multicast systems on subnet)
– 224.0.0.2 (all routers on subnet)
– 224.0.0.4 (all DVMRP routers)
– 224.0.0.13 (all PIMv2 routers)
– 224.0.0.5, 224.0.0.6, 224.0.0.9, and 224.0.0.10 used by
unicast routing protocols
IP Multicast Basic Addressing (Cont.)
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.
• Leave group message
– Host sends leave message if it leaves the group and is the
last member (reduces leave latency in comparison to v1).
IGMPv2—Joining a Group
IGMPv2—Leaving a Group
Solution 1: CGMP
• Runs on switches and routers.
• CGMP packets sent by routers to switches at the CGMP
multicast MAC address
– 0100.0cdd.dddd
• CGMP packet contains:
– Type field: join or leave
– MAC address of the IGMP client
– Multicast MAC address of the group
• Switch uses CGMP packet information to add or remove
an entry for a particular multicast MAC address.
Layer 2 Multicast Frame Switching
IGMP Snooping
(S,G) entries
• For this particular source sending to this particular group
• Traffic forwarded via the shortest path from the source
(*,G) entries
• For any (*) source sending to this group
• Traffic forwarded via a meeting point for this group
Multicast Forwarding
Initial Flooding
PIM-DM Flood and Prune (Cont.)
PIM-DM Flood and Prune (Cont.)
router(config)#
ip multicast-routing
router(config-if)#
ip pim { sparse-mode | sparse-dense-mode }
router#
show ip mroute [group-address] [summary] [count] [active kbps]
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
router#
show ip pim interface [type number] [count]
router#
show ip pim neighbor [type number]
router#
mrinfo [hosthanme | address]
router(config)#
show ip pim rp [group-name | group-address | mapping]
• Displays active RPs that are cached with associated multicast
routing entries
– Mapping—displays all group-to-RP mappings that the router
is aware of
router(config)#
show ip rpf {address | name }
• Displays how IP multicast routing does Reverse Path
Forwarding (RPF)
– Address—IP address of a source of an RP
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
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
router#
show ip igmp interface [type number]
router#
show ip igmp groups [group-address | type number]
switch>
show multicast group [igmp] [mac_addr] [vlan_id]
• Displays information about multicast groups.
• If igmp keyword is used, only IGMP-learned information is
shown.
switch>
show multicast router [igmp] [mod_num/port_num] [vlan_id]
• Displays information on dynamically learned and manually
configured multicast router ports.
• If igmp keyword is used, only IGMP-learned information is
shown.
Verifying IGMP Snooping—Example
Verifying IGMP Snooping—Example (Cont.)