Clase 7. Multticast-IPv4
Clase 7. Multticast-IPv4
Best case:
known unicasts
Worst case:
unknown unicasts
With multicast routing, things are not that simple, the destination is a
multicast group address and the multicast packets have to be
forwarded to multiple receivers throughout the network.
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
IGMP
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 thesource.
• Trees are built via connection requests (Joins) “sent” toward
thesource.
• 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 topologychanges.
• Only when a tree is completely built from receiver backwards to
the source can source traffic flow down the tree to thereceivers.
• Multicast routing use separate routing table -mroute
Source Tree
Dense Mode: Dense mode multicast routing protocols are used for
networks where most subnets in your network should receive the
multicast traffic. When a router receives the multicast traffic, it will flood it
on all of its interfaces except the interface where it received the multicast
traffic on.
Multicast Routing Protocols
Above we see R1 that receives the multicast traffic from our video server. It
floods this multicast traffic to R2 and R3, but these two routers don’t have
any interest in the multicast traffic. They will send a prune message to
signal R1 that it should no longer forward the multicast traffic.
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.
Multicast Routing Protocols
When using sparse mode, all routers need to know the IP address of 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
• Used by a router to notify an upstream router that it wishes to receive (or
stop receiving) multicast traffic for a given group(G).
• 3 main classifications of PIM
• Any Source Multicast (asm-pim) –3“submodes”
• Dense, sparse, sparse-dense
• Source-Specific Multicast(pim-ssm)
• Bidirectional(pim-bidir)
Router-Router Signalling:PIM-SM
• Each PIM router forms neighbour relationship with adjacent PIM routers
using PIM “hello” messages every 30 seconds.