Core CS · Computer Networks
Two hundred decibels a kilometre, or two tenths of one
Copper, coaxial cable, glass and open air all carry the same bits. They charge for it in decibels per kilometre, and that one figure decides how far a run goes before somebody has to install equipment in the middle of it.
Pick a medium, set the run, count the regenerators →01 The idea
Every medium weakens the signal at a fixed rate per metre
Layer 1 has exactly one job: get a physical signal from one end of something to the other. That something is the transmission medium, and it is either a thing you install and the signal stays inside, or it is the open air and the signal goes wherever physics takes it. Copper pair, coaxial cable and optical fibre are the first kind. Radio, microwave, infrared and satellite are the second.
Whichever you pick, three things happen to the signal on the way and all three have precise names. Attenuation is the loss of signal power with distance, so what arrives is a weaker copy of what was sent. Noise is unwanted energy added to the signal from outside it, from a motor, a fluorescent ballast, the pair in the next slot of the same jacket, or the thermal agitation of the conductor itself. Distortion is the signal arriving changed in shape rather than merely smaller, because different frequency components travel at slightly different speeds and no longer line up at the far end.
Attenuation is the one that decides engineering. It is quoted in decibels per kilometre and it accumulates linearly with distance, so a run twice as long loses twice as many decibels. A receiver can only work with a signal above some floor, so there is a distance at which the signal has faded past what the receiver can read, and at that point somebody has to put a box in the middle of the cable that rebuilds the signal. The distance between those boxes is set by the attenuation figure of the medium and by nothing else.
That is why this topic is not a list of cables to memorise. It is one number per medium, and a set of prices you pay to get a better one. Fibre's number is a thousand times better than copper's, and fibre costs more to buy, more to install and much more to repair. Everything in the rest of this lesson is that trade, made concrete.
02 Worked example
Two kilometres between two buildings, and nineteen repeaters
This is the run for the whole lesson, including the console in section 04 and every figure in the cheat sheet. A campus has to connect two buildings that are 2000 m apart. Somebody suggests pulling Cat 6 twisted pair, because Cat 6 is what is already in the walls and it is the cheapest thing on the shelf. Follow the signal along that cable and the suggestion answers itself.
One convention first, and the console uses the same one. This lesson works to a 20 dB budget: the receiver is assumed to still read a signal that has lost 20 dB and not one that has lost more. Real budgets are computed from a specific transmitter's output power and a specific receiver's sensitivity and land anywhere between about 9 and 30 dB. 20 is a round teaching figure, and it is not an arbitrary one, because it reproduces the real 100 m limit of Cat 6 exactly.
Check the arithmetic rather than trusting it. Over 2 km the pair loses 200 dB/km × 2 km = 400 dB. One segment may spend 20 dB, so a segment is 20 ÷ 200 = 0.1 km = 100 m. That gives 400 ÷ 20 = 20 segments, and a repeater sits at every join between segments, so there are 19 of them and not 20. Miscounting that by one is the classic error in this arithmetic.
Now put the same 2 km run on the other three media and read the last column.
| Medium over the same 2 km | Attenuation, approximate | Loss over 2 km | Reach on a 20 dB budget | Regenerators |
|---|---|---|---|---|
| Cat 6 UTP, 100 MHz | 200 dB/km | 400 dB | 100 m | 19 |
| RG-6 coaxial, 100 MHz | 66 dB/km | 132 dB | about 303 m | 6 |
| OM3 multimode fibre, 850 nm | 3 dB/km | 6 dB | about 6.67 km | 0 |
| OS2 single-mode fibre, 1550 nm | 0.2 dB/km | 0.4 dB | 100 km | 0 |
One caveat on the multimode row before you quote it at anybody: 6.67 km is what attenuation allows, and multimode almost never gets that far, because modal dispersion smears the pulses first. Run OM3 at 10 Gbps and you stop at about 300 m. That gap between the attenuation limit and the dispersion limit is exactly what section 03 unpacks, and it is the one place in this table where the decibel figure is not the binding constraint.
Nineteen boxes, six boxes, none, none. The single-mode run spends 0.4 dB of a 20 dB budget and has 19.6 dB left over for the connectors, the splices and the next twenty years of repairs. That is the entire case for fibre on a campus, and it is arithmetic rather than opinion.
One honest clause, because an interviewer will supply it if you do not. You could not actually build the copper version. Structured cabling standards cap a horizontal copper run at 100 m end to end, and classic Ethernet capped a repeated collision domain at four repeaters, so nineteen was never legal. The number is not a design; it is the price tag on a design nobody would sign off. Its job is to show what the 200 dB per kilometre actually buys you.
03 Mechanics
Nine media, and the six properties that decide between them
A medium is chosen on six things, and only six. Usable bandwidth, meaning the range of frequencies the medium carries without falling apart, which is what a data rate is then built on top of. Bandwidth is measured in hertz and throughput in bits per second, and they are not the same quantity. Distance before regeneration, which is the attenuation figure from section 02. Immunity to electromagnetic interference, how much of the outside world leaks in. Security against tapping, how hard it is to read the signal without touching the endpoints. Installation difficulty and cost. Read the guided table across a row and the pattern is the same every time: as you move down it, the first four get better and the last two get worse.
| Guided medium | Usable bandwidth | Distance before regeneration | EMI immunity | Tap resistance | Install and cost |
|---|---|---|---|---|---|
| UTP unshielded twisted pair |
16 MHz on Cat 3 up to 500 MHz on Cat 6A, and 2000 MHz on Cat 8 over a short rack link. 10 Gbps over 100 m at Cat 6A. | 100 m per structured cabling standards |
Poor. The twist cancels a lot but there is no shield at all. | Weakest. It radiates, and a clip-on inductive tap needs no cut. | Cheapest of everything. RJ45 plugs, a crimp tool, no specialist. |
| STP / FTP shielded twisted pair |
Same categories as UTP, but holds its rating better in a noisy plant. | 100 m, the same limit |
Good. A foil or braid intercepts interference and carries it to ground. | Better than UTP. Much less radiates out of the shield. | Stiffer, bulkier, and it only works if the shield is properly earthed. |
| Coaxial RG-6, RG-58 |
Up to about 1 GHz on RG-6, which is what cable television is built on. | Hundreds of metres. 10BASE5 allowed 500 m, 10BASE2 185 m. |
Good. The outer conductor completely surrounds the inner one. | Harder. You have to break into the shield to reach the core. | Heavy, poor bend radius, F or BNC connectors. Mid cost. |
| Multimode fibre OM3, 50 µm core |
Very high, but capped by modal dispersion: 10 Gbps to about 300 m on OM3. | Hundreds of metres to a few kilometres, dispersion limited before attenuation is. | Total. Glass carries light; there is no current for a field to induce. | Very hard. Bending it to leak light shows up as a measurable loss. | Needs polished or fusion-spliced terminations. The wide core is far more forgiving to align than single-mode. |
| Single-mode fibre OS2, 9 µm core |
Highest in practice. One fibre carries many wavelengths at once by wavelength multiplexing. | 10 km to 80 km on ordinary Ethernet optics, with no repeater at all |
Total, for the same reason. | Hardest of all. Any tap is an insertion loss somebody can measure. | Dearest. A 9 µm core needs a fusion splicer and a laser transmitter, and every repair costs a technician visit. |
The category numbers on twisted pair are not a list to memorise either. Each step is a higher frequency the cable is certified to carry over a full 100 m channel, and the Ethernet rate is a consequence of that frequency rather than a separate fact. Read this table as one number going up.
| Category | Certified to | What it carries over 100 m |
|---|---|---|
| Cat 3 | 16 MHz | 10BASE-T, and the telephone cabling of an entire generation of offices. |
| Cat 5e | 100 MHz | 1000BASE-T. The first category that carried a gigabit the full distance. |
| Cat 6 | 250 MHz | 1000BASE-T over 100 m, and 10GBASE-T only to about 55 m. |
| Cat 6A | 500 MHz | 10GBASE-T over the full 100 m. The A is for augmented, and it is the current office default. |
| Cat 8 | 2000 MHz | 25 and 40 Gbps, but only to about 30 m. A data-centre rack cable, not a building cable. |
Unguided media are chosen on a different set of questions, because there is no cable to cost and no route to dig. What matters is whether the two ends can see each other, what else is transmitting nearby, and what the weather does.
| Unguided medium | Typical band | Range | Line of sight needed | What degrades it | What it costs you |
|---|---|---|---|---|---|
| Radio broadcast, Wi-Fi |
3 kHz to about 1 GHz for classic radio; Wi-Fi sits at 2.4, 5 and 6 GHz. | Tens of metres indoors, kilometres for a broadcast tower. | No. Long wavelengths bend around and pass through building-scale obstacles. | Everything else on the same band. It is shared, and it is omnidirectional. | Zero privacy. Anyone in range receives the signal, so encryption is mandatory rather than optional. |
| Terrestrial microwave dish to dish |
Roughly 1 GHz to 300 GHz. Short wavelengths focus into a narrow beam. | Tower to tower, typically 40 to 60 km, set by mast height and the curvature of the earth. | Yes. The two dishes must physically see each other. | Rain absorbs it badly above about 10 GHz, which is called rain fade. | Two masts and planning permission, but no trench between them. |
| Infrared remote controls, IrDA |
Roughly 300 GHz to 400 THz, just below visible light. | One room. Metres, not kilometres. | Yes, or a bounce off the ceiling. Walls, doors and partitions are opaque at these wavelengths. | Sunlight, which is a very strong infrared source and swamps it outdoors. | Almost nothing, and the containment is a genuine security property rather than a limitation. |
| Satellite geostationary relay |
Microwave, commonly the C, Ku and Ka bands from about 4 to 40 GHz. | A third of the planet from one satellite. | Yes, to the satellite. A GEO dish needs a clear view of the equatorial sky. | Rain fade, and an unavoidable propagation delay that no bandwidth reduces. | The altitude. 35 786 km up and the same back down is about 239 ms one way before a byte is processed. |
Why the pair is twisted, and why the twist is the entire design. A receiver on a twisted pair does not measure either wire against ground. It measures the difference between the two wires, which is what differential signalling means. Now run the two wires straight and parallel past a motor: the nearer wire picks up more induced voltage than the further one, the difference between them changes, and that change is indistinguishable from signal. Twist them, and each wire spends half the run on the near side of the motor and half on the far side, so both accumulate the same induced voltage. The receiver subtracts one from the other, the common part cancels, and only the real signal survives. This is also why cabling standards limit how much you may untwist at a jack, to roughly half an inch: every untwisted millimetre is a millimetre where the cancellation stops. And it is why the four pairs inside one jacket have different twist rates, so that adjacent pairs do not stay in step with each other and couple, which is the interference called crosstalk.
UTP or STP, and the way the shield backfires. UTP relies on the twist alone. STP adds a foil or braid, either around each pair or around the whole bundle, that intercepts interference and carries it to ground before it reaches the conductors. The catch is the phrase to ground. The shield must be earthed, and it must be earthed properly, which normally means at one end only. Earth it at both ends of a long run between two buildings whose earths sit at slightly different potentials and a current flows continuously along the shield: a ground loop, which is itself a noise source. A badly installed STP link is worse than a plain UTP one, so the shield is a decision and not an upgrade.
Coaxial cable, and what the geometry buys. Coax is a centre conductor, a dielectric spacer, an outer conductor of foil or braid, and a jacket. The outer conductor is doing two jobs at once: it is the return path for the current, and it is a shield that completely surrounds the inner conductor along the whole length. External fields terminate on the outside of the braid and never reach the core, and the signal's own field is confined inside the dielectric instead of radiating away. That is why coax carries far higher frequencies far further than an open pair, and why cable television has run gigahertz down it for decades. Two impedances are standardised and you should know both: 50 Ω for radio, instrumentation and the old 10BASE5 and 10BASE2 Ethernets, and 75 Ω for video and cable broadband.
Total internal reflection, stated so it survives a follow-up. A fibre is a core of glass surrounded by a cladding of glass with a lower refractive index. Light travelling in the core meets the boundary with the cladding at some angle. When the angle of incidence measured from the normal exceeds the critical angle, none of the light crosses into the cladding: all of it is reflected back into the core. That is total internal reflection, and it happens only because the cladding index is lower. The cladding is not a coating and not a mirror; it is the thing that makes the core guide at all. Put a number on it. With a core index of 1.48 and a cladding index of 1.46, the critical angle is arcsin(1.46 / 1.48) = 80.6° from the normal, which is only 9.4° away from straight down the fibre. Rays must travel nearly along the axis, which is exactly why the core is narrow and why the light you couple in has to arrive within a small cone. The same index also fixes the speed: 3 × 10^8 / 1.48 = 2.03 × 10^8 m/s, which is where the roughly 2 × 10^8 m/s used everywhere in this course comes from.
Single-mode against multimode, honestly. Multimode has a wide core, 50 µm on OM3 and OM4 or 62.5 µm on older OM1. Wide enough that light can travel along several distinct paths, called modes: one straight down the axis, others zig-zagging at steeper angles. The zig-zag path is physically longer, so its light arrives later, and one pulse launched cleanly arrives smeared across time. That is modal dispersion, and smear it enough and consecutive pulses overlap until the receiver cannot separate them. It is dispersion, not attenuation, that caps multimode distance in practice. Single-mode has a core of about 9 µm, narrow enough that only one path can propagate at the wavelength used, so there is no modal dispersion to accumulate; it needs a laser, because you cannot usefully couple a broad LED into a 9 µm target, and it runs tens of kilometres. Both types have a 125 µm cladding, so the two are physically identical from the outside and the connectors are interchangeable. That is precisely why they get mixed up on site.
A repeater is not an amplifier, and the difference is noise. An amplifier multiplies everything it receives by a gain, signal and the noise already riding on it alike, so the ratio between them is unchanged and every amplifier adds a little noise of its own. Chain ten of them and the noise has compounded ten times. A repeater is digital: it decides what each bit was, discards the waveform entirely, and transmits a brand new clean bit at full power. Noise does not accumulate across a chain of repeaters, because nothing is carried forward except the decision. That is why the console counts regenerators rather than boosters, and it is why a long analogue chain degrades and a long digital one does not.
Two delays on every link, and the bits-versus-bytes trap that ruins them. Sending a frame costs two separate times that are computed from completely different quantities. Transmission delay is frame size divided by link rate: it is how long the sender takes to clock the bits out. Propagation delay is distance divided by the speed of the signal in the medium: it is how long the first bit takes to fly. Work the 2 km fibre run at 1 Gbps with a 1518-byte frame. Convert first: 1518 bytes × 8 = 12 144 bits. Link rates are powers of ten, so 1 Gbps = 10^9 bits per second, never 2^30 and never bytes. Transmission delay is 12 144 / 10^9 = 12.14 µs. Propagation is 2000 m / (2 × 10^8 m/s) = 10 µs. The last bit lands 22.14 µs after the first one left. Two habits save you here: multiply bytes by 8 before anything else, and never use 3 × 10^8 m/s inside copper or glass, because that is the speed in a vacuum and a real medium runs at about two thirds of it.
What a budget is actually spent on. The 20 dB in this lesson is spent on two different kinds of loss and only one of them grows with length. The per-kilometre part is the attenuation coefficient, and it is what the console models. The fixed part is charged once per component regardless of route length: roughly 0.3 to 0.75 dB for every mated connector pair and about 0.1 dB for every fusion splice. On a short link the fixed part can be most of the budget, which is why a link that passes on paper can fail as built. Signal levels themselves are quoted in dBm, the same logarithmic scale referenced to one milliwatt, so 0 dBm is 1 mW and −20 dBm is 0.01 mW. Because it is logarithmic, signal-to-noise ratio in dB is a subtraction: a signal at −10 dBm over a noise floor at −60 dBm is an SNR of 50 dB.
05 Cheat sheet
The numbers they ask you to produce
Every row is something you can be asked to state or compute in under ten seconds. The right-hand column is the specific wrong answer that gets given, not a general warning.
| What they ask | The answer | The trap |
|---|---|---|
| Horizontal copper run limit | 100 m end to end: 90 m of solid cable in the wall plus up to 10 m of patch cords | 100 m of cable and then patch cords on top of it |
| Fibre core and cladding sizes | single-mode 9 µm core, multimode 50 or 62.5 µm, cladding 125 µm on both | Assuming single-mode fibre is physically thinner. Only the core differs, which is why the connectors are interchangeable. |
| Condition for total internal reflection | core index higher than cladding index, and the angle at the boundary above the critical angle | saying the cladding reflects the light like a mirror |
| What limits multimode distance | modal dispersion, not attenuation | Answering attenuation, which is true of copper and false of multimode fibre. |
| Why fibre is immune to EMI | it carries light through glass, a dielectric, so there is no current for a magnetic field to induce | Saying "because it is shielded". It has nothing to shield. |
| Signal speed in copper or fibre | about 2 × 10^8 m/s, roughly two thirds of the vacuum speed | using 3 × 10^8 m/s inside a cable |
| Geostationary altitude and one-way delay | 35 786 km; up and back down at 3 × 10^8 m/s is about 239 ms | Using 2 × 10^8 for the satellite hop. That path is near-vacuum, so the vacuum speed is the right one here. |
| Repeater against amplifier | a repeater re-decides the bits so noise does not accumulate; an amplifier raises signal and noise together | Treating them as the same box with two names. |
| 1 Gbps expressed in bytes | 10^9 bits per second = 125 × 10^6 bytes per second | dividing by 1024, or forgetting the factor of 8 entirely |
| dB on the power scale | 3 dB is half, 10 dB is one tenth, 20 dB is one hundredth | Adding decibels as if they were percentages. They are logarithmic, which is exactly why losses add. |
| Classic coax Ethernet segment lengths | 10BASE5 thicknet 500 m, 10BASE2 thinnet 185 m | Reading the 2 in 10BASE2 as 200 m. It is a rounding in the name, not a specification. |
| The two standard coax impedances | 50 Ω for radio and legacy Ethernet, 75 Ω for video and cable broadband | Quoting one and assuming it covers both. A 75 Ω cable on a 50 Ω system reflects power back at the transmitter. |
06 Where & why
Where these figures are somebody's product specification
None of these numbers were invented for exams. Each one is a clause in a published standard or a line on a datasheet that somebody is contractually held to.
Every structured cabling job in every office is built to a 100 m horizontal channel: up to 90 m of solid-core cable in the wall plus up to 10 m of stranded patch cord at the two ends. Cat 6A is certified to 500 MHz and carries 10GBASE-T over that full channel, where plain Cat 6 at 250 MHz manages 10 Gbps only to about 55 m. The 100 m is not a convention somebody chose; it is roughly where insertion loss reaches the receiver's limit at the frequencies the standard tests.
G.652 is the standard single-mode fibre: a 9 µm core in a 125 µm cladding, and the fibre under oceans, along railways and into homes as FTTH. The standard sets a ceiling on attenuation and production fibre comfortably beats it, landing near 0.2 dB/km in the 1550 nm window. Submarine systems put an optical amplifier roughly every 50 to 100 km, which at 0.2 dB/km is a span of 10 to 20 dB. Note the honest wrinkle: those are amplifiers rather than repeaters, so noise does accumulate and is managed by other means.
Cable operators run fibre from the headend out to a neighbourhood node, then coax for only the last few hundred metres into each house. DOCSIS 3.1 uses that coax plant to about 1.2 GHz downstream and reaches multi-gigabit rates on cable that was laid for television. The architecture is the section 02 table made into a budget: fibre wherever the distance is long, coax wherever the distance is short and the cable is already in the ground.
A geostationary satellite sits at 35 786 km because that is the altitude whose orbital period is one day, which is what lets a rooftop dish be aimed once and never moved again. The price is the round trip through that altitude. Starlink's main shell sits at roughly 550 km instead, which cuts the propagation part of the hop by a factor of about 65, at the cost of needing thousands of satellites and a phased-array antenna that tracks them. Measured latency is higher than the raw propagation figure because of ground stations and routing, but the change that mattered was the orbit and not the radio.
07 Interview questions
What they actually ask
Transmission media come up early in a networking round because they are easy to ask about and merciless about whether you understood or memorised. Expect to be asked why after every answer, and expect at least one question where the honest answer is that copper is still the right choice.
What actually separates guided media from unguided media, and which one is Wi-Fi?
Why is twisted pair twisted?
UTP or STP? When would you actually pay for the shield?
What does coaxial cable get from its geometry that a twisted pair does not?
State the condition for total internal reflection in an optical fibre.
Single-mode or multimode. What is the real difference?
Define attenuation, noise and distortion, and say which one you design around.
Is there a difference between a repeater and an amplifier?
Which unguided media need line of sight, and what decides it?
Infrared cannot pass through a wall. Is that a limitation or a feature?
Why does a satellite dish bolted to a roof never need to move?
Fibre beats copper on bandwidth, distance, interference and tapping. So why is there still copper in every office?
08 Practice problems
Six runs to work out
For every one: write down the units before you write down a number. Bits or bytes, metres or kilometres, powers of ten or powers of two, and which speed applies in which medium. Almost every wrong answer in this topic is correct arithmetic performed on two quantities that were never measuring the same thing.