A 100 kbps shared channel carries 500-bit frames. Find the vulnerable times, and the number of successful frames per second for pure and slotted ALOHA when all stations together offer (a) 100 frames/s and (b) 200 frames/s.
When many stations share one channel, a medium access control (MAC) protocol decides who may transmit. Random access (ALOHA, CSMA, CSMA/CD, CSMA/CA), controlled access (reservation, polling, token passing) and channelization (FDMA, TDMA, CDMA) trade simplicity, efficiency and fairness.
On a point-to-point link only one sender exists. On a broadcast (multipoint) link — a shared Ethernet cable, a Wi-Fi channel, a satellite uplink — many stations share one medium, and if two transmit at once their signals collide and both frames are garbled. The MAC sublayer of the data link layer holds the rules that decide who may transmit and when.
| Family | Idea | Protocols |
|---|---|---|
| Random access (contention) | No station is superior; anyone may send, collisions are possible and are resolved by retrying | Pure ALOHA, slotted ALOHA, CSMA, CSMA/CD, CSMA/CA |
| Controlled access | Stations consult one another (or a primary) so only one sends at a time — no collisions | Reservation, polling, token passing |
| Channelization | The channel's bandwidth is split permanently by frequency, time or code | FDMA, TDMA, CDMA |
ALOHA was built by Norman Abramson's team at the University of Hawaii (ALOHAnet, 1970–71) to link islands by radio. In pure ALOHA a station sends a frame whenever it has one, then waits for an acknowledgement for a time-out of about 2 × Tp. If no ACK arrives it assumes a collision, waits a random backoff time (K chosen from 0 … 2ᵏ − 1 after the k-th attempt, with a maximum of about 15 attempts) and sends again.
A frame sent at time t survives only if no other frame starts between t − Tfr (its tail would overlap our head) and t + Tfr (it would overlap our tail). So the vulnerable time is 2 × Tfr. Modelling frame arrivals as a Poisson process with G frames per frame time, the chance that no other frame starts in that window is e^(−2G).
Where does that come from? For a Poisson process, the probability of k arrivals in an interval with mean λ is λᵏe^(−λ)/k!. Two frame times contain on average 2G frames, so P(0 arrivals) = e^(−2G). Throughput is 'frames offered × fraction that survive': S = G × e^(−2G). Raising G at first increases S, but beyond G = 0.5 the extra frames mostly destroy each other and S falls — the channel can even collapse into continuous collisions.
Slotted ALOHA (Roberts, 1972) divides time into slots of one frame time and forces stations to start only at slot boundaries. Now two frames collide only if they choose the same slot, so the vulnerable time drops to Tfr and the throughput doubles. The cost is that every station needs a common clock.
| G | Pure ALOHA S | Slotted ALOHA S |
|---|---|---|
| 0.25 | 0.152 | 0.195 |
| 0.5 | 0.184 (maximum) | 0.303 |
| 1 | 0.135 | 0.368 (maximum) |
| 2 | 0.037 | 0.271 |
Carrier sense multiple access (CSMA) adds one common-sense rule: listen to the channel and do not transmit if someone else is already transmitting. Collisions can still occur, because a signal takes time to travel: a distant station may sense the channel idle during the first Tp seconds after another station has started. The vulnerable time of CSMA is therefore Tp, far shorter than ALOHA's frame times.
| Method | Channel idle | Channel busy | Trade-off |
|---|---|---|---|
| 1-persistent | Transmit immediately (probability 1) | Keep sensing continuously, then transmit the instant it becomes idle | Lowest delay but highest collision chance — several waiting stations all jump in together. Used by Ethernet |
| Non-persistent | Transmit immediately | Wait a random time, then sense again | Fewer collisions but the channel may sit idle while everyone waits — lower efficiency |
| p-persistent (slotted channel) | Transmit with probability p; with probability 1 − p wait for the next slot and sense again | Wait for the next slot and sense again (a station that deferred and then finds the line busy backs off as if it had collided) | A compromise that reduces collisions and idle time; slot ≥ maximum propagation time |
How much does listening help? It depends on a = Tp/Tfr. When propagation is short compared with a frame (a small LAN), a station almost always hears an earlier transmission in time, and non-persistent or small-p CSMA can push throughput far above ALOHA's 36.8% — towards 1 as a approaches 0. When a is large (a long satellite hop), sensing tells you little about what is already in flight, and CSMA degrades towards ALOHA.
Plain CSMA still sends a whole frame even after a collision has destroyed it. The next two protocols fix that in different ways: wired Ethernet detects collisions and stops early; wireless LANs try to avoid them because they cannot detect them.
Collision detection only works if the sender is still transmitting when news of the collision arrives. In the worst case, station A starts, the signal takes Tp to reach the farthest station B, B starts just before it arrives, and B's signal takes another Tp to come back. So A's frame must last at least 2 × Tp — the round-trip time.
The 51.2 µs slot covers the round trip across a maximum 10 Mbps network (about 2,500 m with four repeaters) plus electronics delays. At 100 Mbps the same 64-byte minimum allows only about a tenth of the distance, and half-duplex Gigabit Ethernet had to stretch the slot to 512 bytes with carrier extension. In practice, modern switched Ethernet is full duplex: each link has just two stations sending on separate pairs, collisions cannot happen and CSMA/CD is switched off.
Why make the backoff range exponential? Nobody knows how many stations are contending. After one collision, two choices (0 or 1) are enough for two stations; if they collide again, that suggests more contenders, so the range doubles to four, then eight, and so on. The range adapts to the load within a few collisions without any central coordinator. Capping the exponent at 10 (1,024 slots) bounds the delay, and giving up after 16 attempts reports a faulty network to higher layers. One side effect is the capture effect: a station that has just succeeded restarts with a small range and tends to win again.
A radio cannot easily detect a collision: its own transmission is millions of times stronger than any incoming signal, and a collision may happen at the receiver without the sender hearing anything at all (the hidden-station problem). IEEE 802.11 therefore uses CSMA with collision avoidance and relies on acknowledgements to learn whether a frame got through.
| IFS | Length | Used before |
|---|---|---|
| SIFS | Shortest | ACK, CTS, the next fragment of a burst |
| PIFS | SIFS + 1 slot | Point-coordination (polling) frames from the AP |
| DIFS | SIFS + 2 slots | Starting a new data frame under DCF |
| EIFS | Longest | Retrying after a corrupted frame was received |
| Ring type | How it is wired | Example |
|---|---|---|
| Physical ring | Each station connected to its two neighbours | Early token ring |
| Dual ring | A second counter-rotating ring as a backup | FDDI (100 Mbps fibre) |
| Bus ring | Stations on a bus; the token is passed in address order | IEEE 802.4 token bus |
| Star ring | Physically a star around a wiring hub (MAU); logically a ring | IEEE 802.5 token ring |
Channelization divides the channel permanently among stations. FDMA gives each station its own frequency band, separated by guard bands (first-generation cellular, AMPS). TDMA gives each station its own time slots in a repeating frame; stations need tight synchronization and small guard times to absorb propagation delay. CDMA lets all stations transmit at once over the whole band, each with its own orthogonal code (IS-95, CDMA2000, UMTS/WCDMA). GSM combines FDMA and TDMA: 200 kHz carriers, each shared by 8 time slots.
| Method | Collisions? | Best-case efficiency | Delay behaviour | Typical use |
|---|---|---|---|---|
| Pure ALOHA | Yes | 18.4% | Low at light load, collapses at heavy load | ALOHAnet, early satellite links |
| Slotted ALOHA | Yes | 36.8% | Needs slot synchronization | GSM random-access channel, RFID |
| CSMA/CD | Yes, detected and aborted quickly | Near 100% when a is small | Random, not bounded | Classic shared Ethernet |
| CSMA/CA | Mostly avoided | Lower than CSMA/CD (IFS and backoff overhead) | Random | IEEE 802.11 Wi-Fi |
| Polling | No | High | Bounded; overhead per poll | Primary–secondary links |
| Token passing | No | High at heavy load | Bounded by token rotation time | 802.4, 802.5, FDDI |
| FDMA / TDMA / CDMA | No (static shares) | Fixed share each | Guaranteed | Cellular networks |
Try the problem first, then reveal the working one step at a time.
A 100 kbps shared channel carries 500-bit frames. Find the vulnerable times, and the number of successful frames per second for pure and slotted ALOHA when all stations together offer (a) 100 frames/s and (b) 200 frames/s.
(a) A 1 Gbps CSMA/CD network has a 1 km cable with signal speed 2 × 10⁸ m/s. What is the minimum frame size? (b) An 80 Mbps CSMA/CD network over 1 km of cable has a minimum frame size of 1 KB (take 1 KB = 8,000 bits). What is the signal speed in the cable?
Stations A and B are the only stations on an Ethernet and both always have frames to send. They collide; A wins the first backoff race and sends its frame. Then both try again and collide. What is the probability that A wins this second race?
Four stations share a slotted channel and each transmits in a slot with probability p, independently. Find the probability that a slot carries a successful frame for p = 0.1, the best p, and the limit for many stations.
A pure ALOHA network sends 250-bit frames on a shared 250 kbps channel. What is the vulnerable time, and what is the maximum number of successful frames per second? What would slotted ALOHA achieve?
On 10 Mbps Ethernet, a frame has just suffered its 3rd collision. From what range is K chosen, and what is the longest possible wait? If two stations are both at their 3rd collision, what is the chance they collide yet again?
Ignoring repeater and electronics delays, what is the maximum cable length that a 512-bit minimum frame allows at 100 Mbps (signal speed 2 × 10⁸ m/s)? Repeat for 1 Gbps.
A frame takes 1 ms to transmit and the maximum propagation time is 10 µs. What is the vulnerable time for pure ALOHA, slotted ALOHA and CSMA?
In a Wi-Fi network, laptops A and C are on opposite sides of access point B; each can reach B but not the other. Explain why their frames collide at B even though both sense the channel first, and how RTS/CTS prevents it.
12 questions. 70 % passes the topic quiz (+30 XP, +20 more for 100 %). Exam scoring: +1 correct, −⅓ wrong.
Modelled on real KPSC questions (reworded) with the same concept and answer; each links to its original paper.