Sub topic 1
Where MAC Addresses Live: LANs and the Link Layer
Prerequisites
Assume you understand that an IP address identifies a network-layer endpoint and that a LAN is a local network where devices can exchange link-layer frames. You should also be comfortable reading hexadecimal and binary numbers.
MAC Addresses on a LAN
A MAC address is a 48-bit link-layer address used by Ethernet and Wi-Fi. The link layer delivers frames between interfaces on the same local network. It does not identify a device globally in the way people often assume. A laptop can use different MAC addresses on different networks or even on the same network over time.
A LAN usually forms a broadcast domain: a set of interfaces that can receive a local broadcast. MAC addresses are carried inside link-layer frames, while IP addresses are carried inside the frame's payload.
Anatomy of a MAC Address
MAC addresses are commonly written as six hexadecimal octets:
02:00:5e:10:00:01
The first three octets are commonly called the OUI, or Organizationally Unique Identifier. The remaining three octets identify an interface within the assigned range.
| Part | Example | Meaning |
|---|---|---|
| OUI | `02:00:5e` | Assigned organization or address range |
| Device-specific part | `10:00:01` | Interface value within that range |
The first octet also contains two important flags. Its least significant bit is the individual/group bit. 0 means unicast, or one recipient. 1 means multicast, or a group of recipients. The next bit is the universal/local bit. 0 indicates a universally administered address, while 1 indicates a locally administered address.
Unicast, Multicast, and Broadcast
A unicast MAC address targets one interface. A multicast address targets subscribed interfaces in a group. Broadcast targets every interface in the local broadcast domain and is written as:
ff:ff:ff:ff:ff:ff
Broadcast traffic is useful for discovery, but excessive broadcast traffic consumes shared local resources.
The OUI
An OUI comes from an address registry and often suggests the hardware vendor. It is not reliable proof of the current device manufacturer. Virtual machines, containers, privacy features, and locally administered addresses can use values that do not identify the physical vendor.
Exercise
What does the least significant bit of the first MAC-address octet indicate?
Show answer
Whether the address is individual (unicast) or group (multicast). A value of 1 means group.