../

Wired networks: copper & fiber

How data travels over metal and glass: twisted pair and coax, optical fiber and transceivers, Ethernet frames, speeds and Power over Ethernet, how switches learn and split networks with VLANs, the access networks that reach homes (DSL, cable, fiber PON), long-haul DWDM and submarine cables, and how buildings are cabled. Builds on Networking from scratch; radio links are in Radio fundamentals.

Copper, fiber and radio compared

MediumReach per segmentTypical speedsStrengthsWeaknesses
Twisted pair (Ethernet)100 m1–10 Gb/s (40 Gb/s over 30 m on Cat8)cheap, easy to terminate, carries power (PoE)short reach, picks up interference
Coaxhundreds of meters, kilometers with amplifiersmulti-Gb/s shared (cable broadband)well shielded, already in most homesbulky, shared by a neighborhood
Multimode fiber≈ 100–500 m10–400 Gb/scheap optics, immune to interferenceshort reach
Single-mode fiber10–80 km per span; thousands with amplifiers100 Gb/s–800 Gb/s per wavelength, tens of Tb/s per fiberhuge capacity, low lossneeds care: clean connectors, no tight bends
Radiometers to thousands of kmfrom bits/s to Gb/sno cable, mobilityshared, noisy, regulated

Twisted pair

An Ethernet cable holds four pairs of insulated copper wires (usually 22–24 AWG), each pair twisted together. A pair carries one signal by differential signaling: one wire carries +V, the other −V, and the receiver measures only the difference. Interference from outside (motors, fluorescent lights, other cables) couples into both wires almost equally, so it cancels when the receiver subtracts.

A−B noise (motors, other cables) A B Each twist swaps which wire is closer, so noise lands equally on both. Unequal twist rates cut crosstalk. wire A = signal + noise wire B = −signal + noise A − B = 2 × signal: the noise cancels
Differential signaling: the same noise lands on both wires, so subtracting them removes it.
  • Twisting keeps each wire equally close to any noise source on average, and makes the pair's own fields cancel, so it radiates less too.
  • Crosstalk is one pair picking up its neighbor's signal: NEXT (near-end, at the sender's end), FEXT (far end) and alien crosstalk (from the next cable in a bundle, the limit for 10GBASE-T). Each pair in a cable twists at a different rate so pairs don't line up.
  • Gigabit and faster Ethernet send and receive on all four pairs at once, using echo cancellation to separate the two directions.
  • Shielding is named by ISO/IEC 11801 as overall/pair: U/UTP (none), F/UTP (foil around all pairs), U/FTP (foil on each pair), S/FTP (braid around foiled pairs). A shield only helps when it is bonded to ground properly; most office cabling is unshielded.

Cable categories

CategoryBandwidthEthernet at 100 mNotes
Cat316 MHz10BASE-Told telephone wiring
Cat5100 MHz100BASE-TXsuperseded by Cat5e
Cat5e100 MHz1000BASE-T, 2.5GBASE-Tthe minimum worth installing
Cat6250 MHz5GBASE-T; 10GBASE-T only up to 37–55 m
Cat6A500 MHz10GBASE-Tthicker; the usual choice for new office runs and Wi-Fi 6/7 access points
Cat7, Cat7A600, 1000 MHz(ISO classes F, FA; not TIA categories)meant for GG45/TERA connectors; "Cat7" patch cords with RJ45 plugs follow no standard
Cat8 (8.1, 8.2)2000 MHz25GBASE-T and 40GBASE-T, 30 m onlydata center rows: switch to server

The 100 m figure is a channel: up to 90 m of solid-core cable in the wall (the permanent link) plus up to 10 m of stranded patch cords in total.

Connectors and wiring

What everyone calls RJ45 is the 8P8C modular plug (8 positions, 8 contacts). The two wiring standards differ only in swapping the orange and green pairs; pick one and use it at both ends.

