CS331 · Chapter 3 · Part 2 · Annotated SlidesData Link Layer: Multiple Access Protocols
Original
Overview

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. 1 Data-Link Layer
  2. 2 Chapter outline
  3. 3 Multiple Access
  4. 4 Multiple Access
  5. 5 Data link layer: two sublayers
  6. 6 Taxonomy of multiple-access protocols
  7. 7 Random Access
  8. 8 Random Access – Carrier Sense Multiple Access (CSMA)
  9. 9 Random Access – Carrier Sense Multiple Access (CSMA)
  10. 10 Random Access – Carrier Sense Multiple Access (CSMA)
  11. 11 Types of CSMA Protocols
  12. 12 Nonpersistent CSMA
  13. 13 1-persistent CSMA
  14. 14 P-persistent CSMA
  15. 15 Flow diagram for three persistence methods
  16. 16 Persistent and non-persistent CSMA: throughput
  17. 17 CSMA/CD (Collision Detection)
  18. 18 How does a node detect a collision?
  19. 19 CSMA/CD Protocol
  20. 20 Performance of Random Access Protocols
  21. 21 Controlled access (scheduling)
  22. 22 1-Reservation access method
  23. 23 2- Polling
  24. 24 Select and poll functions in polling access method (Figure 12.19)
  25. 25 Token-passing network
  26. 26 Token-passing procedure (Figure 13.13)
  27. 27 Channelization
  28. 28 Frequency-division multiple access (FDMA) (Figure 12.21)
  29. 29 Channelization: FDMA
  30. 30 Time-division multiple access (TDMA) (Figure 12.22)
  31. 31 Channelization: TDMA
  32. 32 Channelization: CDMA
  33. 33 Simple idea of communication with code (Figure 12.23)
  34. 34 FDMA vs. TDMA vs. CDMA
Slide 1 / 34

Data-Link Layer

Slide 1: Data-Link Layer

Notes

  1. Shared link → MAC sublayer → random access (CSMA family) → controlled access → channelization.

  2. Tip R = the channel rate, M = the number of stations. R/M is a fair equal share.

Slide 2 / 34

Chapter outline

Slide 2: Chapter outline

Notes

  1. Three families of multiple-access protocols.

Slide 3 / 34

Multiple Access

Slide 3: Multiple Access

Notes

  1. Broadcast link = many nodes, ONE medium. Everyone hears every transmission.

  2. Seen again Ch 1 Part 1, slide 8: Multipoint connections

Slide 4 / 34

Multiple Access

Slide 4: Multiple Access

Notes

  1. Collision = two frames on the medium at once → both destroyed, bandwidth wasted.

  2. MAC protocols decide who sends when. They live in the MAC sublayer.

Slide 5 / 34

Data link layer: two sublayers

Slide 5: Data link layer: two sublayers

Notes

  1. Trap In these slides framing and MAC addresses are listed under the MAC sublayer, not LLC.

Exam angle

PredictionQ1

Which data link sublayer is responsible for error and flow control?

PredictionQ2

The MAC sublayer is responsible for:

Slide 6 / 34

Taxonomy of multiple-access protocols

Slide 6: Taxonomy of multiple-access protocols

Notes

  1. Memory trick Random = free for all · Controlled = take turns · Channelization = split the channel.

Exam angle

PredictionQ1

Token passing belongs to which family?

PredictionQ2

CSMA/CA is used in:

PredictionQ3

Which is a channelization protocol?

Slide 7 / 34

Random Access

Slide 7: Random Access

Notes

  1. Random access: no master, no turns. Each station decides for itself when to send, so collisions are possible.

Slide 8 / 34

Random Access – Carrier Sense Multiple Access (CSMA)

Slide 8: Random Access – Carrier Sense Multiple Access (CSMA)

Notes

  1. CSMA = listen before you talk.

  2. It reduces collisions but can’t eliminate them: a station far away may not hear a frame that already started.

  3. Trap “CSMA eliminates collisions” ✗. It only reduces them.

