Traffic Types: Unicast, Broadcast, Multicast, Anycast
Unicast: one sender to one specific receiver. Source and destination are individual IP and MAC addresses. The most common traffic type — HTTP, SSH, most TCP sessions. Switches forward unicast frames only to the port where the destination MAC is known, or flood if unknown.
Broadcast: one sender to all receivers on a network segment. IPv4 limited broadcast: 255.255.255.255 — never forwarded by routers. Directed broadcast: 192.168.1.255 (all hosts in the 192.168.1.0/24 subnet) — may or may not be forwarded depending on router configuration. Ethernet broadcast MAC: FF:FF:FF:FF:FF:FF. DHCP Discover and ARP requests use broadcasts.
Multicast: one sender to a specific group of receivers who have subscribed to the group. IPv4 multicast addresses: 224.0.0.0–239.255.255.255 (Class D). Common multicast addresses: 224.0.0.1 (all hosts), 224.0.0.2 (all routers), 224.0.0.5 (all OSPF routers), 224.0.0.9 (all RIP routers). MAC address: 01:00:5E:xx:xx:xx where the last 23 bits map from the IP multicast address.
Anycast: one sender to the nearest (topologically closest) receiver among a group that shares the same IP address. Used heavily in IPv6 and CDN/DNS infrastructure. When a client sends to an anycast address, routing delivers the packet to whichever anycast server is closest by routing metric.
Multicast Protocols and Management
IGMP (Internet Group Management Protocol): allows hosts to join and leave multicast groups. Switches use IGMP snooping to track which ports have hosts that are members of each multicast group — forwards multicast traffic only to those ports instead of flooding all ports. Without IGMP snooping, multicast is treated like broadcast at Layer 2.
PIM (Protocol Independent Multicast): routing protocol that builds the multicast distribution tree in routed networks. PIM Dense Mode (PIM-DM): assumes all routers want traffic, then prunes. PIM Sparse Mode (PIM-SM): uses a Rendezvous Point (RP) that manages group membership — preferred for large networks.
Multicast addresses reserved for link-local use (224.0.0.0/24): routers do not forward these beyond the local segment. OSPF (224.0.0.5/6), RIP (224.0.0.9), EIGRP (224.0.0.10), and VRRP (224.0.0.18) all use link-local multicast.
Broadcast Domains and Segmentation
Broadcast domain: the set of devices that receive a given broadcast. Routers separate broadcast domains — broadcasts are not forwarded across router interfaces. Switches and hubs do NOT separate broadcast domains (all ports in the same VLAN share a broadcast domain). VLANs create separate broadcast domains within a switch.
Broadcast storms: excessive broadcast traffic can consume all available bandwidth and overwhelm devices. Caused by: switching loops (without STP), malfunctioning network cards, poorly designed DHCP implementations. STP prevents loops; storm control limits broadcast rates on switch ports.