Which data link sublayer is responsible for error and flow control?
Data Link Layer: Multiple Access Protocols
How many stations share one link: random access (CSMA and its three persistence methods, CSMA/CD), controlled access (reservation, polling, token passing) and channelization (FDMA, TDMA, CDMA). The favourite questions compare them: who is fair, who can collide, and who is stuck at R/M even when alone on the link.
How to read this page
Every original slide is shown unchanged. Yellow marks on a slide point to a numbered note: hover or tap a mark to jump to its note, and hover a note to see its marks. Questions tagged Past exam appeared on a real paper; Prediction questions are likely angles, not confirmed. Pick an answer to each question: a wrong pick tells you why it is wrong, so you can try again.
All 34 slides
- 1 Data-Link Layer
- 2 Chapter outline
- 3 Multiple Access
- 4 Multiple Access
- 5 Data link layer: two sublayers
- 6 Taxonomy of multiple-access protocols
- 7 Random Access
- 8 Random Access – Carrier Sense Multiple Access (CSMA)
- 9 Random Access – Carrier Sense Multiple Access (CSMA)
- 10 Random Access – Carrier Sense Multiple Access (CSMA)
- 11 Types of CSMA Protocols
- 12 Nonpersistent CSMA
- 13 1-persistent CSMA
- 14 P-persistent CSMA
- 15 Flow diagram for three persistence methods
- 16 Persistent and non-persistent CSMA: throughput
- 17 CSMA/CD (Collision Detection)
- 18 How does a node detect a collision?
- 19 CSMA/CD Protocol
- 20 Performance of Random Access Protocols
- 21 Controlled access (scheduling)
- 22 1-Reservation access method
- 23 2- Polling
- 24 Select and poll functions in polling access method (Figure 12.19)
- 25 Token-passing network
- 26 Token-passing procedure (Figure 13.13)
- 27 Channelization
- 28 Frequency-division multiple access (FDMA) (Figure 12.21)
- 29 Channelization: FDMA
- 30 Time-division multiple access (TDMA) (Figure 12.22)
- 31 Channelization: TDMA
- 32 Channelization: CDMA
- 33 Simple idea of communication with code (Figure 12.23)
- 34 FDMA vs. TDMA vs. CDMA
Data-Link Layer
Notes
Shared link → MAC sublayer → random access (CSMA family) → controlled access → channelization.
Tip R = the channel rate, M = the number of stations. R/M is a fair equal share.
Chapter outline
Notes
Three families of multiple-access protocols.
Multiple Access
Notes
Broadcast link = many nodes, ONE medium. Everyone hears every transmission.
Seen again Ch 1 Part 1, slide 8: Multipoint connections
Multiple Access
Notes
Collision = two frames on the medium at once → both destroyed, bandwidth wasted.
MAC protocols decide who sends when. They live in the MAC sublayer.
Data link layer: two sublayers
Notes
Trap In these slides framing and MAC addresses are listed under the MAC sublayer, not LLC.
Exam angle
The MAC sublayer is responsible for:
Taxonomy of multiple-access protocols
Notes
Memory trick Random = free for all · Controlled = take turns · Channelization = split the channel.
Exam angle
Token passing belongs to which family?
CSMA/CA is used in:
Which is a channelization protocol?
Random Access
Notes
Random access: no master, no turns. Each station decides for itself when to send, so collisions are possible.
Random Access – Carrier Sense Multiple Access (CSMA)
Notes
CSMA = listen before you talk.
It reduces collisions but can’t eliminate them: a station far away may not hear a frame that already started.
Trap “CSMA eliminates collisions” ✗. It only reduces them.
Exam angle
CSMA eliminates collisions completely.
- Two stations can still start within one propagation time.
In CSMA, a station senses the medium:
Random Access – Carrier Sense Multiple Access (CSMA)
Exam angle
The vulnerable time of CSMA equals:
Random Access – Carrier Sense Multiple Access (CSMA)
Notes
Long cables = longer window where distant stations wrongly think the line is free.
Types of CSMA Protocols
Notes
Three persistence methods: they differ in what to do when the line is BUSY and when it is IDLE.
Nonpersistent CSMA
Notes
Non-persistent: busy → walk away for a random time, then check again.
Fewer collisions, but the line can sit idle (wasted).
Exam angle
In non-persistent CSMA, if the medium is busy the station:
1-persistent CSMA
Notes
1-persistent: busy → keep listening → the instant it’s idle, send (probability 1).
No idle time, but if two stations were waiting, they BOTH send → guaranteed collision.
Memory trick Non-persistent = polite (walks away). 1-persistent = selfish (stares at the line).
Exam angle
Which persistence method guarantees a collision when two stations wait for the same busy channel?
1-persistent CSMA sends with probability 1 as soon as the channel becomes idle.
P-persistent CSMA
Notes
Best of both: fewer collisions (like non-persistent) and less idle time (like 1-persistent).
Exam angle
In p-persistent CSMA, a time slot equals:
Compare non-persistent, 1-persistent and p-persistent CSMA when the channel is busy and when it becomes idle.
Compare with the model answer
Non-persistent: if busy, wait a random time then sense again (fewer collisions, wasted idle time). 1-persistent: if busy, keep listening and send immediately with probability 1 when idle (no idle time, collisions guaranteed if several are waiting). p-persistent: keep listening; when idle send with probability p or wait a slot with probability 1 - p (reduces both collisions and idle time).
Flow diagram for three persistence methods
Notes
p-persistent: draw a random R in [0, 1]; if R ≤ p send, otherwise wait a slot.
Persistent and non-persistent CSMA: throughput
Notes
Under heavy load, 1-persistent does worst (collisions); small p and non-persistent do best.
Exam angle
Under heavy load, which CSMA variant has the lowest throughput on the graph?
CSMA/CD (Collision Detection)
Notes
Plain CSMA keeps sending the whole (already ruined) frame. CSMA/CD listens WHILE sending and stops as soon as it detects a collision.
Used on shared Ethernet (bus or hub).
Seen again Ch 4, slide 6: CSMA/CD in classic Ethernet
Exam angle
What does CSMA/CD add to CSMA?
How does a node detect a collision?
Notes
Detection = the energy on the wire is higher than what I am sending → someone else is sending too.
CSMA/CD Protocol
Notes
On collision: ABORT → send a 48-bit JAM → random BACKOFF → try again with the same persistence method.
Memory trick CSMA/CD collision steps: “Abort, Jam, Back off, Retry.”
Exam angle
After detecting a collision, a CSMA/CD station first:
The jam signal in the slides is:
Performance of Random Access Protocols
Notes
Random access: simple, decentralized, great at low load; UNFAIR and unbounded delay at high load.
Alone on the link → full rate R. Busy link → each node gets less than R/M because of collisions.
Exam angle
Random access protocols are fair: every station is guaranteed a turn.
- A station may never get to send.
A single active station using random access can send at:
Controlled access (scheduling)
Notes
Controlled access: stations take turns → fair, no collisions, but capped at R/M.
Trap Random = can collide, unfair, R when alone. Controlled = never collides, fair, R/M.
Exam angle
Which family eliminates collisions completely?
The three controlled-access methods are:
1-Reservation access method
Notes
Each cycle starts with a reservation frame of N minislots (one per station). A station sets its minislot to reserve a turn.
Exam angle
In the reservation method, a reservation frame contains:
2- Polling
Notes
Centralized polling: a PRIMARY controls everything. SELECT = primary wants to send to a secondary. POLL = primary asks a secondary if it has data (data or NAK back).
Memory trick SELect = primary SEnds. POLL = primary coLLects.
Exam angle
In centralized polling, the primary sends a ___ frame when it wants to send data to a secondary.
A secondary with nothing to send answers a poll with:
Token passing is an example of distributed polling.
Select and poll functions in polling access method (Figure 12.19)
Notes
Left: primary → secondary uses SEL. Right: secondary → primary starts with a POLL.
Token-passing network
Exam angle
In token passing, a station can send when it:
Token-passing procedure (Figure 13.13)
Notes
A station keeps the token only while it has data AND its allocated time hasn’t expired, then releases it.
Frequency-division multiple access (FDMA) (Figure 12.21)
Notes
Each station has its own frequency band, all the time.
Channelization: FDMA
Notes
FDMA: own band, send continuously, R/M even when alone (other bands sit empty).
Exam angle
In FDMA, a station that is the only one with data can send at:
Time-division multiple access (TDMA) (Figure 12.22)
Notes
Each station has its own time slot on the whole bandwidth.
Channelization: TDMA
Notes
TDMA: whole bandwidth, but only in your slot. Still R/M on average even when alone.
Trap FDMA, TDMA (and controlled access) cap a lone station at R/M; random access lets it use all of R.
Exam angle
In TDMA, a station that is the only one with frames can use every time slot.
- It must wait for its own slot.
Compare FDMA and TDMA.
Compare with the model answer
FDMA divides the channel by frequency: each station gets its own band and sends continuously. TDMA divides it by time: each station uses the whole bandwidth but only in its own slot. Both limit a station to R/M even when it is the only one sending.
Channelization: CDMA
Notes
CDMA: everyone sends at the same time on the same frequency; codes separate them.
Exam angle
In which method do all stations send at the same time over the same channel, separated by codes?
Simple idea of communication with code (Figure 12.23)
Notes
Each station multiplies its data by its code; the channel carries the SUM; a receiver multiplies by the wanted code to pull its data out.
FDMA vs. TDMA vs. CDMA
Notes
FDMA = frequency slices. TDMA = time slices. CDMA = code slices (everyone uses all frequencies all the time).
Memory trick F = Frequency, T = Time, C = Code.