PinT568AT568B10/100 Mb/s1 Gb/s and up
1white/greenwhite/orangetransmit +pair A +
2greenorangetransmit −pair A −
3white/orangewhite/greenreceive +pair B +
4blueblueunusedpair C +
5white/bluewhite/blueunusedpair C −
6orangegreenreceive −pair B −
7white/brownwhite/brownunusedpair D +
8brownbrownunusedpair D −
  • A straight-through cable has the same standard at both ends; a crossover has A at one end and B at the other. Auto-MDIX, in nearly every modern port, swaps the pairs itself, so either works.
  • A gigabit link that comes up at 100 Mb/s usually means a broken pair: 100BASE-TX needs only two pairs, gigabit needs all four.
  • Keep the untwisted length at a termination under about 13 mm (half an inch) for Cat5e and better.

Coax (coaxial cable) has a center conductor, an insulating dielectric, a shield and a jacket. The signal travels between the center and the shield, which keeps interference out.

TypeImpedanceUsed for
RG-675 Ωcable TV and broadband (DOCSIS), satellite dishes; F connectors
RG-5975 Ωolder video and CCTV
RG-5850 Ω10BASE2 "thin" Ethernet (185 m segments), radio; BNC connectors
LMR-400 and similar50 Ωlow-loss antenna feed lines; N connectors
"Thick" Ethernet coax50 Ω10BASE5, the original Ethernet (500 m segments)

Optical fiber

An optical fiber is a strand of very pure glass: a core that carries the light, a cladding around it (125 µm across for nearly all telecom fiber) and a plastic coating (usually 250 µm). The core's glass has a slightly higher refractive index than the cladding's, so light that meets the boundary at a shallow angle reflects back completely (total internal reflection) and stays in the core for kilometers.

laser detector cladding: lower index (n ≈ 1.46) too steep: escapes θ > critical angle core: higher index (n ≈ 1.47) Shallow rays reflect totally at the boundary and stay in the core. Angles exaggerated: real rays stay within a few degrees of the axis.

Total internal reflection keeps light in the core. Light travels at about 2/3 of its vacuum speed in glass: ≈ 5 µs per km.
Single-mode (OS1, OS2)Multimode (OM1–OM5)
Core≈ 9 µm50 µm (62.5 µm for OM1)
Light sourcelasers at 1310 and 1550 nmlow-cost VCSEL lasers at 850 nm
Reach10 km to 80 km per span, much more with amplifiers≈ 100–550 m depending on speed and grade
Jacket color (convention)yelloworange (OM1, OM2), aqua (OM3, OM4), violet (OM4 in some regions), lime (OM5)
Costcheap fiber, pricier opticspricier fiber, cheap optics
Wherecampus backbones, metro, long haul, fiber to the homeinside buildings and data centers

In multimode fiber light takes many paths (modes) of different lengths, so a pulse smears out (modal dispersion) and limits reach. Single-mode fiber is thin enough that only one mode propagates; its limits are attenuation (loss) and chromatic dispersion (colors traveling at slightly different speeds).

WindowWavelengthTypical lossUsed for
850 nmmultimode≈ 2.5–3.5 dB/kmshort-reach (SR) optics
O band1260–1360 nm, around 1310 nm≈ 0.3–0.35 dB/km10 km (LR) optics; almost no chromatic dispersion
C band1530–1565 nm, around 1550 nm≈ 0.2 dB/km (≈ 0.15 on ultra-low-loss fiber)long haul, DWDM, erbium amplifiers
others1490 nm, 1577 nmfiber-to-the-home downstream

Example: 80 km at 0.2 dB/km is 16 dB of loss, about 1/40 of the light, before connectors and splices. Tight bends leak light; bend-insensitive fiber (ITU-T G.657) tolerates the corners in homes.

Fiber connectors and transceivers

ConnectorFerruleShapeCommon in
LC1.25 mmsmall, latching, usually duplex pairsSFP optics, patch panels: the default today
SC2.5 mmsquare push-pullfiber to the home, older gear
ST2.5 mmround bayonet twistlegacy multimode
MPO/MTP8, 12, 16 or 24 fibers in one ferrulerectangularparallel optics (SR4, DR4), trunk cables
  • Polish: UPC (blue body) ends are flat; APC (green) are angled at 8° to cut back-reflection, required on PON and RF video. Never mate APC with UPC.
  • Dirt is the most common cause of fiber faults: inspect and clean every end before connecting.

