Module 7 · 14 marks · Models, media & the link layer
IEEE 802.3, 802.4, 802.5 & 802.11
IEEE 802 standardizes LANs at the physical and data link layers. 802.3 Ethernet (CSMA/CD, then switched full duplex) won the wired world, 802.4 token bus and 802.5 token ring offered deterministic token passing, and 802.11 Wi-Fi rules wireless LANs with CSMA/CA.
High-yield 65 minSyllabus: “Introduction to 802.3, 802.4, 802.5 and 802.11 LAN technology”
Mark as
The idea in one minute
Picture four ways to run a meeting. Ethernet is an open floor where anyone speaks when it is quiet and everyone stops if two collide — later replaced by private phone lines to a switchboard (switches). Token bus and token ring pass a microphone around a fixed order of people, so everyone gets a guaranteed turn. Wi-Fi is the same open floor held outdoors: you cannot hear every collision, so you ask permission (RTS/CTS) and wait for a nod (ACK).
802.3 frame: preamble 7 + SFD 1 | DA 6 | SA 6 | type/length 2 | data 46–1500 | FCS 4 → 64–1518 bytes (1522 with an 802.1Q tag).
MAC address: 48 bits = 24-bit OUI + 24-bit NIC part. First byte's LSB: 0 unicast, 1 multicast; all 1s = broadcast; next bit = locally administered.
Naming: 10Base5 thick coax 500 m, 10Base2 thin coax 185 m, 10Base-T UTP 100 m, 100Base-TX Fast Ethernet, 1000Base-T (4 pairs Cat 5e), 10GBase-T (Cat 6a).
802.4 token bus: physical bus, logical ring in address order, deterministic, used in factory automation (GM's MAP). 802.5 token ring: IBM, 4/16 Mbps, star-wired ring via MAU, differential Manchester.
Token ring: 3-byte token (SD, AC, ED); AC = PPP T M RRR (priority, token, monitor, reservation); active monitor; early token release at 16 Mbps.
802.11: BSS, ESS, IBSS (ad hoc), AP, distribution system; DCF (CSMA/CA) vs PCF (polling); RTS/CTS for hidden stations; up to 4 addresses per frame.
Wi-Fi: 802.11b 11 Mbps and g 54 Mbps (2.4 GHz), a 54 Mbps (5 GHz), n = Wi-Fi 4, ac = Wi-Fi 5, ax = Wi-Fi 6; WPA2 = AES-CCMP.
01The IEEE 802 family
In February 1980 the IEEE started Project 802 to standardize local and metropolitan area networks. 802 standards cover only the physical layer and the data link layer, which IEEE splits into the common LLC sublayer (802.2) and a technology-specific MAC sublayer. That is why the same IP packet can ride over Ethernet, Wi-Fi or token ring unchanged.
Standard
Scope
Notes
802.1
Bridging, management and higher-layer LAN protocols
The dominant wired LAN, 10 Mbps to hundreds of Gbps
802.4
Token bus
Physical bus, logical ring; factory automation; now withdrawn
802.5
Token ring
IBM's 4/16 Mbps ring; now withdrawn
802.6
Metropolitan area networks (DQDB)
Historic
802.11
Wireless LAN (Wi-Fi)
CSMA/CA; a, b, g, n, ac, ax, be and many amendments
802.15
Wireless personal area networks
802.15.1 Bluetooth, 802.15.4 low-rate WPAN (basis of Zigbee)
802.16
Broadband wireless access (WiMAX)
Fixed and mobile wireless MAN
Bluetooth (802.15.1) forms a piconet of one master (primary) and up to seven active slaves (secondaries), plus up to 255 parked devices; several piconets linked through shared members form a scatternet. It uses FHSS in the 2.4 GHz band over about 10 m. WiMAX (802.16) targets city-wide broadband with OFDMA.
Ethernet was invented by Robert Metcalfe and David Boggs at Xerox PARC in 1973. DEC, Intel and Xerox published 10 Mbps 'DIX' Ethernet in 1980, and IEEE approved it as 802.3 in 1983. Classic Ethernet was a shared bus using 1-persistent CSMA/CD with Manchester encoding; its connectionless, unacknowledged service leaves recovery of lost frames to higher layers.
Field
Bytes
Purpose
Preamble
7
Alternating 1010… bits that let the receiver lock its clock (added by the physical layer)
SFD (start frame delimiter)
1
10101011 — the final 11 says 'the frame starts now'
Destination address
6
MAC of the receiver (unicast, multicast or broadcast)
Source address
6
MAC of the sender (always unicast)
Type / Length
2
≥ 1536 (0x0600): EtherType, e.g. 0x0800 IPv4, 0x0806 ARP, 0x86DD IPv6, 0x8100 VLAN tag; ≤ 1500: length of the data (802.3 + LLC)
Data and padding
46–1500
Payload; padded up to 46 bytes if shorter
FCS
4
CRC-32 over the addresses, type/length and data
802.3 MAC frame
Minimum frame = 6 + 6 + 2 + 46 + 4 = 64 bytes = 512 bits (preamble/SFD not counted)
Maximum frame = 6 + 6 + 2 + 1500 + 4 = 1518 bytes (1522 with a 4-byte 802.1Q tag)
Padding = 46 − data length (when data < 46 bytes)
On the wire each frame also needs 8 bytes of preamble/SFD and a 12-byte (96-bit) inter-frame gap
The 64-byte minimum is exactly the CSMA/CD rule at 10 Mbps: a frame must still be on the wire when news of a collision returns from the far end of the network (512 bit times = 51.2 µs). The 1,500-byte maximum data size is the familiar Ethernet MTU.
A MAC address has 48 bits, written as six hex bytes, e.g. 3C:52:82:1A:9F:07. The first 24 bits are the OUI (organizationally unique identifier) that IEEE assigns to the manufacturer; the last 24 bits are chosen by the manufacturer.
The least significant bit of the first byte is the I/G bit: 0 = individual (unicast), 1 = group (multicast). The address FF:FF:FF:FF:FF:FF (all 1s) is broadcast.
The next bit is the U/L bit: 0 = universally administered (burned-in), 1 = locally administered (set by software, as in many virtual machines and containers, e.g. 02:42:…).
Ethernet sends each byte least significant bit first, so the I/G bit is the very first address bit on the wire and a switch can tell unicast from multicast immediately.
IPv4 multicast frames use 01:00:5E:xx:xx:xx; IPv6 multicast frames use 33:33:xx:xx:xx:xx.
PSC favourite
Classify a MAC address from its first byte only: even (LSB 0) → unicast; odd (LSB 1) → multicast; all F's → broadcast. 4A… is unicast (0x4A = 01001010); 47… is multicast (0x47 = 01000111).
03Ethernet generations and naming
IEEE names Ethernet variants as rate + signalling + medium: the number is the data rate in Mbps (or G for Gbps), Base means baseband (one signal on the medium) and the suffix gives either the maximum segment length in hundreds of metres or the medium (T = twisted pair, F/FX/SX/LX = fibre). 10Base5 is '10 Mbps, baseband, 500 m'.
Variant
Standard (year)
Medium
Max segment
Encoding / notes
10Base5 (thicknet)
802.3 (1983)
Thick coax RG-8/RG-11
500 m
Manchester; bus with vampire taps
10Base2 (thinnet)
802.3a (1985)
Thin coax RG-58
185 m
Manchester; bus with BNC T-connectors
10Base-T
802.3i (1990)
2 pairs Cat 3 UTP
100 m
Manchester; star around a hub or switch
10Base-F
802.3j (1993)
2 fibres
2,000 m
Manchester
100Base-TX (Fast Ethernet)
802.3u (1995)
2 pairs Cat 5 UTP
100 m
4B/5B + MLT-3
100Base-FX
802.3u (1995)
2 fibres
2 km (full duplex)
4B/5B + NRZ-I
100Base-T4
802.3u (1995)
4 pairs Cat 3 UTP
100 m
8B6T
1000Base-SX / LX
802.3z (1998)
Multimode / single-mode fibre
≈ 550 m / 5 km
8B/10B
1000Base-T
802.3ab (1999)
4 pairs Cat 5e UTP
100 m
4D-PAM5, all four pairs both ways
10GBase-SR / LR / ER
802.3ae (2002)
Fibre
≈ 300 m / 10 km / 40 km
64B/66B, full duplex only
10GBase-T
802.3an (2006)
Cat 6a UTP
100 m
Full duplex only
Speeds have kept climbing — 25G, 40G, 100G, 400G and 800G Ethernet now run data centres and backbones — but the frame format, the 48-bit addresses and the 64–1518-byte frame sizes have stayed the same, which is a big reason Ethernet won. On coax 10 Mbps networks, the 5-4-3 rule limited a collision domain to 5 segments joined by 4 repeaters, with stations on only 3 segments.
Tip
Fast Ethernet also introduced auto-negotiation, in which two ports agree on the best common speed and duplex mode — a duplex mismatch (one side half, one side full) is a classic cause of slow, error-ridden links.
04Switched, full-duplex Ethernet and VLANs
Early 10Base-T used hubs, which simply repeat every bit to every port: all stations still share one collision domain. A switch is a multiport bridge. It reads each frame's destination MAC and sends the frame only out of the port where that address lives, so every port becomes its own collision domain (the switch still forms one broadcast domain). With one station per port, sending and receiving on separate wire pairs, links run full duplex — collisions are impossible and CSMA/CD is turned off.
How a switch learns (transparent bridging)
Learn
When a frame arrives, record its source MAC against the incoming port in the MAC (CAM) table, with a timestamp.
Forward
If the destination MAC is in the table on another port, send the frame out of that port only.
Filter
If the destination is on the same port the frame came in on, drop it — the receiver has already seen it.
Flood
If the destination is unknown, or is a broadcast or multicast address, send the frame out of every port except the incoming one.
Age
Remove entries not refreshed for a while (typically 300 seconds) so that moved stations are relearned.
Switching modes:store-and-forward receives the whole frame and checks the CRC before forwarding; cut-through starts forwarding as soon as the destination address is read (lower latency, but bad frames are passed on); fragment-free waits for the first 64 bytes, where collision damage would appear.
Spanning Tree Protocol (802.1D), invented by Radia Perlman, blocks redundant links so that frames cannot loop forever and cause broadcast storms; Rapid STP (802.1w) converges faster.
VLANs (802.1Q) split one switch into several broadcast domains. A 4-byte tag is inserted after the source address: TPID 0x8100 (16 bits), priority PCP (3 bits, 802.1p), DEI (1 bit) and the 12-bit VLAN ID (0–4095, of which 4,094 are usable). Tagged frames may be up to 1,522 bytes.
Note
The step-through on this page follows one ARP exchange over a switch: the broadcast request is flooded, the switch learns both MAC addresses, and the unicast reply goes out of one port only.
05IEEE 802.4 token bus
Token bus combined the cabling of a bus with the fairness of a ring. Stations hang on a physical bus or tree of 75 Ω broadband (or carrierband) coaxial cable, but they form a logical ring: each knows the address of its successor and predecessor, and the token is passed in descending order of station address (the lowest address passes it back to the highest). Rates were 1, 5 and 10 Mbps.
Deterministic access: a station may transmit only while holding the token, for at most its token holding time, so the worst-case wait is bounded — essential for real-time control.
Priority: traffic is divided into four access classes (6 = highest, 4, 2, 0); lower classes may transmit only if the token is rotating fast enough (time is left in their timers).
Ring maintenance: the token holder periodically sends solicit-successor frames so that new stations can join; who-follows frames repair the ring when a station fails; claim-token frames create a token at start-up or when it is lost; a leaving station sends set-successor to link its neighbours.
Use: General Motors adopted it for MAP (Manufacturing Automation Protocol) on factory floors. Ethernet's falling cost and switching made it obsolete, and the standard was later withdrawn.
PSC favourite
Token bus is physically a bus, logically a ring. Token ring is physically a star (around a MAU), logically a ring. Both are deterministic; Ethernet's CSMA/CD is not.
06IEEE 802.5 token ring
IBM's token ring, standardized as 802.5 in 1985, ran at 4 and later 16 Mbps over shielded twisted pair using differential Manchester encoding. Although logically a ring, it is wired as a star: every station connects to a MAU (multistation access unit) whose relays bypass a station that is switched off or faulty, so one broken cable no longer stops the whole ring.
Field
Size
Role
SD — start delimiter
1 byte
Contains deliberate Manchester code violations, so it can never appear in data
AC — access control
1 byte
P P P T M R R R: 3 priority bits, token bit (0 = token, 1 = frame), monitor bit, 3 reservation bits
FC — frame control
1 byte
Data frame or MAC control frame (frames only)
DA, SA
6 + 6 bytes
Destination and source MAC addresses (frames only)
Data
Variable
Bounded by the 10 ms token holding time: about 4.5 KB at 4 Mbps, 18 KB at 16 Mbps
FCS
4 bytes
CRC-32
ED — end delimiter
1 byte
Code violations plus error and intermediate-frame bits
FS — frame status
1 byte
A (address recognized) and C (frame copied) bits, set by the receiver, duplicated for safety
Token (3 bytes) and frame
Operation: a station with data waits for the free token, flips its T bit to make it the start of a frame, and transmits. The frame travels round the ring; the destination copies it and sets the A and C bits; the sender removes its own frame when it returns and then releases a new token.
Priority and reservation: a waiting station can write its priority into the R bits of a passing frame. When the current sender releases the token, the token carries the reserved priority, so only stations of that priority or higher may seize it; the station that raised the priority later lowers it again.
Active monitor: one station is elected to supply the master clock and a 24-bit latency buffer (so that even a tiny ring can hold the whole 3-byte token), to create a new token if none is seen within a timeout, and to remove orphan frames — it sets the M bit on each passing frame, and a frame that comes back with M = 1 is purged. Standby monitors take over if it fails.
Early token release: at 16 Mbps a sender may release the token immediately after its last bit instead of waiting for its frame to come back, so more than one frame can be on a large ring at once.
Watch out
In token ring it is the sender that strips its frame from the ring (source removal); the receiver only copies it and sets the A and C bits. The 3-byte token is SD + AC + ED.
07IEEE 802.11 Wi-Fi: architecture and MAC
An 802.11 basic service set (BSS) is a group of stations served by one access point (AP); the AP's MAC address is the BSSID. Several BSSs joined by a distribution system (DS) — usually wired Ethernet — form an extended service set (ESS) sharing one network name, the SSID, so a laptop can roam from AP to AP. A BSS with no AP, in which stations talk directly, is an independent BSS (IBSS) or ad hoc network.
DCF (distributed coordination function): mandatory; every station contends with CSMA/CA — DIFS, random backoff, ACK after SIFS, optional RTS/CTS and NAV.
PCF (point coordination function): optional, AP-centric polling for time-sensitive traffic. A beacon starts each repetition interval (superframe); during the contention-free period the AP polls stations, and because PCF waits only a PIFS (shorter than DIFS) it gets priority over DCF traffic. 802.11e later added QoS through HCF/EDCA.
Hidden and exposed stations: RTS/CTS lets stations that cannot hear the sender learn about the transfer from the receiver's CTS; the exposed-station problem (needlessly deferring) remains.
Frame types:management (beacon, probe, authentication, association), control (RTS, CTS, ACK, PS-Poll) and data. Large frames can be fragmented, each fragment acknowledged separately.
Address 1 is always the next receiver on the radio hop and Address 2 always the current transmitter; the others record the frame's true source and destination. The Frame Control field holds the protocol version, type and subtype, To DS / From DS, More Fragments, Retry, Power Management, More Data, Protected Frame and Order bits; the Duration field is what other stations load into their NAV.
PSC favourite
Ad hoc = IBSS (no AP). An 802.11 frame can carry four addresses (all four only on AP-to-AP wireless links). Wi-Fi's MAC is CSMA/CA, with PCF as the optional polling mode.
08Wi-Fi versions, security and a four-way comparison
'Which standard specifies WLAN security?' → 802.11i (the basis of WPA2 and AES-CCMP). 2.4 GHz Wi-Fi has only three non-overlapping channels: 1, 6 and 11.
Step through · ARP over switched Ethernet: finding Host B's MAC
step 1 / 8
Step 1: ARP cache miss for 192.168.1.20
A wants to send an IP packet to B on the same subnet but has no MAC address for 192.168.1.20 in its ARP cache, so the packet waits while A asks.
Worked examples
Try the problem first, then reveal the working one step at a time.
EX 1Ethernet frame size, padding and efficiency
(a) A host sends 30 bytes of data in an Ethernet II frame. How much padding is added and how long is the frame? (b) What is the frame length for 1,200 bytes of data? (c) What share of wire time carries data for full-size and minimum-size frames, counting the 8-byte preamble/SFD and 12-byte inter-frame gap?
EX 2Reading MAC addresses
Classify each destination address and say whether it is universally or locally administered: (i) 3C:52:82:1A:9F:07 (ii) 01:00:5E:00:00:FB (iii) 33:33:00:00:00:01 (iv) 02:42:AC:11:00:02 (v) FF:FF:FF:FF:FF:FF. Also write the first byte of (ii) in the order it is transmitted.
EX 3Tracing a learning switch
A switch has just been powered on (empty MAC table). Host A is on port 1, B on port 2, C on port 3. Trace the table and the forwarding decision for: (1) A → B, (2) B → A, (3) C → broadcast, (4) A → C.
EX 4802.11 addresses across the distribution system
Laptop A in BSS 1 (served by AP1) sends a frame to laptop B in BSS 2 (served by AP2); the APs are joined by wired Ethernet. Fill in the To DS/From DS bits and the address fields of the wireless frame from A to AP1 and of the wireless frame from AP2 to B.
Practice session
Work each problem on paper first, then check. Marking one solved earns 10 XP.0/5 solved
Q1
A 20-byte IP packet (a bare header) is sent over Ethernet. How much padding is needed and how long is the frame? What is the maximum number of minimum-size frames per second on a 10 Mbps Ethernet, counting preamble/SFD and the inter-frame gap?
Q2
Is each address unicast, multicast or broadcast? (a) 4C:5E:0C:11:22:33 (b) 07:01:02:03:04:05 (c) FF:FF:FF:FF:FF:FF (d) 0A:00:27:00:00:0F
Q3
In IEEE 802.5, a passing frame carries the access-control byte 01110010. Decode it. What does a waiting station with priority 5 do when this frame passes?
Q4
Name the 802.11 standard: (a) 5 GHz only, 54 Mbps, OFDM; (b) 2.4 GHz, 11 Mbps, DSSS; (c) MIMO with up to 600 Mbps; (d) OFDMA and target wake time, marketed as Wi-Fi 6; (e) the security amendment that introduced AES-CCMP.
Q5
An 802.1Q-tagged Ethernet frame carries 1,500 bytes of data. How long is the frame, how many usable VLAN IDs are there, and which field tells a switch that a tag is present?
Exam traps
Ethernet's 64-byte minimum and 1,518-byte maximum exclude the 8-byte preamble/SFD; with it a minimum frame occupies 72 bytes, plus a 12-byte inter-frame gap.
Type/Length: values ≤ 1,500 are a length (802.3 with LLC); values ≥ 1,536 (0x0600) are an EtherType (Ethernet II) such as 0x0800 for IPv4.
Token ring is physically a star (MAU) but logically a ring; token bus is physically a bus but logically a ring. Don't answer 'ring' for the physical topology of either.
Wi-Fi uses CSMA/CA, not CSMA/CD. RTS/CTS helps with hidden stations, not exposed ones.
802.11i is a security amendment (WPA2, AES-CCMP), not a speed version. WEP and WPA-TKIP both use RC4; only WPA2/WPA3 use AES.
Bytes of a MAC address are sent LSB first, so the multicast (I/G) bit — the LSB of the first byte — is the first bit on the wire.
Quiz — KPSC style
12 questions. 70 % passes the topic quiz (+30 XP, +20 more for 100 %). Exam scoring: +1 correct, −⅓ wrong.