Exam angle

PredictionQ1

CSMA eliminates collisions completely.

PredictionQ2

In CSMA, a station senses the medium:

Slide 9 / 34

Random Access – Carrier Sense Multiple Access (CSMA)

Slide 9: Random Access – Carrier Sense Multiple Access (CSMA)

Exam angle

PredictionQ1

The vulnerable time of CSMA equals:

Slide 10 / 34

Random Access – Carrier Sense Multiple Access (CSMA)

Slide 10: Random Access – Carrier Sense Multiple Access (CSMA)

Notes

  1. Long cables = longer window where distant stations wrongly think the line is free.

Slide 11 / 34

Types of CSMA Protocols

Slide 11: Types of CSMA Protocols

Notes

  1. Three persistence methods: they differ in what to do when the line is BUSY and when it is IDLE.

Slide 12 / 34

Nonpersistent CSMA

Slide 12: Nonpersistent CSMA

Notes

  1. Non-persistent: busy → walk away for a random time, then check again.

  2. Fewer collisions, but the line can sit idle (wasted).

Exam angle

PredictionQ1

In non-persistent CSMA, if the medium is busy the station:

Slide 13 / 34

1-persistent CSMA

Slide 13: 1-persistent CSMA

Notes

  1. 1-persistent: busy → keep listening → the instant it’s idle, send (probability 1).

  2. No idle time, but if two stations were waiting, they BOTH send → guaranteed collision.

  3. Memory trick Non-persistent = polite (walks away). 1-persistent = selfish (stares at the line).

Exam angle

PredictionQ1

Which persistence method guarantees a collision when two stations wait for the same busy channel?

PredictionQ2

1-persistent CSMA sends with probability 1 as soon as the channel becomes idle.

Slide 14 / 34

P-persistent CSMA

Slide 14: P-persistent CSMA

Notes

  1. Best of both: fewer collisions (like non-persistent) and less idle time (like 1-persistent).

Exam angle

PredictionQ1

In p-persistent CSMA, a time slot equals:

PredictionQ2

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).

Slide 15 / 34

Flow diagram for three persistence methods

Slide 15: Flow diagram for three persistence methods

Notes

  1. p-persistent: draw a random R in [0, 1]; if R ≤ p send, otherwise wait a slot.

Slide 16 / 34

Persistent and non-persistent CSMA: throughput

Slide 16: Persistent and non-persistent CSMA: throughput

Notes

  1. Under heavy load, 1-persistent does worst (collisions); small p and non-persistent do best.

Exam angle

PredictionQ1

Under heavy load, which CSMA variant has the lowest throughput on the graph?

Slide 17 / 34

CSMA/CD (Collision Detection)

Slide 17: CSMA/CD (Collision Detection)

Notes

  1. Plain CSMA keeps sending the whole (already ruined) frame. CSMA/CD listens WHILE sending and stops as soon as it detects a collision.

  2. Used on shared Ethernet (bus or hub).

  3. Seen again Ch 4, slide 6: CSMA/CD in classic Ethernet

Exam angle

PredictionQ1

What does CSMA/CD add to CSMA?

Slide 18 / 34

How does a node detect a collision?

Slide 18: How does a node detect a collision?

Notes

  1. Detection = the energy on the wire is higher than what I am sending → someone else is sending too.

Slide 19 / 34

CSMA/CD Protocol

Slide 19: CSMA/CD Protocol

Notes

  1. On collision: ABORT → send a 48-bit JAM → random BACKOFF → try again with the same persistence method.

  2. Memory trick CSMA/CD collision steps: “Abort, Jam, Back off, Retry.”

Exam angle

PredictionQ1

After detecting a collision, a CSMA/CD station first:

PredictionQ2

The jam signal in the slides is:

Slide 20 / 34

Performance of Random Access Protocols

Slide 20: Performance of Random Access Protocols

Notes

  1. Random access: simple, decentralized, great at low load; UNFAIR and unbounded delay at high load.

  2. Alone on the link → full rate R. Busy link → each node gets less than R/M because of collisions.

