4.3.5 · D3Computer Networks

Worked examples — Ethernet (IEEE 802.3) — CSMA - CD, frame format

3,895 words18 min readBack to topic

This page builds on the parent Ethernet note. If a term feels new, chase it there or into Propagation Delay vs Transmission Delay.


The scenario matrix

Before solving anything, let us list every kind of problem this topic can ask. Think of it as a checklist: if a worked example below covers a row, that row can never trip you up.

# Case class What makes it special Covered by
A Standard forward — given , length, speed → find The plain "textbook" direction Ex 1
B Bandwidth scaling — double , what happens? Tests the proportionality Ex 2
C Reverse solve — given , find max cable length Rearranging the formula backwards Ex 3
D Degenerate: zero-length cable () Limiting value — what does the rule say when the wire has no length? Ex 4
E Padding trap — data field smaller than 46 bytes Zero/small payload; the pad kicks in Ex 5
F Oversize trap — payload above 1500 The other boundary; frame too big Ex 5
G Backoff dice — expected/worst wait after collisions Randomness, the growth, the cap at 10 Ex 6
H Efficiency word problem — real link, how much wire is "wasted" Combines and into a ratio Ex 7
I Exam twist — collision at a specific station position, not the far end Not-worst-case geometry: partial round trip Ex 8

We use several quantities throughout. Let us earn each symbol once before any example uses it:

The master formula from the parent note, which every example leans on:


Row A — Standard forward direction


Row B — What if bandwidth doubles?


Row C — Solve the formula backwards


Row D — The degenerate case: no cable at all


Row E + F — Payload boundaries and the pad


Row G — Binary exponential backoff dice

The figure below is the derivation for this row: each horizontal bar is the "dice" you roll after a given collision, and its length is literally the number of faces on that dice. Watch the bars double as you read downward — that doubling is the "exponential" in binary exponential backoff, and the point where the bars stop growing is the cap at . Refer back to it as you work the numbers.

Figure — Ethernet (IEEE 802.3) — CSMA - CD, frame format
Figure s01 — Backoff windows as growing dice. Reading top to bottom, each bar is the range of choices for the random number after collision : after collision 0 the range is (2 choices), after collision 1 it is (4 choices), and each later bar is twice as wide as the one above. A wider bar means more possible waits, so a smaller chance two stations pick the same and collide again. The widening halts at , where the range freezes at .


Row H — Real-world efficiency word problem

Before the example, we must earn the efficiency symbol we will use. We measure one send-cycle of a collision-free transmission as: the time actually pushing bits onto the wire () plus the unavoidable dead time waiting one round-trip () so the sender can be sure no collision came back. The useful fraction of that cycle is:


Row I — The exam twist: collision not at the far end

The figure shows where on the wire the second station sits — the round-trip is only as long as the distance to that station and back, not the full cable.

Figure — Ethernet (IEEE 802.3) — CSMA - CD, frame format
Figure s02 — Collision geometry for Ex 8. Station A (lavender, the sender) sits at the left end; station B (coral) is only 600 m along a 2000 m cable; the far end (mint) is 2000 m away. A's signal travels A→B in (top arrow), the collision is born at B (star), and the garble echoes B→A in another (bottom arrow). The detection round-trip is therefore governed by the 600 m distance to B, not the full 2000 m — that is the whole point of the twist.


Recall Cover the answers and test yourself

Ex 1 — for 2500 m, 10 Mbps? ::: 250 bits = 31.25 bytes (needed), rounded up to the 64-byte standard. Ex 2 — Double the bandwidth: what happens to ? ::: It doubles (250 → 500 bits), because . Ex 3 — Max cable length for 512-bit frame at 10 Mbps? ::: 5120 m (5.12 km). Ex 4 — when cable length is 0? ::: 0 bits — no minimum needed; detection is instant. Ex 5E — Frame size when app sends 20 bytes? ::: 64 bytes (data padded to 46). Ex 5F — App sends 1600 bytes? ::: Ethernet cannot fragment; a higher layer (IP) splits it, since payload exceeds the 1500-byte max. Ex 6a — Expected wait after 3rd collision (slot 51.2 µs)? ::: 3.5 slots = 179.2 µs. Ex 6b — Max wait after 12th collision? ::: 1023 slots = 52377.6 µs (window capped at n=10). Ex 7 — Efficiency, 1518-byte frame, 1 km link (idealized)? ::: ≈ 99.2%; ≈ 98.4% once the 96-bit IFG is included. Ex 8 — Detection time for collision at a 600 m station? ::: 6 µs (round trip over 600 m).


Connections

  • Propagation Delay vs Transmission Delay — every example here juggles vs ; master that contrast first.
  • CRC and Error Detection — the FCS field checked in Ex 5's frame layout.
  • MAC Addresses — the 6-byte DA/SA fields counted in every frame-size sum.
  • Switched vs Shared Ethernet — Ex 7's efficiency is why switches replaced shared cable.
  • ALOHA and Slotted ALOHA — the backoff dice of Ex 6 descend from ALOHA's random retry.
  • CSMA-CA — the wireless cousin where you cannot listen-while-sending, so these detection sums do not apply.