Physical media and duplex

Work out how long a frame takes on copper, fiber and radio, why a rated speed is not what arrives, and what two stations sending at once do. Physical links and shared access · Computer networks.

One 1,500-byte block of data, the unit the next lesson calls a frame, leaves a computer three ways: from a 100 Mb/s copper port, from a 1 Gb/s copper port, and from a 1 Gb/s port into 2 km of fiber. A student expects the faster port to make everything ten times quicker. What does a link's rated speed decide about how long data takes and how much of it arrives, and what changes when both ends send at once?

Two delays: leaving and traveling

The physical layer, often shortened to PHY, turns bits into a signal on a medium and back into bits at the far end. Sending a frame costs two separate delays. Serialization time is how long the sender needs to put every bit on the wire: bits divided by the line rate. The frame holds 1,500 x 8 = 12,000 bits (headers come in below). At 100 Mb/s (100,000,000 bits per second) that takes 120 microseconds (µs, a millionth of a second); at 1 Gb/s it takes 12 µs.

Propagation time is how long the signal needs to cross the link: distance divided by signal speed. In copper and fiber a signal moves at about 2 x 10^8 m/s, which is 5 µs per kilometer, so 100 m takes 0.5 µs and 2 km takes 10 µs. Radio in air travels at about 3 x 10^8 m/s.

On an idle link the first bit arrives after the propagation time and the last bit one serialization time later, so the frame is fully received after both added together: 120 + 0.5 = 120.5 µs, 12 + 0.5 = 12.5 µs and 12 + 10 = 22 µs.

One frame, three links

Read the steps as text

  1. A 1,500-byte frame, 12,000 bits, is sent over three links, drawn on one time axis. A link's delay is serialization time plus propagation time.
  2. At 0 µs the first bit leaves the sender on 100 Mb/s copper, 1 Gb/s copper and 1 Gb/s fiber. All the links start together.
  3. Serialization time is bits divided by rate, and 1 Mb/s moves 1 bit per µs. On 100 Mb/s copper, 12,000 bits / 100 Mb/s = 120 µs. On 1 Gb/s copper, 12,000 bits / 1,000 Mb/s = 12 µs. On 1 Gb/s fiber, 12,000 bits / 1,000 Mb/s = 12 µs.
  4. Propagation time is distance divided by signal speed, so the rate does not change it. On 100 Mb/s copper, 100 m / (2 x 10^8 m/s) = 0.5 µs. On 1 Gb/s copper, 100 m / (2 x 10^8 m/s) = 0.5 µs. On 1 Gb/s fiber, 2,000 m / (2 x 10^8 m/s) = 10 µs.
  5. The last bit arrives one serialization time after the first bit. On 100 Mb/s copper, 120 µs + 0.5 µs = 120.5 µs. On 1 Gb/s copper, 12 µs + 0.5 µs = 12.5 µs. On 1 Gb/s fiber, 12 µs + 10 µs = 22 µs.
  6. Finished. The frame is fully received after 120.5 µs on 100 Mb/s copper, 12.5 µs on 1 Gb/s copper and 22 µs on 1 Gb/s fiber.

Ten times the rate cut the 100 m trip from 120.5 µs to 12.5 µs, a factor of 9.6, because the 0.5 µs of travel did not shrink. Over 20 km of fiber, travel takes 100 µs, so a 10 Gb/s port in place of a 1 Gb/s one cuts 112 µs only to 101.2 µs.

Copper, fiber and radio

Twisted-pair copper is the cable already in most walls: Gigabit Ethernet over it (1000BASE-T) reaches 100 m per segment, and electrical noise from motors or nearby cables can corrupt it. Fiber carries light through glass, so electrical interference does not touch it: multimode fiber reaches hundreds of meters and single-mode fiber kilometers to tens of kilometers. Radio needs no cable, but its signal spreads through shared air, so distance, walls and other transmitters change what a receiver can decode.

Use copper inside a building under 100 m, fiber between buildings or beside electrical noise, and radio where a cable cannot go; the figures are typical.

Rated speed against delivered data

A link's capacity is its line rate, the bits per second it can signal. Throughput is the bits per second that cross a stated boundary, so it always needs one; here, the sender's frame boundary, counting every frame sent. Goodput is the rate of useful payload delivered, each payload counted once, with no headers and no damaged frames.

