Network communication relies on four MAC address types — unicast, broadcast, multicast, and anycast — each determining how frames are delivered across a network. Understanding how switches handle each address type is fundamental to layer 2 networking.
MAC Address Types
When it comes to communicating on our networks, we have unicast, multicast, broadcast, and anycast. We've largely talked about unicast, and a lot around MAC addresses and what unicast MAC addresses look like. But what do the rest of them look like?
Unicast happens just as what we mentioned before. There is a destination MAC address that gets added to the frame as it's sent out the network interface card, and it has a source MAC address as it's sent out. It gets from one location to the next because the switch recognizes what destination MAC address it's going to, and then forwards it out the port to get it to that device that owns that MAC address.
A broadcast is a message that's going to be sent, and the switch will actually broadcast that out all live ports. An example of a broadcast may be an ARP request. We know that if we have an IP address of a server but need the MAC address of the server so we can send it information across this LAN, we need to do address resolution. So we use the address resolution protocol. We send it out, and that request goes out all ports. This machine gets it and sends back the response with a MAC address, so that this machine can turn that IP address into a MAC address and send it out.
But the problem is it doesn't know the destination where that's going to go to. So what it does is it sends out the ARP request with a destination address of FF FF FF FF FF FF. That series of all ones, essentially, if you look underneath it there, that series of FFs that gets sent out, lets the switch know this is going to be a broadcast, and then that switch will broadcast it out.
So this is a broadcast, and everything that happens within this local area network, anything that is sent to this address right here, we call that a broadcast domain. So everything within this layer 2 here is a broadcast domain.
A multicast frame is used to send data to specific clients, so it's a one-to-many. Let's say this machine wants to send to a couple of different clients on the network at the same time. It could use a multicast frame to do that. So as it sends it out to the switch, the switch recognizes that it's a multicast, and will send it out those ports only, to those machines.
Of course, this switch does need to know which ports to send based on that multicast address, and so it will do that in several different ways. You can either program the switch to do multicast on certain ports, so that switch knows what ports to send it out, or there are some dynamic ways for this switch to learn and make sure that these devices check in or subscribe to that multicast address.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →