4.3.5 · D1Computer Networks

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

2,242 words10 min readBack to topic

Before you can read the parent note, you must own every letter and picture it leans on. We build them in order — each one uses only the ones above it.


1. A "bit" and a "byte" — the atoms of everything

Picture: think of a row of light switches. Each switch is a bit (off = 0, on = 1). Eight switches side by side make one byte.

Why the topic needs it: Ethernet measures frames in both bits (for timing math) and bytes (for the frame table). You will constantly convert: , so . If you can't switch units fluently, the "512 bits = 64 bytes" line looks like magic.

Recall Quick check

How many bits in 46 bytes? ::: bits.


2. Bandwidth — how fast bits leave the sender

Picture: imagine bits as beads dropping onto a conveyor belt. is how many beads per second the machine drops. A faster machine (bigger ) drops more beads each second.

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

Why the symbol ? Every timing formula on the parent page needs to know how quickly bits become "wire signal." Without you cannot turn "512 bits" into "how many seconds."


3. The medium as one shared line — "Multiple Access"

Why the topic needs it: "Multiple Access" (the MA in CSMA/CD) means all stations share this one line equally — there is no boss handing out turns. This is the whole reason a decentralized etiquette (sense, detect, back off) is required. Contrast this with Switched vs Shared Ethernet, where a switch gives each station its own line and collisions vanish.


4. The symbol — how long is a frame?

Picture: the beads from Section 2 lined up as one message. If the message is beads long, then is simply "how many beads I must drop to send the whole thing."

Why it needs a name: The central result is an inequality solved for . We introduce before the timing formulas so that every later line already knows what it means: "the thing we are solving for," and as "the boundary case where the inequality becomes an equality."


5. Distance, speed, and TIME — where delay comes from

Two different times live on this wire. Confusing them wrecks the whole topic, so we define each with its own picture. This split is the heart of Propagation Delay vs Transmission Delay.

5a. Propagation delay — travel time of the signal

Two new symbols enter here, so we name them first:

Picture: you shout across a canyon. The delay before your friend hears the first sound is propagation delay — it depends on how wide the canyon is () and how fast sound moves (), not on how loudly or how long you shout.

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

Why m/s? Electrical signals in copper travel at roughly two-thirds the speed of light. That number lets us turn "2 km of cable" into "10 microseconds of travel."

5b. Transmission delay — time to shove the bits out

Picture: back to the conveyor belt. If a frame is beads long and the machine drops beads per second, the time until the last bead leaves is . This is about the length of the message, not the length of the cable.


6. Round-trip, slot time, and the factor of

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

Why the topic needs it: Every headline formula hides this factor. and both come from the same out-and-back picture. If you ever write where belongs, your answer is halved and wrong.


7. The detection rule — and deriving step by step

Now we combine the pieces built above. This is the single most important derivation on the whole parent page, so we do it one line at a time.

Now derive . Each step says WHAT we do and WHY.

  • WHAT: replace by its definition (from Section 6). WHY: we want the final answer written in terms of the raw propagation delay and bandwidth, not the shorthand .
  • WHAT: replace by its definition (from Section 5b). WHY: we want a condition on the frame length , not on time, so we substitute the formula that contains .
  • WHAT: multiply both sides by . WHY: to isolate alone on the left. Since , the inequality direction is unchanged.
  • WHAT: read off the smallest allowed — the boundary where "" becomes "". WHY: that boundary is the minimum frame size.

So the whole rule is just: time to send time for the crash to come back, rewritten in terms of length.

Recall Quick check

Starting from , why can we multiply by without flipping the sign? ::: Because (bits/second) is always positive, and multiplying an inequality by a positive number keeps its direction.


8. Exponents and — the language of backoff

Picture: a doubling staircase. Each collision climbs one step and doubles the number of hiding spots (random wait choices). After collision there are spots ; after there are spots.

Why the topic needs it: "Binary exponential backoff" is this staircase. After the -th collision the station waits , where is picked uniformly from . More collisions ⇒ bigger window ⇒ smaller chance two stations pick the same wait.

Recall Quick check

After the 3rd collision, from what set is chosen? ::: .


9. Reading the parent's other symbols


Prerequisite map

bit and byte

bandwidth B bits per second

frame length L in bits

cable distance d

propagation delay Tp

signal speed v

transmission delay T transmit = L over B

slot time T slot = 2 Tp

detection rule T transmit greater or equal 2Tp

min frame size Lmin = 2 Tp B

powers of two 2 to the n

binary exponential backoff

Ethernet CSMA CD


Equipment checklist

Convert 64 bytes to bits
bits.
State bandwidth in plain words and units
bits pushed onto the wire per second, measured in bits/s (bps).
Difference between and
= signal travel time (depends on cable length and speed); = time to emit all bits (depends on frame length and bandwidth).
What do and stand for
= cable length in metres; = signal speed along the copper (~ m/s).
Why the factor 2 appears in
the collision news must travel out to the far end and back — two crossings.
Formula for propagation delay
, distance over signal speed.
Formula for transmission delay
.
Definition of slot time
, the worst-case round-trip time.
Derive from the detection rule
.
What set does come from after the -th collision
.
Value of
.
What happens after 16 collisions
the frame is dropped and an error is reported to the upper layer.
Is the preamble counted in the 64-byte minimum
No — only Destination MAC through FCS.
Meaning of "half-duplex"
send or receive, but not both at the same instant.

See the parent topic: Ethernet — CSMA/CD & Frame Format.