For this untagged Ethernet example, count an 8-byte preamble and start delimiter, a 14-byte header, a 4-byte frame check sequence (FCS) and a 12-byte inter-frame gap alongside 1,500 bytes of payload. The preamble lets the receiver synchronize, and the gap is idle time between frames. That is 1,538 bytes, or 12,304 bits, which takes 123.04 µs at 100 Mb/s. The preamble and gap are not part of the frame the receiver reads, so throughput counts 1,518 of the 1,538 bytes: 100 x 1,518 / 1,538 = 98.7 Mb/s. At best, payload uses 1,500 / 1,538 = 97.5 % of the line.

Now send five frames back to back. Frame 2 is damaged, so the receiver's FCS check fails and it discards the frame; frame 5 repeats it. Use a measurement window of five frame-times, including a gap after the fifth frame: 5 x 123.04 = 615.2 µs. Only four payloads arrive intact: 4 x 1,500 = 6,000 of the 7,690 bytes sent. Goodput is 100 x 6,000 / 7,690 = 78.02 Mb/s, 78 % of capacity.

Capacity, throughput and goodput

Read the steps as text

  1. Frames go out back to back on a 100 Mb/s link. Each carries 1,500 bytes of payload and 38 bytes of overhead, 1,538 bytes on the line.
  2. Frame 1 puts 1,538 bytes on the line: 1,500 payload + 8 preamble + 14 header + 4 FCS + 12 gap. That takes 12,304 bits / 100 Mb/s = 123.04 µs.
  3. A bit of frame 2 is damaged on the way, from 123.04 µs to 246.08 µs. The receiver's frame check fails, so it discards the frame: the 1,500 bytes add no goodput.
  4. Frame 3 runs from 246.08 µs to 369.12 µs. It arrives intact and adds 1,500 bytes, 3,000 bytes delivered so far.
  5. From 369.12 µs to 492.16 µs, frame 4 adds another 1,500 bytes of payload: 4,500 bytes delivered so far.
  6. Frame 5 repeats frame 2 from 492.16 µs to 615.2 µs. This copy arrives intact, so the 1,500 bytes of frame 2 count once, 6,000 bytes delivered in all.
  7. Capacity is the rate the line can signal: 100 Mb/s. The 5 frames use the line for 5 x 123.04 µs = 615.2 µs.
  8. At the sender frame boundary, throughput counts 1,518 of the 1,538 bytes in each frame, leaving out the preamble and the gap: 100 x 1,518 / 1,538 = 98.7 Mb/s, 98.7 % of capacity.
  9. Goodput counts each payload once: 4 x 1,500 = 6,000 of the 7,690 bytes sent, so 100 x 6,000 / 7,690 = 78.02 Mb/s, 78 % of capacity. The one damaged frame was discarded and sent again.
  10. Finished. Of 100 Mb/s of capacity, 98.7 Mb/s crosses the sender frame boundary and 78.02 Mb/s is delivered payload.

Both ends at once

On a full duplex link both ends can transmit and receive at once. A PHY can separate directions using wire pairs, fibers or other techniques; full duplex does not require separate physical cables. In this error-free example the simultaneous transmissions do not collide. Two stations send 1,500 bytes at 10 Mb/s over 100 m. Each takes 12,000 / 10 = 1,200 µs to send, and each frame arrives 0.5 µs later, at 1,200.5 µs, with no collision.

Two stations, one link each way

Read the steps as text

  1. Station A and Station B each send one frame over a copper link, 100 m long, at 10 Mb/s. A full duplex link lets stations transmit in both directions at once.
  2. Station A starts at 0 µs and sends 1,500 bytes: 12,000 bits / 10 Mb/s = 1,200 µs. Station B starts at 0 µs and sends 1,500 bytes: 12,000 bits / 10 Mb/s = 1,200 µs.
  3. The sends overlap from the later start, 0 µs, to the earlier end, 1,200 µs: 1,200 µs - 0 µs = 1,200 µs with both stations transmitting, and neither frame is lost.
  4. Propagation is 100 m / (2 x 10^8 m/s) = 0.5 µs. Station A's frame reaches Station B at 0 µs + 1,200 µs + 0.5 µs = 1,200.5 µs. Station B's frame reaches Station A at 0 µs + 1,200 µs + 0.5 µs = 1,200.5 µs.
  5. Finished. Station B received Station A's frame at 1,200.5 µs and Station A received Station B's at 1,200.5 µs, with no collision.