A transceiver (an optic, or module) is a hot-pluggable part that turns electrical signals into light and back. The switch port is just a cage; the module decides the medium, wavelength and reach.

Form factorSpeedLanes
SFP1 Gb/s1
SFP+10 Gb/s1
SFP2825 Gb/s1
QSFP+40 Gb/s4 × 10
QSFP28100 Gb/s4 × 25
QSFP56200 Gb/s4 × 50
QSFP-DD, OSFP400 Gb/s, 800 Gb/s8 × 50, 8 × 100
  • Reach codes in optic names: SR short reach (multimode, 850 nm), DR 500 m single-mode, LR 10 km, ER 40 km, ZR 80 km and beyond (coherent 400ZR and 800ZR modules for DWDM links between data centers). BiDi optics use one fiber with two wavelengths.
  • DAC (direct-attach copper) cables are twinax with modules fixed on both ends, for a few meters inside a rack; AOC (active optical cables) do the same over fiber for longer runs.
  • Most optics report temperature, laser bias, transmit and receive power (DOM): ethtool -m.

Ethernet frames and MAC addresses

Ethernet (IEEE 802.3) is the link layer of almost every wired LAN, and Wi-Fi copies its addressing. Data travels in frames:

Preamble 7 SFD 1 Dest MAC 6 Src MAC 6 802.1Q 0 or 4 EtherType 2 Payload 46–1500 FCS 4 sync frame: 64–1518 bytes (1522 with a VLAN tag) TPID 0x8100 16 bits PCP 3 DEI 1 VLAN ID 12 bits PCP: priority 0–7 · DEI: drop eligible · VLAN ID: 1–4094 EtherType says what the payload is: 0x0800 IPv4, 0x86DD IPv6, 0x0806 ARP FCS: a CRC-32 over everything from Dest MAC to the end of the payload numbers are bytes · short payloads are padded to 46 · 12 idle bytes between frames
Every frame on a wired LAN. The 802.1Q tag is present only on trunk links that carry several VLANs.
  • The preamble (alternating 1s and 0s) lets the receiver lock its clock; the SFD (start frame delimiter) marks where the frame begins.
  • EtherType names the payload: 0x0800 IPv4, 0x86DD IPv6, 0x0806 ARP, 0x8100 a VLAN tag.
  • The FCS is a CRC-32; a frame that fails it is dropped. Short payloads are padded so frames are at least 64 bytes, a rule left from shared coax, where a sender had to still be transmitting when a collision echoed back.
  • Jumbo frames (MTU around 9000) are a common but non-standard extension; every device on the path must agree.

A MAC address is 48 bits, written as six hex bytes (3c:22:fb:12:34:56). The first three bytes are usually the maker's OUI (organizationally unique identifier). Two bits in the first byte matter: the lowest is 1 for multicast (01:00:5e:… for IPv4 multicast, 33:33:… for IPv6), the next is 1 for a locally administered address, which phones use for random per-network MACs (first byte ending in 2, 6, A or E). ff:ff:ff:ff:ff:ff is broadcast: every host on the LAN.

Ethernet speeds

A name like 10GBASE-SR reads as speed (10 Gb/s), BASEband signaling (one signal on the medium), then the medium: T twisted pair, SR short-reach multimode, LR long-reach single-mode, CR copper cable (DAC), KR backplane. A trailing number counts lanes (SR4 = 4 fiber pairs).