Exam angle

PredictionQ1

Random access protocols are fair: every station is guaranteed a turn.

PredictionQ2

A single active station using random access can send at:

Slide 21 / 34

Controlled access (scheduling)

Slide 21: Controlled access (scheduling)

Notes

  1. Controlled access: stations take turns → fair, no collisions, but capped at R/M.

  2. Trap Random = can collide, unfair, R when alone. Controlled = never collides, fair, R/M.

Exam angle

PredictionQ1

Which family eliminates collisions completely?

PredictionQ2

The three controlled-access methods are:

Slide 22 / 34

1-Reservation access method

Slide 22: 1-Reservation access method

Notes

  1. Each cycle starts with a reservation frame of N minislots (one per station). A station sets its minislot to reserve a turn.

Exam angle

PredictionQ1

In the reservation method, a reservation frame contains:

Slide 23 / 34

2- Polling

Slide 23: 2- Polling

Notes

  1. 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).

  2. Memory trick SELect = primary SEnds. POLL = primary coLLects.

Exam angle

PredictionQ1

In centralized polling, the primary sends a ___ frame when it wants to send data to a secondary.

PredictionQ2

A secondary with nothing to send answers a poll with:

PredictionQ3

Token passing is an example of distributed polling.

Slide 24 / 34

Select and poll functions in polling access method (Figure 12.19)

Slide 24: Select and poll functions in polling access method (Figure 12.19)

Notes

  1. Left: primary → secondary uses SEL. Right: secondary → primary starts with a POLL.

Slide 25 / 34

Token-passing network

Slide 25: Token-passing network

Exam angle

PredictionQ1

In token passing, a station can send when it:

Slide 26 / 34

Token-passing procedure (Figure 13.13)

Slide 26: Token-passing procedure (Figure 13.13)

Notes

  1. A station keeps the token only while it has data AND its allocated time hasn’t expired, then releases it.

Slide 27 / 34

Channelization

Slide 27: Channelization
Slide 28 / 34

Frequency-division multiple access (FDMA) (Figure 12.21)

Slide 28: Frequency-division multiple access (FDMA) (Figure 12.21)

Notes

  1. Each station has its own frequency band, all the time.

Slide 29 / 34

Channelization: FDMA

Slide 29: Channelization: FDMA

Notes

  1. FDMA: own band, send continuously, R/M even when alone (other bands sit empty).

Exam angle

PredictionQ1

In FDMA, a station that is the only one with data can send at:

Slide 30 / 34

Time-division multiple access (TDMA) (Figure 12.22)

Slide 30: Time-division multiple access (TDMA) (Figure 12.22)

Notes

  1. Each station has its own time slot on the whole bandwidth.

Slide 31 / 34

Channelization: TDMA

Slide 31: Channelization: TDMA

Notes

  1. TDMA: whole bandwidth, but only in your slot. Still R/M on average even when alone.

  2. Trap FDMA, TDMA (and controlled access) cap a lone station at R/M; random access lets it use all of R.

Exam angle

PredictionQ1

In TDMA, a station that is the only one with frames can use every time slot.

PredictionQ2

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.

Slide 32 / 34

Channelization: CDMA

Slide 32: Channelization: CDMA

Notes

  1. CDMA: everyone sends at the same time on the same frequency; codes separate them.

Exam angle

PredictionQ1

In which method do all stations send at the same time over the same channel, separated by codes?

Slide 33 / 34

Simple idea of communication with code (Figure 12.23)

Slide 33: Simple idea of communication with code (Figure 12.23)

Notes

  1. 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.

Slide 34 / 34

FDMA vs. TDMA vs. CDMA

Slide 34: FDMA vs. TDMA vs. CDMA

Notes

  1. FDMA = frequency slices. TDMA = time slices. CDMA = code slices (everyone uses all frequencies all the time).

  2. Memory trick F = Frequency, T = Time, C = Code.