Tema 7. Multicast-I
Tema 7. Multicast-I
Tema 7. Multicast-I
Multicast IP Routing
224.0.0.0 to 239.255.255.255
Binary:
00000001.00000000.01011110.0xxxxxxx.xxxxxxxx.xxxxxxxx
Example
Host: “If I join multicast group 224.10.8.5, I will listen for the MAC address?
IP: 11100000.00001010.00001000.00000101
00000001.00000000.01011110.00001010.00001000.00000101
01-00-5E-0A-08-05
Multicast MAC Address Structure
Convert 224.0.9.45 to a multicast MAC address.
224 | 0 | 9 | 45
01-00-5E-00-09-2D
Multicast MAC Address Structure
Convert 224.192.255.30 to a multicast MAC address.
01-00-5E-40-FF-1E
How are Multicast Flows Identified
Every Multicast Flow can be identified by two components:
• Source IP Address
• The address of the Sender
• Multicast Group Address
• 224/4 (Class D) IP Address
SOLUTION
• Cisco Group Management Protocol (CGMP): Simple, proprietary,
routers and switches
• IGMP snooping: Complex, standardized, proprietary
implementations; switches only
IGMP Snooping
• IGMP Snooping is a Multicast mechanism that runs on Layer 2
switch.
• IGMP Snooping checks the IGMP join, leave messages and
record the information about user about the group that it
joins or leaves.
IGMP Snooping Operation
1
In the following graph we have a
multicast enabled router, a switch and
three host devices. The switch has a
CPU and a CAM table (mac address
table) which is connected to an internal
interface that I will call “INT”. It does
have support for IGMP snooping
though. Let’s see what happens when
we enable IGMP snooping on this
switch:
2
Then one of the hosts (H1) sends a
membership report for multicast
group 239.1.1.1 that it wants to join.
Then switch has no idea where to
forward this to so the first time it will
flood it on all interfaces, including the
internal interface to the CPU.
IGMP Snooping Operation
Once IGMP snooping is enabled, the 3
switch will detect multicast enabled routers
and it does so by listening to the following
messages:
• IGMP General Query (0100.5e00.0001)
• OSPF (0100.5e00.0005 and
0100.5e00.0006)
• PIM version 1 and HSRP
(0100.5e00.0006)
• PIM version 2 (0100.5e00.000d)
• DVMRP (0100.5e00.0004)
When the switch detects a multicast enabled router then it will add the
corresponding entry in the CAM table. From now on, all multicast traffic
that has destination MAC address 0100.5e01.0101 will only be forwarded
on interface Gi0/1, Gi0/4 and the internal interface to the CPU.
Multicast Routing
• 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
Multicast Distribution Trees – Source Tree (S,G)
1. The multicast host sender sends the multicast stream out to the
multicast client (receiver)
2. R1 sends the packet out of both of its interfaces
3. R2 and R3 then both send the traffic out of their interfaces to R4
4. R4 then receives two copies of the multicast packet
5. R4 then sends on both copies to the receiver.
RPF (Reverse Path Forwarding)
When the router receives the multicast packet, RPF will check the
routing table and check which egress interface the router would use
if it were to send traffic back to the multicast sender. If the interface
matches the interface the multicast packet has just been received
on, the packet is accepted, otherwise, it is dropped. Below shows
an example. Because R4's routing table states that the multicast
sender is located via gi0/1 traffic on gi0/2 is dropped.
Multicast Routing Protocols
Sparse Mode: Sparse mode multicast routing protocols only forward
the multicast traffic when another router requests it. It’s the complete
opposite of dense mode:
To fix this issue, sparse mode uses a special router called the RP
(Rendezvous Point). All multicast traffic is forwarded to the RP and
when other routers want to receive it, they’ll have to find their way
towards the RP.
Rendezvous Point Discovery
So how does the network know where the RP is?
• Option 3: Anycast RP
Protocol-Independent Multicast (PIM)
• Protocol Independent Multicast (PIM) is a special signaling protocol
that uses existing the unicast routing table to build distribution trees and
to perform Reverse Path Forwarding (RPF) checks.
• 3 main classifications of PIM
• PIM Dense Mode (PIM-DM) (RFC 3973 – 01/2005)
• PIM Sparse Mode (PIM-SM) (RFC 4601 – 08/2006)
• Bidirectional PIM (BIDIR-PIM) (RFC 5015 – 10/2007)
Router-Router Signalling:PIM-SM
• Each PIM router forms neighbour relationship with adjacent PIM routers
using PIM “hello” messages every 30 seconds.