Lesson 04 beginner

The Physical Layer

How bits become signals: topologies (bus, star, ring, mesh, tree, hybrid), simplex, half and full duplex, guided media (twisted pair, coax, fiber) and wireless media, Ethernet speeds and cable categories, and how to check a link with ethtool.

Layer 1 is where data stops being numbers and becomes something physical: voltage on copper, pulses of light in glass, or radio waves. It decides how fast bits can move, how far, and how much noise they can survive. Most outages you will meet at this layer are boring and common: a bad cable, a dirty fiber, a port negotiated at the wrong speed.

Topologies

A topology is the shape of a network: how nodes are wired (physical topology) or how data flows (logical topology).

TopologyShapeStrengthWeakness
BusEvery node taps one shared cableCheap, little cableOne break takes everything down; collisions
StarEvery node has its own cable to a central switchEasy to add nodes, one bad cable affects one nodeThe central switch is a single point of failure
RingEach node connects to two neighbors in a loopPredictable accessOne break breaks the ring (unless it is a dual ring)
MeshNodes connect to many or all othersMany paths, very resilientLots of links: a full mesh of n nodes needs n(n-1)/2
TreeStars connected in a hierarchyScales by adding branchesLosing a branch cuts everything below it
HybridA mix of the aboveFits real buildingsMore complex to design

Modern LANs are stars (or trees of stars). Data centers use a leaf-spine design: every leaf switch connects to every spine switch, a partial mesh that keeps any two servers just two hops apart. The internet core is a large partial mesh.

Full mesh math: 10 routers in a full mesh need 10 × 9 / 2 = 45 links. With 50 routers it is 1,225. That is why big networks use partial meshes.

Transmission modes

ModeDirectionExample
SimplexOne way onlyA TV broadcast, a keyboard to a computer
Half duplexBoth ways, one at a timeA walkie-talkie, an old hub, classic Wi-Fi on one channel
Full duplexBoth ways at the same timeSwitched Ethernet, a phone call

A duplex mismatch (one side full, the other half) is a classic layer 1 bug: the link works but crawls, with lots of errors. Both sides should auto-negotiate, or both be set by hand to the same values.

Guided media: cables

Twisted pair copper

Four pairs of wires twisted together to cancel interference. UTP is unshielded; STP/FTP adds shielding for noisy environments. Plugs are RJ45. The maximum run is 100 meters for every category below.

CategoryTypical max speedNotes
Cat5e1 Gbit/sThe minimum for anything new
Cat61 Gbit/s (10 Gbit/s up to about 55 m)Common in offices
Cat6A10 Gbit/s at 100 mThe safe choice for new buildings and Wi-Fi APs
Cat825 or 40 Gbit/s up to 30 mServer rack links only

Coaxial cable

A central conductor inside a shield. Used today mostly for cable TV and DOCSIS broadband.

Fiber optic

Light pulses in glass. Immune to electrical interference, very fast and can run very far.

TypeCoreLight sourceReachUse
Multimode (OM3, OM4)50 µmLED or VCSEL laserHundreds of metersInside a building or data center
Single-mode (OS2)9 µmLaserKilometers to 100+ kmBetween buildings, cities, ISPs

Switches take pluggable transceivers (SFP, SFP+, QSFP28, QSFP-DD) so the same port can use copper, multimode or single-mode by swapping a module. Both ends must use the same wavelength and fiber type.

Unguided media: wireless

Data rides radio waves through the air: Wi-Fi in the 2.4, 5 and 6 GHz bands, cellular, Bluetooth, microwave links and satellites. Wireless is shared and half duplex per channel, and walls, distance and other networks all reduce throughput. Lesson 22 covers it in depth.

Signals and capacity

A few terms you will see on spec sheets:

  • Bandwidth (in Hz): the range of frequencies a medium carries. More hertz means more room for data.
  • Attenuation: the signal gets weaker with distance; that is why cables have length limits.
  • Noise and crosstalk: unwanted energy that corrupts bits; twisting and shielding reduce it.
  • Encoding and modulation: how bits map to signals. Faster Ethernet and Wi-Fi pack more bits into every symbol (for example 4096-QAM in Wi-Fi 7), which needs a cleaner signal.