NameSpeedMedium and reachStandard, year
10BASE510 Mb/sthick coax, 500 m802.3, 1983
10BASE-T10 Mb/sCat3, 100 m802.3i, 1990
100BASE-TX100 Mb/sCat5, 100 m802.3u, 1995
1000BASE-SX, -LX1 Gb/smultimode up to 550 m, single-mode 5 km802.3z, 1998
1000BASE-T1 Gb/sCat5e, 100 m802.3ab, 1999
10GBASE-SR, -LR10 Gb/sOM3 300 m (OM4 400 m), single-mode 10 km802.3ae, 2002
10GBASE-T10 Gb/sCat6A, 100 m802.3an, 2006
40G and 100G40, 100 Gb/s4 or 10 lanes: multimode ≈ 100 m, single-mode 10 km802.3ba, 2010
2.5GBASE-T, 5GBASE-T2.5, 5 Gb/sCat5e, Cat6, 100 m802.3bz, 2016
25G25 Gb/smultimode ≈ 70–100 m, DAC802.3by, 2016
200G and 400G200, 400 Gb/sPAM4 lanes on multimode and single-mode802.3bs, 2017
800G800 Gb/s8 × 100 Gb/s lanes802.3df, 2024
1.6T1.6 Tb/s8 × 200 Gb/s lanes802.3dj, final approval expected around the end of 2026
  • Half duplex shares the medium and uses CSMA/CD; full duplex sends both ways at once with no collisions. Every switch port today runs full duplex; 10 Gb/s and faster have no half-duplex mode.
  • Autonegotiation lets the two ends advertise their speeds and duplex modes over link pulses and pick the best common one; 1000BASE-T requires it. Forcing one end and leaving the other on auto causes a duplex mismatch: a working but very slow link with late collisions and CRC errors. Leave both on auto.

Power over Ethernet

PoE sends DC power over the same cable. The switch (PSE, power sourcing equipment) first detects a valid PD (powered device) signature and agrees a power class with it, so a non-PoE laptop is never powered.

StandardNameTypeAt the switch (PSE)At the device (PD)Pairs
802.3af (2003)PoE115.4 W12.95 W2
802.3at (2009)PoE+230 W25.5 W2
802.3bt (2018)PoE++, 4PPoE360 W51 W4
802.3bt (2018)PoE++, 4PPoE490 W71.3 W4
  • The gap between the two columns is what 100 m of cable can lose as heat. The voltage is about 44–57 V DC.
  • Phones take a few watts, Wi-Fi 6/7 access points often need PoE+ or Type 3, and pan-tilt cameras with heaters or LED lighting use Type 3 or 4.
  • A switch's total PoE budget is often less than its port count × the maximum per port.
  • "Passive PoE" (a fixed 24 V or 48 V with no detection) from some vendors is not 802.3 and can damage devices that don't expect it.

Switches

A switch forwards frames between its ports. It learns where each host is by watching the source address of every frame it receives, and stores that in its MAC table (also called the CAM table). Frames to an unknown address, and broadcasts, are flooded to every other port.

switch 1 A 2 B 3 C 4 D no frames yet: table empty A → B: learn A on port 1, flood B → A: learn B on port 2, forward A → B: B is known, port 2 only C → everyone: learn C, flood 300 s without frames: A ages out MAC table MAC port (empty) A's MAC 1 A's MAC 1 gone B's MAC 2 C's MAC 3 entries expire after ≈ 300 s of silence

1/6

The switch starts with an empty MAC table. Hosts A to D are plugged into ports 1 to 4.

  • Store-and-forward switches receive the whole frame and check its FCS before sending it on; cut-through switches start forwarding once they have read the destination, which saves microseconds in data centers but passes on corrupted frames.
  • A broadcast domain is everyone who hears a broadcast: by default, every port of every switch connected together. Large ones fill with ARP and discovery chatter; split them with VLANs and routers.
  • VLANs (802.1Q) split one physical switch into several logical ones. An access port belongs to one VLAN and sends untagged frames to its host; a trunk port carries many VLANs between switches, each frame marked with a 4-byte tag holding a 12-bit VLAN ID (1–4094 usable). The untagged VLAN on a trunk is the native VLAN. Traffic between VLANs must pass through a router or a layer-3 switch.
  • Loops are fatal to plain Ethernet: frames have no hop limit, so a broadcast circles forever (a broadcast storm). The Spanning Tree Protocol (802.1D) elects a root bridge (lowest bridge ID) and blocks redundant links until one is needed. Classic STP takes 30–50 s to recover; RSTP (802.1w) usually takes a second or less. Large data centers avoid it with routed leaf–spine designs (Building networks).
  • Link aggregation (LACP, IEEE 802.1AX, formerly 802.3ad) bundles several ports into one logical link for capacity and redundancy. Frames are spread by a hash of their addresses and ports, so one flow still uses only one member link.
  • LLDP (802.1AB) lets devices announce their name and port to neighbors, which makes cabling easier to trace.

