Computer Networks Module 2 – Switching, performance and the physical layer
Transmission media: copper, fibre and radio
Twisted pair, coax, multimode and single-mode fibre and radio compared by reach, rate and interference, with Ethernet PHY names and port counters decoded.
What you will learn
- Compare twisted pair, coaxial cable, multimode fibre, single-mode fibre and radio by reach, rate and interference
- Read Ethernet physical-layer names such as 1000BASE-T and 10GBASE-LR
- Choose the next diagnostic check from interface counter changes
Before you start
What you’ll learn · Before you start
What you will learn
- Compare twisted pair, coaxial cable, multimode fibre, single-mode fibre and radio by reach, rate and interference
- Read Ethernet physical-layer names such as 1000BASE-T and 10GBASE-LR
- Choose the next diagnostic check from interface counter changes
Before you start
On this page
Two buildings 2 km apart need a medium that can reach them; a typical 100 m twisted-pair Ethernet channel cannot span that distance directly. A transmission medium carries the signal between devices: copper wires, glass fibre or radio waves in the air. The choice decides how far a link can reach, how fast it can run and what can disturb it. Twisted-pair copper is easy to install and can power compatible devices; the named conventional copper Ethernet channels reach up to 100 m. Coaxial cable shields its signal and still carries cable broadband. Fibre carries light, reaches hundreds of metres on multimode glass and tens of kilometres on single-mode glass, and electrical interference cannot touch it. Radio needs no cable at all, but everyone in range shares the same air and the signal fades quickly with distance. Compare the five media, read PHY names and use counter changes to select the next investigation.
Copper trades convenient installation for a limited reach
A twisted pair is two insulated wires twisted around each other. The signal is sent as the difference between the two wires. Twisting helps outside interference couple similarly to both, and the differential receiver rejects much of that common-mode pickup; imbalance and other coupling can still introduce noise. Office and home Ethernet cables hold four such pairs. The named conventional copper Ethernet channels are specified for runs of up to 100 m with appropriate cabling: IEEE 802.3an, for example, specifies 10GBASE-T over twisted-pair cabling runs of up to 100 m. 100BASE-TX uses two of the four pairs and 1000BASE-T all four, which matters when one pair is broken. The same cable can also deliver power: IEEE 802.3 includes the powering of devices through twisted-pair links, and IEEE 802.3bt raised the power available by using all four pairs. That is how a desk phone, a camera or an access point can run without a power socket of its own.
A coaxial cable has one centre conductor inside a cylindrical shield. The shield reduces radiation and outside coupling, so coax can carry high frequencies over useful distances. Shielding and connector quality still matter. The first Ethernets ran on it (10BASE5 and 10BASE2, whose names hold their segment lengths of about 500 m and 185 m), and cable broadband still does: CableLabs specifies DOCSIS 4.0 for hybrid fibre-coax networks at up to 10 Gb/s downstream and 6 Gb/s upstream, figures from the specification rather than measured service.
Compare the four-pair gigabit channel with the two-pair 100BASE-TX mode in the scene. It explains why a lower negotiated rate can suggest a cabling check without proving which pair is faulty:
The drawing shows the whole scene; its 4 steps are listed below.
Every step as text
- 1000BASE-T. The named gigabit mode uses all four cable pairs. The channel must also meet its specified electrical performance.
- 100BASE-TX. The named 100 Mb/s mode uses two pairs. A PHY with an enabled downshift feature can select a lower mode after failed gigabit attempts.
- The observed rate. This rate is consistent with several cases: a cabling problem, a configured limit or a peer whose supported modes stop at 100 Mb/s. It is not proof of a broken pair.
- Next evidence. Read both peers' supported and advertised modes and configuration. Test or substitute the cable using a known compatible channel, then observe negotiation again.
Read the peer’s supported and advertised modes too. A 100 Mb/s result is also consistent with a configured limit or a 100 Mb/s-only peer; the negotiated rate alone cannot select among those causes.
Checkpoint
Check: Copper modes and pair requirements
Fibre reach depends on modes, optics and a loss budget
An optical fibre is a glass core inside a glass cladding of slightly lower refractive index, which keeps the light in the core by total internal reflection. Light is immune to electrical interference and glass does not conduct, so fibre suits noisy machine rooms and links between buildings. The signal travels at about 5 µs a kilometre, the planning value of ITU-T G.114.
- multimode fibre: Optical fibre that supports several spatial propagation modes at the stated wavelength. has a wide core, 50 or 62.5 µm. Light takes many paths (modes) of slightly different lengths, so a short pulse spreads out as it travels, and the faster the link, the shorter the distance before pulses blur. Cisco’s data sheet for its 10GBASE-SR optics (850 nm) gives 33 m on OM1 fibre, 82 m on OM2, 300 m on OM3 and 400 m on OM4: enough for links inside a building or a data centre.
- single-mode fibre: Optical fibre designed to support one spatial propagation mode at its operating wavelength. supports one spatial mode at its operating wavelength. G.652.D gives nominal mode field diameter: A measure of the transverse optical-field distribution in a fibre; it is distinct from the glass core’s physical diameter. of 8.6 to 9.2 µm at 1310 nm. This describes the optical field, rather than specifying the glass core diameter. Removing multimode dispersion does not remove chromatic dispersion or every reach limit. The same data sheet gives 10 km for 10GBASE-LR at 1310 nm and 40 km for 10GBASE-ER at 1550 nm. G.652.D cable loses at most 0.40 dB per kilometre from 1310 to 1625 nm and 0.30 dB at 1530 to 1565 nm; short indoor cables may lose up to 1.0 dB per kilometre.
A fibre link needs compatible optics and fibre within their specified operating conditions. One budget checks whether the received light exceeds the receiver’s sensitivity; that margin alone cannot establish a working link. The example adds up the losses of a 2 km run between two buildings, with example figures for the connectors, splices and optics:
# A loss budget for a 2 km single-mode fibre run between two buildings, and the delay of
# copper and fibre runs. Cable loss is the ITU-T G.652.D maximum; the connector and splice
# losses and the transceiver figures are example values: use your parts' data sheets.
KM = 2.0
FIBRE_DB_PER_KM = 0.4 # G.652.D: at most 0.40 dB/km from 1310 to 1625 nm
CONNECTORS, CONNECTOR_DB = 2, 0.5 # example figures
SPLICES, SPLICE_DB = 2, 0.1 # example figures
loss = KM * FIBRE_DB_PER_KM + CONNECTORS * CONNECTOR_DB + SPLICES * SPLICE_DB
print(f"fibre {KM * FIBRE_DB_PER_KM:.2f} dB + connectors {CONNECTORS * CONNECTOR_DB:.2f} dB + splices {SPLICES * SPLICE_DB:.2f} dB = {loss:.2f} dB")
TX_DBM, RX_SENSITIVITY_DBM = -8.0, -14.0 # an example transceiver pair
received = TX_DBM - loss
print(f"received: {TX_DBM} dBm - {loss:.2f} dB = {received:.2f} dBm; margin {received - RX_SENSITIVITY_DBM:.2f} dB")
# Delay: light in fibre about 5 us per km (ITU-T G.114); in twisted pair the signal moves at
# roughly two-thirds of the speed of light (an example figure; cables state their own value).
C = 299_792_458
print(f"2 km of fibre: {KM * 5:.1f} us")
for metres in (90, 100):
print(f"{metres} m of twisted pair at 0.66 c: {metres / (0.66 * C) * 1e9:.0f} ns") Output
fibre 0.80 dB + connectors 1.00 dB + splices 0.20 dB = 2.00 dB received: -8.0 dBm - 2.00 dB = -10.00 dBm; margin 4.00 dB 2 km of fibre: 10.0 us 90 m of twisted pair at 0.66 c: 455 ns 100 m of twisted pair at 0.66 c: 505 ns
Recorded with Python 3.14.8 on macOS 26 arm64. To run it yourself: mise exec python@3.14.8 -- python3 loss_budget.py
Runs on this device, in your browser. The first run downloads Python (about 13.5 MB), which is kept for the next runs.
Your run, in this browser
Change KM from 2 to 3 and compare the fibre loss and sensitivity margin with the same assumed parts.
The fibre itself costs only 0.8 dB over 2 km; the connectors cost more than the glass. The 4 dB to spare leave room for a dirty connector or a tight bend, which is why loss budgets keep a margin. The delay row shows the other side of the comparison: 2 km of fibre adds 10 µs, while a full 100 m copper run adds about half a microsecond.
Follow the same transmitter, cable, connectors, splices and receiver. Every subtraction uses an explicitly assumed part value; the actual parts’ specifications and a loss measurement decide an installed link:
The drawing shows the whole scene; its 5 steps are listed below.
Every step as text
- Transmit. The example transmitter emits −8 dBm. An installed design uses the specified minimum transmitter output for the required operating conditions.
- Fibre. The budget assigns 0.4 dB/km to this run, for a total of 0.8 dB. Use the cable's wavelength-specific specification.
- Connectors and splices. Two assumed 0.5 dB connectors and two assumed 0.1 dB splices add 1.2 dB. The total path loss is 2.0 dB.
- Receive. Subtracting 2 dB of path loss from −8 dBm gives −10 dBm at the receiver. Loss is a ratio; dBm is an absolute power level.
- Sensitivity margin. Against an assumed −14 dBm sensitivity the margin is 4 dB. The installed cable, connectors, splices and compatible parts need their actual specifications and loss measurements.
For this example, −8 dBm minus 2 dB is −10 dBm at the receiver, four dB above its −14 dBm sensitivity. The assumed values explain the arithmetic; the installed parts and measured losses still decide the actual margin.
Checkpoint
Check: Fibre modes and optical budget
Radio trades cabling for a shared and variable channel
Radio links send the signal through the air, so they need no cable and allow movement, while antenna patterns determine where power is radiated. The free-space model below specifies ideal isotropic-antenna assumptions. ITU-R P.525 gives the loss between two ideal antennas in free space:
The units are MHz and kilometres. At 2,437 MHz over 10 m, d = 0.010 km and the result is about 60.1 dB; using 10 as kilometres would add 60 dB to the answer by mistake.
# Free-space loss between ideal antennas (ITU-R P.525): L = 32.4 + 20 log10(f MHz) + 20 log10(d km).
# Walls, bodies and other radios come on top; this is only the loss of spreading out.
from math import log10
def free_space_db(mhz, metres):
return 32.4 + 20 * log10(mhz) + 20 * log10(metres / 1000)
bands = {"2.4 GHz": 2_437, "5 GHz": 5_500, "6 GHz": 6_500} # a channel in each band
print("distance " + "".join(f"{b:>10}" for b in bands))
for metres in (1, 10, 30):
print(f"{metres:>5} m " + "".join(f"{free_space_db(f, metres):>7.1f} dB" for f in bands.values()))
print(f"6 GHz against 2.4 GHz at any distance: {free_space_db(6_500, 10) - free_space_db(2_437, 10):.1f} dB more")
print(f"three times the distance: {20 * log10(3):.1f} dB more") Output
distance 2.4 GHz 5 GHz 6 GHz
1 m 40.1 dB 47.2 dB 48.7 dB
10 m 60.1 dB 67.2 dB 68.7 dB
30 m 69.7 dB 76.7 dB 78.2 dB
6 GHz against 2.4 GHz at any distance: 8.5 dB more
three times the distance: 9.5 dB more
Recorded with Python 3.14.8 on macOS 26 arm64. To run it yourself: mise exec python@3.14.8 -- python3 free_space.py
Runs on this device, in your browser. The first run downloads Python (about 13.5 MB), which is kept for the next runs.
Your run, in this browser
Tripling the distance costs 9.5 dB, and a channel in the 6 GHz band loses 8.5 dB more than one at 2.4 GHz over the same distance, before walls, furniture and people add their own losses. Wi-Fi uses all three bands, 2.4, 5 and 6 GHz, and the Wi-Fi Alliance presents 6 GHz as the band for wide channels: Wi-Fi 7’s 320 MHz channels sit there. In this equal-antenna free-space comparison the lower frequency has less path loss. Higher bands can offer room for wider channels, while achievable rate also depends on signal quality, coding and airtime.
Radio is also a shared medium. Receivers that can detect a transmission share a channel; hidden nodes may not hear one another. Nearby same-channel networks can contend or interfere, and signals arriving by several paths (reflections off walls) can partly cancel each other. Lower S/N reduces the ideal channel-capacity bound; the implementation’s rate adaptation, retries and scheduling determine measured throughput, and devices must take turns, which a later lesson on Wi-Fi covers.
RF Wavelength, Antenna & Path Loss Calculator Work out wavelengths, antenna sizes and free-space path loss for any frequency and distance.Walk through the same 10 m path in two frequency bands, then lengthen it to 30 m. The scene changes one input at a time and retains the ideal-antenna, unobstructed-path assumptions:
The drawing shows the whole scene; its 4 steps are listed below.
Every step as text
- Initial path. Convert 10 m to 0.010 km. The P.525 free-space formula gives about 60.1 dB for this frequency and distance.
- Change frequency. The same path at 6,500 MHz has about 68.7 dB of ideal free-space loss. The difference is about 8.5 dB before other impairments.
- Change distance. Tripling the initial distance adds 20 log₁₀3, about 9.5 dB. The rounded recorded loss is 69.7 dB.
- Measure real coverage. Walls, antenna characteristics, reflections and other transmitters are outside this ideal loss calculation. They require evidence from the actual link.
Checkpoint
Check: Radio loss and shared-channel assumptions
Distance and installation needs narrow the media choice
The two tables put the media side by side: copper and radio first, then the two kinds of fibre.
| Criterion | Twisted pair | Coaxial cable | Radio (Wi-Fi) |
|---|---|---|---|
| Example link | 10GBASE-T: 10 Gb/s over up to 100 m | DOCSIS 4.0: up to 10 Gb/s downstream on hybrid fibre-coax | A shared channel; its rate follows the channel width and the signal-to-noise ratio |
| Interference | Twisting and differential signalling cancel most of it | The shield keeps it out | Shares the air with every nearby radio |
| Strengths | Easy to fit; the cable can carry power | Robust, and already in place in cable networks | No cable; devices can move |
| Weak points | About 100 m per run | Bulky; old Ethernet segments were 185 to 500 m | Loss grows with distance, frequency and walls |
| When to choose | Desks, access points and cameras within 100 m | Cable broadband | Mobile devices and places without cabling |
| Criterion | Multimode fibre | Single-mode fibre |
|---|---|---|
| Modes and dimensions | 50 or 62.5 µm core; several spatial modes | One spatial mode; G.652.D nominal mode field diameter 8.6–9.2 µm at 1310 nm |
| Example link | 10GBASE-SR: 10 Gb/s over 300 m of OM3 or 400 m of OM4, at 850 nm | 10GBASE-LR: 10 Gb/s over 10 km at 1310 nm; 10GBASE-ER: 40 km at 1550 nm |
| What limits it | Pulses spread as the paths differ, more at higher rates | Loss: at most 0.40 dB per km for G.652.D cable |
| Interference | Immune to electrical interference | Immune to electrical interference |
| When to choose | Links inside a building or a data centre | Links between buildings and across cities |
For a camera 80 m from a switch, a supported twisted-pair channel can also carry power, so it addresses two installation needs. For the 2 km inter-building example, the named 100 m copper channel and 300–400 m 10GBASE-SR options are too short. The cited 10GBASE-LR option fits the distance, subject to matching optics, specified fibre and an acceptable measured loss budget.
Radio avoids a cable route but adds a different set of requirements: a supported band, interference conditions, an antenna and path plan, and sufficient measured capacity. Coax remains useful where a compatible cable system already exists. These are example choices within the named interfaces’ specifications, rather than a claim that every copper, fibre or radio system has one universal rate or reach.
Checkpoint
Check: Media choice for the stated installation
A PHY name points to a specific interface specification
IEEE 802.3 names each physical layer by its rate, its signalling and its medium. The number is the rate in Mb/s, or in Gb/s when a G follows it. BASE identifies Ethernet’s baseband signaling family; the complete name selects a PHY: A physical-layer interface specification or the hardware that implements it. specification. The letters after the dash name the medium and sometimes the coding (T for twisted pair, S, L and E for short, long and extended reach on fibre, R for the 64B/66B coding family), and a final digit counts the lanes or wavelengths used side by side. In the oldest coax names the digit was the segment length in hundreds of metres.
Reading an Ethernet PHY name
Text description of the diagram
The diagram reads the name 100GBASE-LR4 in five parts, each beside its meaning.
- 100G: the data rate, 100 Gb/s. Without the G the number is in Mb/s, as in 100BASE-TX.
- BASE: the Ethernet baseband signaling family. The complete name selects one particular physical-layer specification.
- L: the medium, here long-wavelength light on single-mode fibre. S means short wavelength on multimode fibre, E extended reach, T twisted-pair copper.
- R: the coding family, here 64B/66B.
- 4: the four parallel optical lanes of this specified interface. Suffixes have their meaning in each physical-layer specification; they are not a universal parser for every Ethernet name.
# Reading Ethernet physical-layer names: <rate>BASE-<medium and coding>. The rate is in Mb/s
# (or Gb/s with a G), BASE means baseband signalling, and the letters after the dash name the
# medium; a trailing digit counts lanes or wavelengths. Reaches are the ones the lesson cites.
import re
MEDIUM = {
"T": "twisted-pair copper",
"TX": "twisted-pair copper, 4B/5B coding",
"SR": "short wavelength (850 nm), multimode fibre, 64B/66B coding",
"LR": "long wavelength (around 1310 nm), single-mode fibre, 64B/66B coding",
"ER": "extended reach (1550 nm), single-mode fibre, 64B/66B coding",
}
REACH = {
"10BASE5": "500 m segment of thick coax",
"10BASE2": "185 m segment of thin coax",
"10BASE-T": "100 m",
"100BASE-TX": "100 m",
"1000BASE-T": "100 m, all four pairs",
"10GBASE-T": "100 m",
"10GBASE-SR": "300 m on OM3, 400 m on OM4",
"10GBASE-LR": "10 km",
"10GBASE-ER": "40 km",
}
def decode(name):
m = re.fullmatch(r"(\d+)(G?)BASE-?([A-Z]*?)(\d?)", name)
if not m:
raise ValueError(f"{name}: not an Ethernet PHY name")
rate, giga, medium, lanes = m.groups()
speed = f"{rate} {'Gb/s' if giga else 'Mb/s'}"
if not medium: # the oldest names: the digit is the segment length in hundreds of metres
return speed, "coaxial cable", REACH.get(name, "")
what = MEDIUM.get(medium, medium)
if lanes:
what += f", {lanes} lanes"
return speed, what, REACH.get(name, "")
for name in ("10BASE5", "10BASE2", "10BASE-T", "100BASE-TX", "1000BASE-T", "10GBASE-T",
"10GBASE-SR", "10GBASE-LR", "10GBASE-ER", "100GBASE-LR4"):
speed, medium, reach = decode(name)
print(f"{name:13} {speed:9} {medium}" + (f"; reach {reach}" if reach else "")) Output
10BASE5 10 Mb/s coaxial cable; reach 500 m segment of thick coax 10BASE2 10 Mb/s coaxial cable; reach 185 m segment of thin coax 10BASE-T 10 Mb/s twisted-pair copper; reach 100 m 100BASE-TX 100 Mb/s twisted-pair copper, 4B/5B coding; reach 100 m 1000BASE-T 1000 Mb/s twisted-pair copper; reach 100 m, all four pairs 10GBASE-T 10 Gb/s twisted-pair copper; reach 100 m 10GBASE-SR 10 Gb/s short wavelength (850 nm), multimode fibre, 64B/66B coding; reach 300 m on OM3, 400 m on OM4 10GBASE-LR 10 Gb/s long wavelength (around 1310 nm), single-mode fibre, 64B/66B coding; reach 10 km 10GBASE-ER 10 Gb/s extended reach (1550 nm), single-mode fibre, 64B/66B coding; reach 40 km 100GBASE-LR4 100 Gb/s long wavelength (around 1310 nm), single-mode fibre, 64B/66B coding, 4 lanes
Recorded with Python 3.14.8 on macOS 26 arm64. To run it yourself: mise exec python@3.14.8 -- python3 phy_names.py
Runs on this device, in your browser. The first run downloads Python (about 13.5 MB), which is kept for the next runs.
Your run, in this browser
Use the diagram and the recorded name table as a reading aid for the listed interfaces. The suffix is defined by each PHY specification, so the table is not a generic decoder for every possible Ethernet name. In particular, 10BASE2’s 185 m segment is an historical naming convention, rather than exactly two hundred metres.
For 100GBASE-LR4 the four parallel optical lanes belong to one interface, not four separate 100 Gb/s links. Matching the advertised aggregate rate without matching the specified fibre, optics and lane arrangement does not establish compatibility.
Checkpoint
Check: Reading a specified PHY name
Counter changes choose an investigation, not a proven cause
When a link is slow or drops packets, read the port’s counters before changing the software: their pattern can
narrow the investigation, although a counter alone cannot prove a physical cause. On Linux, ip -s -s link show dev <name> prints the interface
statistics that the kernel’s documentation describes: rx_crc_errors counts frames received with a bad CRC,
collisions counts collisions while sending, and tx_window_errors counts late collisions, those after the first 64
bytes of a frame. The ethtool interface reports the negotiated speed and duplex. Switches show the same counters under
their own names. Three symptoms are worth knowing by heart:
- Late collisions on a half-duplex port make a duplex mismatch one hypothesis to check: the other end is set to full duplex and sends whenever it likes. In Cisco’s guide to duplex settings, the end set to half duplex shows late collisions and a fast-rising count of FCS and alignment errors, while the full duplex: Communication in both directions simultaneously; each direction has its own transmission capacity. end can show runts; a full-duplex port should never count collisions at all.
- CRC errors on a full-duplex link without collisions point at the cable, a connector or interference: frames arrive damaged although nobody is colliding.
- A gigabit port that links at 100 Mb/s without errors warrants checking the supported modes and cable pairs. Texas Instruments’ DP83867 data sheet, for example, describes a “speed optimization” that falls back to 100 Mb/s after failed gigabit attempts when only two pairs are connected.
The first example compares two synthetic snapshots of a 100 Mb/s port taken a minute apart. Its output names the next check rather than claiming a confirmed fault:
# Reading interface counters before blaming software. Two snapshots of a port, taken one
# minute apart (example readings): what grew tells you which layer to look at.
before = {"speed_mbps": 100, "duplex": "half", "rx_crc_errors": 112, "late_collisions": 40,
"collisions": 900, "runts": 0, "link_changes": 2}
after = {"speed_mbps": 100, "duplex": "half", "rx_crc_errors": 351, "late_collisions": 133,
"collisions": 2_310, "runts": 0, "link_changes": 2}
def changes(a, b):
return {k: b[k] - a[k] for k in a if isinstance(a[k], int) and b[k] != a[k]}
grew = changes(before, after)
print("grew in one minute:", grew)
if after["duplex"] == "half" and grew.get("late_collisions"):
print("late collisions on this half-duplex 100 Mb/s port: inspect peer duplex and configuration")
print("confirm the cause, use consistent supported settings, then compare fresh counters")
elif grew.get("rx_crc_errors") and not grew.get("collisions"):
print("CRC errors without observed collisions: inspect the cable, connectors and interference")
elif grew.get("link_changes"):
print("the link keeps going up and down: reseat or replace the cable, then the port")
else:
print("none of the listed counter patterns is present; this does not prove link health") Output
grew in one minute: {'rx_crc_errors': 239, 'late_collisions': 93, 'collisions': 1410}
late collisions on this half-duplex 100 Mb/s port: inspect peer duplex and configuration
confirm the cause, use consistent supported settings, then compare fresh counters
Recorded with Python 3.14.8 on macOS 26 arm64. To run it yourself: mise exec python@3.14.8 -- python3 diagnose.py
Runs on this device, in your browser. The first run downloads Python (about 13.5 MB), which is kept for the next runs.
Your run, in this browser
The decision core below uses the same increases and two contrast cases. It asks first about half-duplex late collisions, then CRC increases without collisions, then a rate below the expected mode. Its outcome is a next inspection step; other causes remain possible.
Python 3.14 · main.py
"""Choose a next investigation from authored counter increases."""
Reading = tuple[int, bool, int, int, int]
def next_check(reading: Reading) -> str:
speed, half_duplex, crc, late, collisions = reading
if half_duplex and late > 0:
return "inspect-peer-duplex"
if crc > 0 and collisions == 0:
return "inspect-cable-or-optics"
if speed < 1000:
return "inspect-supported-modes"
return "no-listed-symptom"
readings: list[Reading] = [
(100, True, 239, 93, 1410),
(1000, False, 12, 0, 0),
(100, False, 0, 0, 0),
(1000, False, 0, 0, 0),
]
for number, reading in enumerate(readings, start=1):
print(f"Case {number}: {next_check(reading)}") Recorded with CPython 3.14.8 on macOS 26 arm64. It runs in your browser with Pyodide 314.0.7 (CPython 3.14.2). To run it yourself: python3 main.py
JavaScript Node 24 · main.mjs
function nextCheck([speed, halfDuplex, crc, late, collisions]) {
if (halfDuplex && late > 0) return "inspect-peer-duplex";
if (crc > 0 && collisions === 0) return "inspect-cable-or-optics";
if (speed < 1000) return "inspect-supported-modes";
return "no-listed-symptom";
}
const readings = [
[100, true, 239, 93, 1410],
[1000, false, 12, 0, 0],
[100, false, 0, 0, 0],
[1000, false, 0, 0, 0],
];
for (const [index, reading] of readings.entries()) {
console.log(`Case ${index + 1}: ${nextCheck(reading)}`);
} Recorded with Node.js 24.21.0 LTS (V8 13.6) on macOS 26 arm64. It runs in your browser with QuickJS (quickjs-emscripten 0.32.0). To run it yourself: node main.mjs
Java 25 LTS · Main.java
public class Main {
record Reading(int speed, boolean halfDuplex, int crc, int late, int collisions) {}
static String nextCheck(Reading reading) {
if (reading.halfDuplex() && reading.late() > 0) return "inspect-peer-duplex";
if (reading.crc() > 0 && reading.collisions() == 0) return "inspect-cable-or-optics";
if (reading.speed() < 1000) return "inspect-supported-modes";
return "no-listed-symptom";
}
public static void main(String[] args) {
Reading[] readings = {
new Reading(100, true, 239, 93, 1410),
new Reading(1000, false, 12, 0, 0),
new Reading(100, false, 0, 0, 0),
new Reading(1000, false, 0, 0, 0)
};
for (int index = 0; index < readings.length; index++) {
System.out.println("Case " + (index + 1) + ": " + nextCheck(readings[index]));
}
}
} Recorded with OpenJDK 25.0.4.1 LTS (Eclipse Temurin) on macOS 26 arm64. It runs in your browser with a TeaVM 0.16.0 build in QuickJS (quickjs-emscripten 0.32.0). To run it yourself: java Main.java
C++23 · main.cpp
#include <array>
#include <cstdint>
#include <print>
#include <string_view>
struct Reading {
std::int32_t speed;
bool half_duplex;
std::int32_t crc, late, collisions;
};
std::string_view next_check(const Reading &reading) {
if (reading.half_duplex && reading.late > 0)
return "inspect-peer-duplex";
if (reading.crc > 0 && reading.collisions == 0)
return "inspect-cable-or-optics";
if (reading.speed < 1000)
return "inspect-supported-modes";
return "no-listed-symptom";
}
int main() {
const std::array<Reading, 4> readings{{{100, true, 239, 93, 1410},
{1000, false, 12, 0, 0},
{100, false, 0, 0, 0},
{1000, false, 0, 0, 0}}};
for (std::size_t index = 0; index < readings.size(); ++index)
std::println("Case {}: {}", index + 1, next_check(readings[index]));
} Recorded with Apple clang 21.0.0 (C++23) and GCC 16.2.0 on macOS 26 arm64. It runs in your browser with Clang in WebAssembly (YoWASP) 22.0.0-git20542-10. To run it yourself: clang++ -std=c++23 -O2 -Wall -Wextra -Werror -pedantic -fsanitize=address,undefined main.cpp -o main && ./main
C# 14 · .NET 10 · app.cs
(int Speed, bool HalfDuplex, int Crc, int Late, int Collisions)[] readings =
[
(100, true, 239, 93, 1410),
(1000, false, 12, 0, 0),
(100, false, 0, 0, 0),
(1000, false, 0, 0, 0),
];
for (int index = 0; index < readings.Length; index++)
{
Console.WriteLine(FormattableString.Invariant(
$"Case {index + 1}: {NextCheck(readings[index])}"));
}
static string NextCheck(
(int Speed, bool HalfDuplex, int Crc, int Late, int Collisions) reading)
{
if (reading.HalfDuplex && reading.Late > 0) return "inspect-peer-duplex";
if (reading.Crc > 0 && reading.Collisions == 0) return "inspect-cable-or-optics";
if (reading.Speed < 1000) return "inspect-supported-modes";
return "no-listed-symptom";
} Recorded with C# 14 on .NET 10.0.12 (SDK 10.0.401) on macOS 26 arm64. It runs in your browser with the .NET runtime for WebAssembly 10.0.12. To run it yourself: dotnet run app.cs
C23 · main.c
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
typedef struct {
int32_t speed;
bool half_duplex;
int32_t crc, late, collisions;
} Reading;
static const char *next_check(Reading reading) {
if (reading.half_duplex && reading.late > 0)
return "inspect-peer-duplex";
if (reading.crc > 0 && reading.collisions == 0)
return "inspect-cable-or-optics";
if (reading.speed < 1000)
return "inspect-supported-modes";
return "no-listed-symptom";
}
int main(void) {
static const Reading readings[] = {{100, true, 239, 93, 1410},
{1000, false, 12, 0, 0},
{100, false, 0, 0, 0},
{1000, false, 0, 0, 0}};
for (size_t index = 0; index < sizeof readings / sizeof readings[0]; ++index)
printf("Case %zu: %s\n", index + 1, next_check(readings[index]));
} In C: The half_duplex flag encodes the observed port mode; fixed-width fields hold these authored nonnegative counter increases.
Recorded with Apple clang 21.0.0 (C23) and GCC 16.2.0 on macOS 26 arm64. It runs in your browser with Clang in WebAssembly (YoWASP) 22.0.0-git20542-10. To run it yourself: clang -std=c23 -O2 -Wall -Wextra -Werror -pedantic -fsanitize=address,undefined main.c -o main && ./main
PHP 8.5 · main.php
<?php
declare(strict_types=1);
/** @param array{int, bool, int, int, int} $reading */
function nextCheck(array $reading): string
{
[$speed, $halfDuplex, $crc, $late, $collisions] = $reading;
if ($halfDuplex && $late > 0) {
return 'inspect-peer-duplex';
}
if ($crc > 0 && $collisions === 0) {
return 'inspect-cable-or-optics';
}
if ($speed < 1000) {
return 'inspect-supported-modes';
}
return 'no-listed-symptom';
}
$readings = [
[100, true, 239, 93, 1410],
[1000, false, 12, 0, 0],
[100, false, 0, 0, 0],
[1000, false, 0, 0, 0],
];
foreach ($readings as $index => $reading) {
printf("Case %d: %s\n", $index + 1, nextCheck($reading));
} Recorded with PHP 8.5.11 (CLI) on macOS 26 arm64. It runs in your browser with php-wasm 0.2.0 (PHP 8.5.2). To run it yourself: php main.php
Rust 1.99 · main.rs
struct Reading {
speed: i32,
half_duplex: bool,
crc: i32,
late: i32,
collisions: i32,
}
fn next_check(reading: &Reading) -> &'static str {
if reading.half_duplex && reading.late > 0 {
return "inspect-peer-duplex";
}
if reading.crc > 0 && reading.collisions == 0 {
return "inspect-cable-or-optics";
}
if reading.speed < 1000 {
return "inspect-supported-modes";
}
"no-listed-symptom"
}
fn main() {
let readings = [
Reading {
speed: 100,
half_duplex: true,
crc: 239,
late: 93,
collisions: 1410,
},
Reading {
speed: 1000,
half_duplex: false,
crc: 12,
late: 0,
collisions: 0,
},
Reading {
speed: 100,
half_duplex: false,
crc: 0,
late: 0,
collisions: 0,
},
Reading {
speed: 1000,
half_duplex: false,
crc: 0,
late: 0,
collisions: 0,
},
];
for (index, reading) in readings.iter().enumerate() {
println!("Case {}: {}", index + 1, next_check(reading));
}
} In Rust: A borrowed Reading supplies the decision fields; the returned static string names an inspection step, rather than a confirmed cause.
Recorded with rustc 1.99.0 (edition 2024) on macOS 26 arm64. It runs in your browser with a WebAssembly build on the WASI runner (browser_wasi_shim 0.4.2). To run it yourself: rustc --edition 2024 -O main.rs && ./main
TypeScript 6.0 · main.ts
type Reading = readonly [number, boolean, number, number, number];
function nextCheck([speed, halfDuplex, crc, late, collisions]: Reading): string {
if (halfDuplex && late > 0) return "inspect-peer-duplex";
if (crc > 0 && collisions === 0) return "inspect-cable-or-optics";
if (speed < 1000) return "inspect-supported-modes";
return "no-listed-symptom";
}
const readings: Reading[] = [
[100, true, 239, 93, 1410],
[1000, false, 12, 0, 0],
[100, false, 0, 0, 0],
[1000, false, 0, 0, 0],
];
for (const [index, reading] of readings.entries()) {
console.log(`Case ${index + 1}: ${nextCheck(reading)}`);
} Recorded with TypeScript 6.0.3 (strict), run by Node.js 24.21.0 on macOS 26 arm64. It runs in your browser with QuickJS (quickjs-emscripten 0.32.0) after Sucrase 3.35.1. To run it yourself: npx -p typescript@6.0.3 tsc --noEmit --strict main.ts && node main.ts
Go 1.27 · main.go
package main
import "fmt"
type Reading struct {
Speed int32
HalfDuplex bool
CRC, Late, Collisions int32
}
func nextCheck(reading Reading) string {
if reading.HalfDuplex && reading.Late > 0 {
return "inspect-peer-duplex"
}
if reading.CRC > 0 && reading.Collisions == 0 {
return "inspect-cable-or-optics"
}
if reading.Speed < 1000 {
return "inspect-supported-modes"
}
return "no-listed-symptom"
}
func main() {
readings := []Reading{
{100, true, 239, 93, 1410}, {1000, false, 12, 0, 0},
{100, false, 0, 0, 0}, {1000, false, 0, 0, 0},
}
for index, reading := range readings {
fmt.Printf("Case %d: %s\n", index+1, nextCheck(reading))
}
} Recorded with Go 1.27.1 on macOS 26 arm64. It runs in your browser with the Go compiler in WebAssembly 1.27.1. To run it yourself: go run main.go
Swift 6.4 · main.swift
struct Reading {
let speed: Int
let halfDuplex: Bool
let crc: Int
let late: Int
let collisions: Int
}
func nextCheck(_ reading: Reading) -> String {
if reading.halfDuplex && reading.late > 0 { return "inspect-peer-duplex" }
if reading.crc > 0 && reading.collisions == 0 { return "inspect-cable-or-optics" }
if reading.speed < 1000 { return "inspect-supported-modes" }
return "no-listed-symptom"
}
let readings = [
Reading(speed: 100, halfDuplex: true, crc: 239, late: 93, collisions: 1410),
Reading(speed: 1000, halfDuplex: false, crc: 12, late: 0, collisions: 0),
Reading(speed: 100, halfDuplex: false, crc: 0, late: 0, collisions: 0),
Reading(speed: 1000, halfDuplex: false, crc: 0, late: 0, collisions: 0),
]
for (index, reading) in readings.enumerated() {
print("Case \(index + 1): \(nextCheck(reading))")
} Recorded with Apple Swift 6.4 on macOS 26 arm64. It runs in your browser with a WebAssembly build on the WASI runner (browser_wasi_shim 0.4.2). To run it yourself: swiftc -O main.swift -o main && ./main
Ruby 4.0 · main.rb
# frozen_string_literal: true
def next_check(reading)
speed, half_duplex, crc, late, collisions = reading
return 'inspect-peer-duplex' if half_duplex && late.positive?
return 'inspect-cable-or-optics' if crc.positive? && collisions.zero?
return 'inspect-supported-modes' if speed < 1000
'no-listed-symptom'
end
readings = [
[100, true, 239, 93, 1410],
[1000, false, 12, 0, 0],
[100, false, 0, 0, 0],
[1000, false, 0, 0, 0]
]
readings.each_with_index do |reading, index|
puts "Case #{index + 1}: #{next_check(reading)}"
end Recorded with CRuby 4.0.7 on macOS 26 arm64. It runs in your browser with ruby.wasm 2.10.1 (Ruby 4.0.0). To run it yourself: ruby main.rb
Kotlin 2.4 · Main.kt
data class Reading(
val speed: Int,
val halfDuplex: Boolean,
val crc: Int,
val late: Int,
val collisions: Int,
)
fun nextCheck(reading: Reading): String =
when {
reading.halfDuplex && reading.late > 0 -> "inspect-peer-duplex"
reading.crc > 0 && reading.collisions == 0 -> "inspect-cable-or-optics"
reading.speed < 1000 -> "inspect-supported-modes"
else -> "no-listed-symptom"
}
fun main() {
val readings =
listOf(
Reading(100, true, 239, 93, 1410),
Reading(1000, false, 12, 0, 0),
Reading(100, false, 0, 0, 0),
Reading(1000, false, 0, 0, 0),
)
for ((index, reading) in readings.withIndex()) {
println("Case ${index + 1}: ${nextCheck(reading)}")
}
} Recorded with Kotlin 2.4.20 on Java 25.0.4.1 on macOS 26 arm64. It runs in your browser with a WebAssembly build on the WASI runner (browser_wasi_shim 0.4.2). To run it yourself: kotlinc Main.kt -include-runtime -d main.jar && java -jar main.jar
Dart 3.13 · main.dart
typedef Reading = (int, bool, int, int, int);
String nextCheck(Reading reading) {
final (speed, halfDuplex, crc, late, collisions) = reading;
if (halfDuplex && late > 0) return 'inspect-peer-duplex';
if (crc > 0 && collisions == 0) return 'inspect-cable-or-optics';
if (speed < 1000) return 'inspect-supported-modes';
return 'no-listed-symptom';
}
void main() {
const readings = <Reading>[
(100, true, 239, 93, 1410),
(1000, false, 12, 0, 0),
(100, false, 0, 0, 0),
(1000, false, 0, 0, 0),
];
for (var index = 0; index < readings.length; index++) {
print('Case ${index + 1}: ${nextCheck(readings[index])}');
}
} Recorded with Dart 3.13.5 on macOS 26 arm64. It runs in your browser with a WebAssembly build by dart2wasm 3.13.5. To run it yourself: dart run main.dart
What every language printed
Case 1: inspect-peer-duplex Case 2: inspect-cable-or-optics Case 3: inspect-supported-modes Case 4: no-listed-symptom
Runs on this device, in your browser. The first run downloads Python (about 13.5 MB), which is kept for the next runs.
Runs on this device, in your browser. The first run downloads Python (about 13.5 MB), which is kept for the next runs. Runs on this device, in your browser. The first run downloads JavaScript (about 0.6 MB), which is kept for the next runs. Runs on this device: a JavaScript build of this program (about 9 KB), made when the page was built. The first run also downloads the JavaScript runner (about 0.6 MB), which is kept for the next runs. To change the code, copy it and run it with the command below. Runs on this device: a WebAssembly build of this program (about 150 KB), made when the page was built. Edit runs your changes in the browser: the first edited run downloads the C and C++ compiler (about 29.1 MB), which is kept for the next runs. It is best on a computer. Runs on this device, in your browser. The first run downloads the C and C++ compiler (about 29.1 MB), which is kept for the next runs. It is best on a computer. Runs on this device: a .NET build of this program (about 2 KB), made when the page was built. The first run also downloads .NET (about 3.6 MB), which is kept for the next runs. Edit runs your changes in the browser: the first edited run downloads .NET (about 8.9 MB), which is kept for the next runs. Runs on this device, in your browser. The first run downloads .NET (about 8.9 MB), which is kept for the next runs. Runs on this device: a WebAssembly build of this program (about 8 KB), made when the page was built. Edit runs your changes in the browser: the first edited run downloads the C and C++ compiler (about 29.1 MB), which is kept for the next runs. It is best on a computer. Runs on this device, in your browser. The first run downloads the C and C++ compiler (about 29.1 MB), which is kept for the next runs. It is best on a computer. Runs on this device, in your browser. The first run downloads PHP (about 4.3 MB), which is kept for the next runs. Runs on this device: a WebAssembly build of this program (about 19 KB), made when the page was built. To change the code, copy it and run it with the command below. Runs on this device, in your browser. The first run downloads the JavaScript runner (about 0.9 MB), which is kept for the next runs. Runs on this device: a WebAssembly build of this program (about 716 KB), made when the page was built. Edit runs your changes in the browser: the first edited run downloads the Go compiler (about 18.7 MB), which is kept for the next runs. Runs on this device, in your browser. The first run downloads the Go compiler (about 18.7 MB), which is kept for the next runs. Runs on this device: a WebAssembly build of this program (about 1.7 MB), made when the page was built. To change the code, copy it and run it with the command below. Runs on this device, in your browser. The first run downloads Ruby (about 10.2 MB), which is kept for the next runs. Runs on this device: a WebAssembly build of this program (about 181 KB), made when the page was built. To change the code, copy it and run it with the command below. Runs on this device: a WebAssembly build of this program (about 10 KB), made when the page was built. To change the code, copy it and run it with the command below.Your run, in this browser
In an editable tab, change case 1’s late-collision increase from 93 to 0. Follow the stated decision order and distinguish its next-check label from a confirmed diagnosis.
Late collisions grew by 93 on a port set to half duplex, together with CRC errors and collisions. That pattern warrants a peer-duplex check. Inspect both ends to establish the cause. For the illustrated 10/100 Mb/s case, consistent supported negotiation or matching manual settings address a confirmed mismatch; a counter pattern alone cannot prove that the cable is healthy.
Step through the 239 CRC errors and 93 late collisions. Read the peer’s duplex before calling the mismatch confirmed, change one suspected factor, and compare a fresh busy-period measurement:
The drawing shows the whole scene; its 4 steps are listed below.
Every step as text
- First snapshot. The first synthetic snapshot reports 112 received CRC errors and 40 late collisions. Lifetime counts alone do not say when the faults occurred.
- Second snapshot. One minute later the counts are 351 and 133. Their increases are 239 CRC errors and 93 late collisions.
- Inspect both ends. Late collisions on this half-duplex 100 Mb/s port suggest checking the peer's duplex and configuration. The pattern supports an investigation rather than proving a mismatch.
- Confirm and remeasure. If the peers disagree, configure a consistent supported mode. Observe both ends and fresh counters during traffic; investigate the cable or other causes if errors persist.
Checkpoint
Check: Counters and next evidence
Practise: apply a stated symptom classifier
Exercise · Easy · Python
Select a synthetic investigation bucket
Write diagnose(reading), which applies the following synthetic symptom classifier. Its output names an investigation bucket rather than proving the physical cause of a real link's behavior. reading is a dictionary whose "medium" is "copper", "fibre" or "radio"; the other keys depend on the medium. Return exactly one of "duplex-mismatch", "damaged-cable", "wrong-fibre-type", "radio-interference" or "healthy" by these rules, in this order:
- Copper (
duplex,late_collisions,runts,crc_errors): late collisions, or runts on a full-duplex port, select"duplex-mismatch"; otherwise CRC errors select"damaged-cable". - Fibre (
opticsandfibre): optics of"multimode"type (SR) on"single-mode"fibre, or the other way round, select"wrong-fibre-type"; otherwise CRC errors select the"damaged-cable"investigation bucket. - Radio (
snr_dbandretry_percent): SNR below 15 dB or more than 10% of frames sent again select"radio-interference". The 15 dB and 10% thresholds are authored exercise inputs, not universal radio limits. - Anything else is
"healthy", meaning none of the classifier's listed conditions fired. It does not prove actual link health.
The counters are the increase over one minute, so zero means the counter did not move. The model intentionally groups several possible real causes. Use it to practise branching and priority; a real investigation also reads peer settings, cable or optical evidence and the actual radio conditions.
Starter code · diagnose.py
def diagnose(reading):
"""Return "duplex-mismatch", "damaged-cable", "wrong-fibre-type", "radio-interference" or "healthy"."""
# Replace this line with your code: it only looks at CRC errors.
return "damaged-cable" if reading.get("crc_errors", 0) else "healthy" The sample tests · test_diagnose.py
from diagnose import diagnose
def test_late_collisions_select_the_mismatch_bucket():
"""the copper priority rule selects this bucket before considering CRC errors"""
assert diagnose({"medium": "copper", "duplex": "half", "late_collisions": 93, "runts": 0, "crc_errors": 239}) == "duplex-mismatch"
def test_runts_on_the_full_duplex_side():
"""runts select the authored mismatch bucket; peer evidence is still needed in a real link"""
assert diagnose({"medium": "copper", "duplex": "full", "late_collisions": 0, "runts": 57, "crc_errors": 12}) == "duplex-mismatch"
def test_crc_errors_select_the_cable_bucket():
"""a full-duplex reading with only CRC errors matches the authored cable rule"""
assert diagnose({"medium": "copper", "duplex": "full", "late_collisions": 0, "runts": 0, "crc_errors": 4_120}) == "damaged-cable"
def test_multimode_optics_on_single_mode_fibre():
"""SR optics on a single-mode run"""
assert diagnose({"medium": "fibre", "optics": "multimode", "fibre": "single-mode", "crc_errors": 0}) == "wrong-fibre-type"
assert diagnose({"medium": "fibre", "optics": "single-mode", "fibre": "multimode", "crc_errors": 9}) == "wrong-fibre-type"
def test_errors_on_matching_fibre():
"""matching optics and fibre with CRC errors select the cable investigation bucket"""
assert diagnose({"medium": "fibre", "optics": "single-mode", "fibre": "single-mode", "crc_errors": 380}) == "damaged-cable"
def test_radio():
"""the authored SNR and retry thresholds select radio investigation, not a proven cause"""
assert diagnose({"medium": "radio", "snr_db": 9, "retry_percent": 4}) == "radio-interference"
assert diagnose({"medium": "radio", "snr_db": 32, "retry_percent": 22}) == "radio-interference"
assert diagnose({"medium": "radio", "snr_db": 15, "retry_percent": 10}) == "healthy"
def test_healthy_ports():
"""none of the listed conditions fired; real link health needs more evidence"""
assert diagnose({"medium": "copper", "duplex": "full", "late_collisions": 0, "runts": 0, "crc_errors": 0}) == "healthy"
assert diagnose({"medium": "fibre", "optics": "multimode", "fibre": "multimode", "crc_errors": 0}) == "healthy"
def test_radio_threshold_boundaries_are_strict():
assert diagnose({"medium": "radio", "snr_db": 15, "retry_percent": 10}) == "healthy"
assert diagnose({"medium": "radio", "snr_db": 14.99, "retry_percent": 10}) == "radio-interference"
assert diagnose({"medium": "radio", "snr_db": 15, "retry_percent": 10.01}) == "radio-interference"
def test_classifier_priority_is_explicit():
assert diagnose({"medium": "copper", "duplex": "half", "late_collisions": 1, "crc_errors": 100}) == "duplex-mismatch"
assert diagnose({"medium": "fibre", "optics": "multimode", "fibre": "single-mode", "crc_errors": 100}) == "wrong-fibre-type" A hint
Branch on reading["medium"] first, then check the rules of that medium in the order the prompt gives them. Use reading.get("crc_errors", 0) for counters, so a reading without a counter counts as 0, and remember that a mismatch bucket takes priority over CRC errors in this authored copper rule. The label selects an investigation; it does not establish the physical cause.
Results of the sample tests
| Test | Result | Details |
|---|
What your code printed
The sample tests run on this device, in your browser (Pyodide): nothing is sent to mysmartcopilot.com. The first run downloads Python (about 13.5 MB), which is kept for the next runs. A check in your browser is feedback for you, not proof that the code is right for every input.
Practice that adapts to you
Practise this lesson
12 questions about 6 ideas of this lesson. Each answer is explained at once, and what you get right is kept in this browser.
Interview questions
What is the difference between multimode and single-mode fibre? (warm-up)
Multimode fibre has a wide core, 50 or 62.5 µm, so light travels along many paths of slightly different lengths and a pulse spreads out as it goes. That limits its reach as the rate rises: 10GBASE-SR covers 300 m on OM3 and 400 m on OM4. It suits links inside buildings and data centres when matched to the specified optics. Single-mode fibre supports one spatial mode at its operating wavelength; its mode field diameter describes the optical field, not the physical core. 10GBASE-LR reaches 10 km at 1310 nm and 10GBASE-ER 40 km at 1550 nm on the specified single-mode fibre. Chromatic dispersion and loss still limit it. Select fibre and optics from their compatibility, reach and budget specifications, rather than assuming that any multimode and single-mode combination works.
Model answers open with any pass: ₹79 for 1 week ($2.99), one payment that never renews.
-
Fresher to mid
A user says file copies are slow. Their desk port has linked at 100 Mb/s instead of 1 Gb/s, and the port's CRC error counter rises during copies. How do you find the cause, step by step?
-
Fresher to mid
Two buildings 2 km apart need a 10 Gb/s link. Which medium and optics would you choose, how would you check the link budget, and what could make the link fail months later?
Key takeaways
- Twisted pair reduces common-mode interference by twisting and differential signalling; the named channels reach up to 100 m, and the cable can carry power.
- Coax shields its signal; it carried the first Ethernet and still carries cable broadband over hybrid fibre-coax.
- The cited multimode 10GBASE-SR options reach hundreds of metres; single-mode 10GBASE-LR and ER reach 10 to 40 km. G.652.D’s nominal 8.6–9.2 µm mode field diameter is not its core diameter, and its stated cable loss is at most 0.4 dB per km over 1310–1625 nm, with separate short-cable provisions.
- Radio needs no cable but shares the air; free-space loss grows by 20 dB per tenfold distance and with frequency.
- Ethernet PHY names read as rate, BASE, medium and coding, and lanes: 100GBASE-LR4 is 100 Gb/s, long wavelength, 64B/66B coding, four lanes.
- Read the counters first: late collisions, CRC errors and a gigabit port at 100 Mb/s suggest hypotheses; confirm peer settings, cabling and supported link modes before calling the cause.
Terms in this lesson
- full duplex
- Communication in both directions simultaneously; each direction has its own transmission capacity.
- mode field diameter
- A measure of the transverse optical-field distribution in a fibre; it is distinct from the glass core’s physical diameter.
- multimode fibre
- Optical fibre that supports several spatial propagation modes at the stated wavelength.
- PHY
- A physical-layer interface specification or the hardware that implements it.
- single-mode fibre
- Optical fibre designed to support one spatial propagation mode at its operating wavelength.
Corrections
- Distinguished noise reduction from perfect cancellation, sensitivity margin from full link compatibility, and synthetic investigation buckets from proven faults.
- Kept mode field diameter distinct from core diameter and treated interface counters, radio behavior and negotiated speeds as scoped diagnostic evidence.
References
- IEEE 802.3-2022: IEEE Standard for Ethernet (IEEE Standards Association)
- IEEE 802.3an-2006: 10 Gb/s operation, type 10GBASE-T (IEEE Standards Association)
- IEEE 802.3bt-2018: Power over Ethernet over 4 pairs (IEEE Standards Association)
- ITU-T G.652: Characteristics of a single-mode optical fibre and cable (International Telecommunication Union (ITU-T))
- ITU-T G.114: One-way transmission time (International Telecommunication Union (ITU-T))
- ITU-R P.525: Calculation of free-space attenuation (International Telecommunication Union (ITU-R))
- Linux kernel documentation: interface statistics (The Linux Kernel documentation)
- Linux kernel documentation: netlink interface for ethtool (The Linux Kernel documentation)
- Cisco 10GBASE SFP+ Modules Data Sheet (Cisco)
- Configure and Verify Ethernet 10/100/1000Mb Half/Full Duplex Auto-Negotiation (Cisco)
- DP83867 Gigabit Ethernet PHY data sheet (speed optimization) (Texas Instruments)
- DOCSIS 4.0 Technology (CableLabs)
- Wi-Fi CERTIFIED 7 (Wi-Fi Alliance)
Related tools
Report a problem with this lesson
Kept only in this browser. Your Learn progress