Ethernet speeds

NameSpeedCommon medium
100BASE-TX100 Mbit/sCat5 copper
1000BASE-T1 Gbit/sCat5e copper
2.5GBASE-T / 5GBASE-T2.5 / 5 Gbit/sCat5e/Cat6, popular for Wi-Fi APs
10GBASE-T / 10GBASE-SR10 Gbit/sCat6A copper / multimode fiber
25G, 100G, 400G, 800GData center speedsFiber or short copper DAC cables

Checking a link on Linux

$ sudo ethtool enp3s0
Settings for enp3s0:
	Supported link modes:   10baseT/Full 100baseT/Full 1000baseT/Full
	Speed: 100Mb/s
	Duplex: Full
	Auto-negotiation: on
	Link detected: yes
$ ip -s link show enp3s0
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP
    RX:  bytes  packets errors dropped  missed   mcast
    9184120374 7102291   4821       0       0   12010

Two red flags here: the card supports 1 Gbit/s but negotiated only 100 Mbit/s, and the receive errors counter is climbing. Both usually mean a damaged cable or one with only two good pairs (gigabit needs all four). Replace the cable before you debug anything else.

For fiber, ethtool -m reads the transceiver’s optical power:

$ sudo ethtool -m enp65s0f0 | grep -i 'power'
	Laser output power                        : 0.6120 mW / -2.13 dBm
	Receiver signal average optical power     : 0.0021 mW / -26.78 dBm

A received power that low (around -27 dBm) is below what most short-reach modules accept: clean the connectors or check the patch path.

Exercise

A server links at 100 Mbit/s even though both the NIC and the switch support 1 Gbit/s. What should you check first?

  1. The DNS server
  2. The cable, since gigabit needs all four pairs in good condition
  3. The default route
  4. The MTU
Show answer

Answer: B. A gigabit-capable link that falls back to 100 Mbit/s almost always has a bad or partly broken cable. It is a layer 1 problem.

Exercise

Which topology does a modern office LAN with a switch in each wiring closet use?

  1. Bus
  2. Ring
  3. Full mesh
  4. Star (or a tree of stars)
Show answer

Answer: D. Each device has its own cable to a switch port, and access switches connect up to a core: a star or hierarchical tree.

Exercise

You need a 10 Gbit/s link between two buildings 4 km apart. What medium fits?

  1. Cat6A twisted pair
  2. Multimode fiber
  3. Single-mode fiber
  4. Coaxial cable
Show answer

Answer: C. Copper stops at 100 m and multimode at a few hundred meters. Single-mode fiber easily covers kilometers.

Key takeaways

  • Layer 1 turns bits into electrical, optical or radio signals.
  • Most LANs are stars; data centers use leaf-spine; the internet core is a partial mesh.
  • Full duplex is normal on switched Ethernet; a duplex mismatch makes links crawl.
  • Copper twisted pair stops at 100 m; multimode fiber covers buildings; single-mode covers kilometers.
  • ethtool and ip -s link reveal wrong speeds and rising error counters.

FAQ

Is Cat6 enough for a home network?

Yes. Cat6 handles 1 Gbit/s easily and 10 Gbit/s over shorter runs. Choose Cat6A if you want 10 Gbit/s over full 100 m runs or are wiring Wi-Fi 7 access points.

Why is my Wi-Fi slower than my cable?

Wi-Fi is shared and half duplex on each channel, and walls, distance and neighbors’ networks all cost throughput. A cable gives you the full link in both directions at once.

What is a DAC cable?

A direct attach copper cable: two transceivers joined by a short copper cable. It is a cheap way to connect a server to a top-of-rack switch at 10 to 100 Gbit/s over a few meters.

Can a topology be both physical and logical?

Yes, and they can differ. Old Token Ring networks were wired as a physical star but passed the token in a logical ring.

↑ ↓ navigate Enter open Esc close