Access networks: DSL, cable and fiber to the home

The access network (the "last mile") connects homes and businesses to an operator.

TechnologyMediumTypical top speeds (down / up)Shared?Notes
ADSL2+telephone pair from the exchangeup to 24 / ≈ 1 Mb/s, falling with distancenoITU-T G.992.5; DMT (a form of OFDM) above the voice band
VDSL2telephone pair from a street cabinet (fiber to the cabinet)≈ 100 / 40 Mb/s under ≈ 500 m; up to ≈ 300 Mb/s down on very short lines (profile 35b)novectoring cancels crosstalk between neighbors' lines
G.fasttelephone pair, last ≈ 100 mup to ≈ 1 Gb/s combinednofrom a node in the building or street
DOCSIS 3.0coax (hybrid fiber-coax)≈ 1 Gb/s down with 32 bonded channelsyes, per node
DOCSIS 3.1coaxspec up to 10 / 1–2 Gb/s; plans of 1–2 Gb/syesOFDM, up to 4096-QAM
DOCSIS 4.0coaxspec up to 10 / 6 Gb/syesspectrum to 1.8 GHz, or full duplex
GPONfiber2.488 / 1.244 Gb/s shared by up to 64 homes (often 32)yes, per PONITU-T G.984
XGS-PONfiber9.953 / 9.953 Gb/s sharedyesITU-T G.9807.1; runs alongside GPON on the same fiber
  • DSL reuses the copper telephone pair, sending data on frequencies above voice; the DSLAM in the exchange or cabinet terminates it. Speed drops steeply with distance.
  • Cable (hybrid fiber-coax, HFC) runs fiber from the headend's CMTS to a neighborhood node, then coax to a few hundred homes that share its channels, which is why evenings are slower.
  • Fiber to the home (FTTH) usually uses a PON (passive optical network): one fiber from the operator's OLT (optical line terminal) is split by an unpowered splitter into 32 or 64 fibers, one to each home's ONT (optical network terminal), up to about 20 km away.
ONT 1 1 ONT 2 2 ONT 3 3 ONT 4 4 OLT office 1:4 splitter fiber, up to 20 km upstream slots, set by the OLT downstream (1490 nm): sent to every ONT, each keeps its own upstream (1310 nm): one ONT at a time, in slots, so bursts never collide

A PON is a broadcast downstream and TDMA upstream. Downstream frames are encrypted, so each home reads only its own.
PON detailGPONXGS-PON
Downstream wavelength1490 nm1577 nm
Upstream wavelength1310 nm1270 nm
Rates2.488 / 1.244 Gb/s9.953 / 9.953 Gb/s
Optional RF video overlay1550 nm1550 nm

The OLT measures each ONT's distance (ranging) so their bursts land exactly in their slots, and grants slot sizes by demand (dynamic bandwidth allocation). 25G and 50G PON are in early deployment.

Long haul: DWDM and submarine cables

Wavelength-division multiplexing sends many colors (wavelengths) of light down one fiber, each an independent channel. DWDM (dense WDM) packs channels on the ITU-T G.694.1 grid, 100 GHz or 50 GHz apart (0.8 or 0.4 nm), or in flexible slices.

λ1 λ1 λ2 λ2 λ3 λ3 λ4 λ4 EDFA amplifier every ≈ 80 km one fiber mux demux lasers receivers DWDM: each wavelength (color) is its own channel; all share one fiber C band (≈1530–1565 nm): ≈ 40 channels at 100 GHz spacing, 80+ at 50 GHz

