Ethernet is the dominant technology for wired LANs. It defines the frame format, the addresses of devices and how switches forward frames.
Ethernet Standards
Ethernet was developed at Xerox PARC in the 1970s and standardised as IEEE 802.3. Its speeds have grown steadily: Ethernet (10 Mbps, such as 10BASE-T over twisted pair), Fast Ethernet (100 Mbps, 100BASE-TX), Gigabit Ethernet (1 Gbps, 1000BASE-T over Cat 5e/6 cable, 1000BASE-SX over fibre), and 10, 40 and 100 Gigabit Ethernet and beyond, mostly over fibre. In a name such as 100BASE-TX, the number is the speed in Mbps, BASE means baseband signalling, and the suffix gives the medium. Classic shared Ethernet used CSMA/CD (carrier sense multiple access with collision detection): listen before sending, and if a collision is detected, stop, send a jam signal and retry after a random binary exponential backoff. Modern switched, full-duplex Ethernet has no collisions.
Definition: MAC address. A 48-bit hardware address burned into a network interface card, written as six pairs of hexadecimal digits, that identifies the device on a local network.
The Ethernet Frame
An Ethernet II frame has: Preamble (7 bytes) and Start Frame Delimiter (1 byte) for synchronisation; Destination MAC address (6 bytes); Source MAC address (6 bytes); Type/Length (2 bytes), such as 0x0800 for IPv4 or 0x0806 for ARP; Data (payload) of 46 to 1,500 bytes (padded if shorter); and the Frame Check Sequence (4 bytes), a CRC-32. So a frame is 64 to 1,518 bytes long, excluding the preamble.
MAC Addressing
A MAC address is 48 bits long, written as six hexadecimal pairs, such as 3C:52:82:1A:9F:07. The first 24 bits are the OUI (Organizationally Unique Identifier), assigned to the manufacturer, and the last 24 bits are assigned by the manufacturer to the card. Addresses may be unicast (one device), multicast (a group; the least significant bit of the first byte is 1) or broadcast (all devices: FF:FF:FF:FF:FF:FF). MAC addresses work only within a local network; IP addresses are needed across networks.
Ethernet Switching
A switch learns the source MAC address of each frame and the port it came from, building its MAC address table. For each frame, it looks up the destination: if known, it forwards to that port only; if unknown, or broadcast, it floods the frame to all other ports; and if the destination is on the same port, it filters (drops) the frame. Switching methods: store-and-forward receives the whole frame and checks the CRC before forwarding, so it drops damaged frames but adds delay; cut-through starts forwarding as soon as the destination address is read, with the lowest delay but no error check; fragment-free waits for the first 64 bytes, which catches most collision fragments. The Spanning Tree Protocol (STP) prevents loops when switches have redundant links.
Table 2.4: Ethernet frame fields
| Field | Size (bytes) | Purpose |
|---|---|---|
| Destination MAC | 6 | Receiver's address |
| Source MAC | 6 | Sender's address |
| Type | 2 | Upper protocol (IPv4, ARP) |
| Data | 46–1,500 | Payload |
| FCS | 4 | CRC-32 error check |
Example 2.4: Frame size and efficiency
Problem: Find the total frame size (without preamble) and the data efficiency of an Ethernet frame carrying (a) 1,500 bytes of data, (b) 10 bytes of data.
Solution:
- Header + FCS = 6 + 6 + 2 + 4 = 18 bytes.
- (a) 1,500 + 18 = 1,518 bytes; efficiency = 1,500 / 1,518 = 98.8 percent.
- (b) 10 bytes is below the 46-byte minimum, so 36 bytes of padding are added: 46 + 18 = 64 bytes; efficiency = 10 / 64 = 15.6 percent.
Result: Large frames are efficient; tiny payloads waste most of the frame.
def frame(payload):
data = max(payload, 46)
total = data + 18
return total, payload / total * 100
for p in (1500, 512, 10):
t, eff = frame(p)
print(f"payload {p:>4} B -> frame {t:>4} B, "
f"efficiency {eff:5.1f}%")
mac = "3C:52:82:1A:9F:07"
print("OUI:", mac[:8], "| device part:", mac[9:],
"| multicast:", int(mac[:2], 16) & 1 == 1)
Output
payload 1500 B -> frame 1518 B, efficiency 98.8%
payload 512 B -> frame 530 B, efficiency 96.6%
payload 10 B -> frame 64 B, efficiency 15.6%
OUI: 3C:52:82 | device part: 1A:9F:07 | multicast: False
Common mistakes
- Thinking MAC addresses route traffic across the internet. They work only within a LAN.
- Forgetting the 46-byte minimum payload, which is padded.
- Thinking that cut-through switching checks the CRC before forwarding.
Key takeaways
- Ethernet is IEEE 802.3, from 10 Mbps to 100 Gbps and beyond.
- A frame has destination and source MACs, type, 46–1,500 bytes of data and a CRC-32 FCS.
- A MAC address is 48 bits: 24-bit OUI and 24-bit device part.
- Switches learn, forward, flood and filter; methods are store-and-forward, cut-through and fragment-free.
Practice questions
- How long is a MAC address?
- What is the broadcast MAC address?
- What does a switch do with a frame whose destination is unknown?
Answers to the practice questions
- 48 bits (6 bytes).
- FF:FF:FF:FF:FF:FF.
- It floods it to all ports except the incoming one.
Sources
- Official BCA syllabus Computer Networks, course code 26BCA404DS02, Unit II