On a half duplex link a station transmits or receives at a time. Access rules can coordinate turns; simultaneous attempts on a shared collision domain may instead collide. In this idealized shared-wire model, overlapping signals corrupt both frames. Take two stations on a 1,000 m shared copper cable at 10 Mb/s, each sending a 64-byte frame (512 bits, 51.2 µs). Both start at 0 and the first bit needs 5 µs to cross, so neither has heard the other. At 5 µs each hears the other while still sending, and both stop.

Each station then waits some slots (one slot is 512 bit times, 51.2 µs) and may send only when the wire at its end is idle. Station A waits 0 slots, ready at 5 µs, but B's stopped frame passes A until 5 + 5 = 10 µs, so A senses the carrier busy and sends at 10 µs.

Station B waits 1 slot and is ready at 56.2 µs, but A's last bit reaches B at 10 + 51.2 + 5 = 66.2 µs, so B defers and sends then. B's frame arrives at 66.2 + 51.2 + 5 = 122.4 µs, after A's at 66.2 µs. Classic shared Ethernet detects collisions while sending and Wi-Fi tries to avoid them; the shared access and Wi-Fi access lessons show how.

Two stations, one shared wire

Read the steps as text

  1. Station A and Station B each have a frame ready on a half duplex copper link, 1,000 m long, at 10 Mb/s. This example omits the jam signal and the gap between frames.
  2. Station A and Station B both start at 0 µs. Crossing the link takes 1,000 m / (2 x 10^8 m/s) = 5 µs, so neither has heard the other yet. Each frame takes 51.2 µs to send.
  3. Each first bit reaches the other station at 5 µs. Both stations are still sending, so both frames are corrupted and both stations stop.
  4. Each station waits a chosen number of slots, one slot being 512 bits / 10 Mb/s = 51.2 µs. Station A waits 0 slots (0 µs) and Station B 1 slot (51.2 µs).
  5. Station A is ready at 5 µs, but the last bit of Station B's stopped frame left B at 5 µs and reaches A at 5 µs + 5 µs = 10 µs. A senses the carrier busy, defers and sends at 10 µs.
  6. Station B is ready at 56.2 µs, but Station A's frame is still going out: the last bit leaves A at 10 µs + 51.2 µs = 61.2 µs and reaches B at 61.2 µs + 5 µs = 66.2 µs. B senses the carrier busy, defers and sends at 66.2 µs.
  7. A frame arrives one send time plus one crossing time after the send begins. Station A's frame arrives at 10 µs + 51.2 µs + 5 µs = 66.2 µs. Station B's frame arrives at 66.2 µs + 51.2 µs + 5 µs = 122.4 µs.
  8. Finished. After one collision, Station A's frame was delivered at 66.2 µs and Station B's at 122.4 µs.

These numbers use an idle link and omit queuing and processing. The first sections treat 1,500 bytes as the whole frame; the goodput example adds 38 bytes of framing, preamble and gap. The retry model omits the Ethernet jam signal and inter-frame gap, fixes waits at 0 and 1 slots, and does not establish a valid Ethernet cable-length configuration.

Recap

  • A 12,000-bit frame leaves in 120 µs at 100 Mb/s or 12 µs at 1 Gb/s and travels about 5 µs per kilometer, so a faster port shrinks only the first and a longer cable grows only the second.
  • The cited copper Ethernet profile reaches 100 m and can pick up noise; fiber can reach farther and is immune to electrical interference; radio shares the air.
  • Capacity is the rated speed; throughput (98.7 Mb/s) and goodput (78.02 Mb/s) fall below it through overhead and a damaged frame sent again.
  • Full duplex permits both ends to transmit together. In the modeled half-duplex shared wire, simultaneous attempts collide and retry after the wire is idle.

Next: Ethernet frames and error detection.