Multicast traffic is typically sent by one source and received by a group of recipients that migh be spread throughout a network and that might change over time. A typical example of multicast traffic is video stream.
Types of packets:
– Unicast: Packets that are sent from one source address to a single destination host address.
Unicasts are forwarded by a router or Layer 3 switch by finding the destination IP address in its routing table. A Layer 2 switch relies on the destinationś MAC address. Unicast forwarding is turned on by default, and is the type of routing familiar to you already.
– Broadcast: Packets sent to a broadcast destination address.
Broadcasts are one way to comunicate the exact same information to a group. Broadcasts are single transmissions that are received and acted upon by all devices.Is useful when a destination address is unknown.
Ehernet broadcast are sent to the reserved MAC address FFFF.FFFF.FFFF. Layer 2 switches flood broadcasts out all ports in the same VLAN. IP broadcast use the reserved destination IP 255.255.255.255. Routers do not forward broadcasts by default.
– Multicast: Packets sent to a special group-based destination address.
Multicast addresses are “group” addresses. An IP device joins a group by recognizing group IP addresses and reprogramming its network interface card(NIC) to cop traffic destined for the group MAC. Because a multicast goes to a different MAC, some hosts will pay attention to it and others will ignore it. For example, EIGRP uses 22.214.171.124 and corresponding MAC 0100.5E00.000A Routers pay attention to this traffic, but your PC can safaly ignore it.
Multicast traffic is generally unidirectional and sent in a best-effort connectionless format. UDP(connectionless) is commonly used, whereas TCP(connection-oriented) is not. By default, Layer 2 switches flood Ethernet multicast to all ports on the destination VLAN.
End systems and intermediate devices must have a way to distinghish multicast traffic from unicasts or broadcasts.
At Layer 3, this is done by reserving class D IP addresses(126.96.36.199 through 188.8.131.52) for multicasting. Network devices can quickly distinguish multicast IP addresses by looking at the first four bits, which are always 1110. Ethernet devices similarly have a range of addresses set aside for multicast. The low-oder bit in the first byte of a MAC address is a unicast/multicast bit, and setting it indicates the frame is a multicast. Beyond this single bit, IP multicast are mapped to a specific range of MAC addresses to aid hosts in discriminating between multicasts.
Multicast IP Addressing
In addition to the Class D multicast address space, some IP multicast addresses have been reserved for particular uses, such as the following:
* Link-local addresses(184.108.40.206/24) – Used on a local segment (TTL=1) only. Routers do not forward these packets because of TTL. These are known as fixed-group addresses because they are well-known and predefined. Examples:
Address —————————————- Destination
220.127.116.11 ————————————– All hosts
18.104.22.168 ————————————– All OSPF routers
22.214.171.124 ————————————– All OSPF DRs
126.96.36.199 ————————————– All RIPv2 routers
188.8.131.52 ———————————— All EIGRP routers
* Source-specific multicast(184.108.40.206/8) – An extension of multicasting wherein hosts only receive traffic from a particular server instead of from any server using a multicast channel.
* GLOP (220.127.116.11/8) – Allocates 256 multicast IP addresses to each registered autonomous system (AS). The 16-bit AS number is used for the middle-two octets, so that AS 1000 hast 18.104.22.168/24.
* Administratively scoped addresses (22.214.171.124/8) – This space can be used in private multicast domains, much like the private IP address ranges from RFC 1918. These addresses are not supposed to be routed between domains; this way, they can be reused.
Within the administratively scoped addresses, 126.96.36.199/14 is reserved for site-local multicast and the rest of 188.8.131.52/10 is reserved for organization-local scope.