Each color is a separate channel; the amplifier boosts all of them at once without converting them to electricity.
  • The C band holds about 40 channels at 100 GHz spacing or 80 or more at 50 GHz; adding the L band roughly doubles that. With coherent optics, which encode bits in the phase, amplitude and polarization of the light and decode with a DSP, one wavelength carries 100 Gb/s to 800 Gb/s or more, and one fiber pair carries tens of terabits per second.
  • An EDFA (erbium-doped fiber amplifier) boosts every C-band channel at once; on land they sit about every 80–100 km. A ROADM (reconfigurable optical add-drop multiplexer) drops and adds individual wavelengths at a node without converting the rest.
  • CWDM (coarse WDM, ITU-T G.694.2) uses 18 wavelengths 20 nm apart from about 1270 to 1610 nm: cheaper, unamplified, for metro and campus links.

Submarine cables carry almost all intercontinental internet traffic; satellites carry a small share. TeleGeography counted 570 systems in service and 81 planned in February 2025.

PartWhat it is
Cablein deep water about as thick as a garden hose: a few to 24 fiber pairs, a copper power conductor, steel strength wires and insulation; armored and buried near shore
Repeatersoptical amplifiers spliced in roughly every 50–100 km
Power feedPFE at each landing station drives a constant current of about 1 A through every repeater in series, at up to roughly 15 kV, returning through the sea
Landing stationwhere the cable comes ashore: power feed, line terminal equipment, and the link to inland networks and data centers
Branching unitssplit fiber pairs off to other countries along the route
Repairsroughly 150–200 faults a year worldwide, most from fishing gear and anchors in shallow water; repair ships lift the cable and splice in a new section

Systems are designed for about 25 years of service. Many new cables are funded by content companies; Google's Dunant cable (2021, Virginia to France) has 12 fiber pairs and about 250 Tb/s of design capacity.

Structured cabling

Structured cabling is the standard way to wire a building (TIA-568 in North America, ISO/IEC 11801 elsewhere): permanent cable runs from patch panels in telecom rooms to wall outlets, and short patch cords that are easy to change.

a small office
building/entrance/               # ISP fiber, demarcation pointequipment-room/         # router, firewall, core switchrack-42U/patch-panel-1/  # 24 ports to floor 1 outletsaccess-switch/  # PoE for phones and APsfloor-1/desk-101/           # 2 × Cat6A outletsceiling-ap-1/       # 1 × Cat6A, PoE+
ElementRule of thumb
Horizontal cabling≤ 90 m from patch panel to outlet, solid-core; ≤ 10 m of cords in total
Backbonefiber (and sometimes Cat6A) between the equipment room and each telecom room
Racks19 inches wide; height in rack units: 1U = 1.75 in = 44.45 mm; 42U is a common full height
Patch panelspunch the cable onto the back once; patch to switch ports at the front with short cords
JacketsCMP (plenum) in air-handling spaces, CMR (riser) between floors, LSZH (low smoke, zero halogen) common in Europe
Bendsat least 4 × the cable diameter for copper, 10–20 × for fiber
Labelsboth ends of every cable, matching the panel port (TIA-606)
Testingcertify every link with a cable analyzer before handover
  • Run two drops per desk and Cat6A to every access-point location; recabling costs far more than cable.
  • Keep data cables away from power cables and fluorescent fittings, and leave service slack.
  • Avoid copper-clad aluminum (CCA) cable: it doesn't meet the standards and heats up under PoE.

Try it

ethtool eth0                 # speed, duplex, autoneg, link
ip -s link show eth0         # bytes, errors, drops
ethtool -S eth0 | grep -i err   # NIC error counters
sudo ethtool -m eth0         # optic type, light levels
sudo ethtool --cable-test eth0  # pair faults (some PHYs)
bridge fdb show              # Linux bridge MAC table
lldpctl                      # switch and port you are on

Make a VLAN interface and watch tagged frames (lldpctl comes with lldpd):

sudo ip link add link eth0 name eth0.10 type vlan id 10
sudo ip link set eth0.10 up
sudo tcpdump -i eth0 -nn -e vlan   # shows "vlan 10, p 0"

Rising CRC or "rx_errors" counters point at a bad cable, connector or duplex mismatch; light levels far below the optic's receive range point at dirt, a bend or a broken fiber.

References