Skip to content
Tutorials Center
My learning

Topics

Lesson 8 of 79 ยท Physical Layer

Signals, Bandwidth and Transmission Media

Learn analog and digital signals, the Nyquist and Shannon capacity limits, and how twisted pair, coax, fiber and wireless media differ, with a live calculator.

Everything a network sends, from a web page to a video call, ends up as a physical phenomenon: a voltage on a copper wire, a pulse of light in a glass thread, or a radio wave in the air. The physical layer is the part of the network that turns bits into such signals and back again. Before you can understand Ethernet, Wi-Fi or fiber links, you need a few ideas about what a signal is and what limits how fast it can carry information.

This lesson covers analog and digital signals, the word "bandwidth" in its signal sense, the two famous capacity limits (Nyquist and Shannon), and the main transmission media with their strengths and weaknesses. You can compute the limits yourself in a live calculator. It builds on Layered Models, where the physical layer is the bottom of the stack.

Analog and digital signals

An analog signal varies continuously: a sound wave, or a voltage that follows it smoothly, can take any value in a range. A digital signal uses a small set of distinct levels, most simply two: a high voltage for 1 and a low voltage for 0.

Digital signals are popular in networks for one reason: they can be regenerated. A digital pulse that gets weak and slightly distorted can still be recognized as "high" or "low", and a repeater can then send a clean copy. An analog signal that picks up noise carries that noise forever, because the receiver cannot tell what was original. Note that "analog" and "digital" describe the signal, not the data: a modem sends digital data over an analog phone line, and a phone call can be digitized into bits and sent over a digital link.

Any real signal can be described as a sum of sine waves of different frequencies. The lowest and highest frequencies that make up a signal define its range of frequencies, and the difference between them is its bandwidth in hertz (Hz).

The word "bandwidth" has two meanings. In signal theory it is a width of frequencies in hertz. In everyday networking, as in Bandwidth, Latency, Throughput and Loss, it means the data rate of a link in bits per second. The two are related, and this lesson shows exactly how.

Why media have a bandwidth

Every medium passes some frequencies well and others poorly. A telephone line was built for voices and passes roughly 300 to 3,400 Hz, so its bandwidth is about 3,100 Hz; a coaxial cable passes hundreds of megahertz; a radio channel might be 20 or 80 MHz wide. A narrow channel smooths out fast changes, so a rapid sequence of bits blurs together at the far end. That blurring is the core limit on how many bits per second a channel can carry.

The Nyquist limit: a channel with no noise

In 1924 Harry Nyquist showed that a noiseless channel of bandwidth B hertz can carry at most 2B distinct signal changes (symbols) per second. If each symbol can take one of M levels, each symbol carries log2(M) bits, so:

C = 2 ร— B ร— log2(M) bits per second

With two levels (M = 2) the maximum rate is 2B. A 3,000 Hz channel can carry 6,000 bit/s with binary signaling. To go faster you need more levels: with 16 levels each symbol carries 4 bits and the same channel could carry 24,000 bit/s.

Why not simply use 1,024 levels and get enormous speed? Because the levels must still be told apart by the receiver. In a real channel there is noise, which is where the second limit comes in.

The Shannon limit: a channel with noise

In 1948 Claude Shannon found the absolute ceiling for any channel with noise, regardless of how clever the encoding is:

C = B ร— log2(1 + SNR) bits per second

SNR is the signal-to-noise ratio, the signal power divided by the noise power, as a plain ratio. It is usually quoted in decibels: SNR(dB) = 10 ร— log10(SNR). So 30 dB means a ratio of 1,000, and 20 dB means 100.

Shannon's formula says that the data rate is limited by two things: the bandwidth and how clean the channel is. A classic dial-up phone line with B around 3,000 Hz and 30 dB SNR cannot carry much more than about 30 kbit/s, however the modem is designed, which is why the old modems stopped near 33.6 kbit/s. The formula also explains why Wi-Fi slows down as you walk away from the router: the signal gets weaker, SNR falls, and the achievable rate falls with it.

The two limits work together. Nyquist tells you what a given number of levels can give; Shannon tells you how many levels the noise lets you use. The real maximum is the smaller of the two.

Python Nyquist and Shannon calculator

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The output shows the two lessons clearly. Adding levels raises Nyquist's number without bound (256 levels give 48 kbit/s on a 3,000 Hz line), but Shannon caps the same line at about 29.9 kbit/s at 30 dB. In the last case the noise, not the number of levels, is the limit: 64 levels would permit 36 kbit/s, but a 20 dB channel only supports about 20 kbit/s.

Attenuation, noise and distortion

Three impairments degrade every signal on its way.

  • Attenuation is the loss of signal strength with distance. It is measured in decibels per kilometer or per 100 meters, and it grows with frequency, so high-speed signals fade faster. The fix is a repeater or amplifier, or a shorter cable.
  • Noise is unwanted energy added to the signal. Thermal noise comes from the random motion of electrons and cannot be removed. Crosstalk is interference from a neighboring wire. Impulse noise is a short spike, for example from a motor or lightning.
  • Distortion changes the shape of the signal because different frequencies travel at different speeds or fade by different amounts, so pulses spread out and overlap (intersymbol interference).
flowchart LR
  S["Sender<br/>clean signal"] --> M["Medium"]
  M --> R["Receiver<br/>weaker, noisy, smeared"]
  M -. "attenuation" .-> M
  N["Noise and<br/>crosstalk"] --> M

A signal leaves clean and arrives weaker, with noise added and its shape spread out.

Guided media: wires and glass

Guided media keep the signal inside a physical conductor.

Twisted pair is two insulated copper wires twisted around each other. The twisting makes outside interference hit both wires almost equally, so it cancels at the receiver, and it reduces crosstalk between pairs. Cables have four pairs in a plastic jacket. UTP (unshielded) is cheap and universal in office and home Ethernet; STP (shielded) adds a metal foil for noisy environments. Cables are graded in categories: Cat 5e supports 1 Gbit/s, Cat 6 supports 10 Gbit/s up to a limited length (about 55 m), and Cat 6A supports 10 Gbit/s over the full 100 m. The classic Ethernet limit for a copper segment is 100 meters, set mainly by attenuation.

Coaxial cable has a central copper conductor surrounded by an insulator, a braided metal shield and an outer jacket. The shield makes it much more resistant to noise and gives it more bandwidth than twisted pair. Early Ethernet used coax, and cable-TV networks still carry television and Internet over it (the DOCSIS standard).

Optical fiber guides light along a thin glass core, bounced back by the surrounding cladding through total internal reflection. Fiber has very low attenuation, enormous bandwidth, and complete immunity to electrical interference; it also cannot be tapped as easily as a copper wire. It comes in two main types:

  • Multimode fiber has a wider core (50 or 62.5 micrometers) in which many light paths travel at once. The paths arrive at slightly different times, which limits the distance to a few hundred meters. It is used inside buildings and data centers with cheap LED or VCSEL lasers.
  • Single-mode fiber has a very narrow core (about 9 micrometers) that carries one path, so pulses stay sharp over tens or hundreds of kilometers. It needs more precise lasers and is used for long-distance and undersea cables.
flowchart TB
  G["Guided media"] --> T["Twisted pair<br/>cheap, 100 m Ethernet"]
  G --> C["Coaxial<br/>shielded, cable TV"]
  G --> F["Optical fiber"]
  F --> MM["Multimode<br/>short, in buildings"]
  F --> SM["Single-mode<br/>long distance"]

Three families of guided media; fiber splits into multimode and single-mode.

Unguided media: wireless

Wireless media send signals through the air (or space) as electromagnetic waves. The main differences between them come from frequency.

  • Radio waves (about 3 kHz to 1 GHz and beyond for Wi-Fi) travel in all directions and pass through walls. They suit broadcasting, mobile phones and Wi-Fi, but anybody in range can receive them, and many users share the same spectrum, so access to it is regulated.
  • Microwaves (1 to 300 GHz) travel in narrow, straight beams and need line of sight. They are used for point-to-point links between towers, satellites and in 5G.
  • Infrared is short-range and cannot pass walls, which suits remote controls.

Higher frequencies can carry more data (larger bandwidth) but are blocked more easily by walls and rain. That is the central trade-off of wireless design, and Wi-Fi and 802.11 shows how it appears in practice. Wireless is always a shared medium with more noise than a wire, so it is usually slower and less reliable at the same price.

Planar transmission lines

Inside a device, signals also travel on "wires" that are really copper traces on a circuit board. These are planar transmission lines, and at high frequencies they must be designed like cables, because a trace that is too long, too thin or badly spaced reflects and loses the signal. Two common forms are:

  • Microstrip: a flat copper trace on the outside layer of a board, with a solid ground plane underneath and air above. It is easy to build and test, but part of its field is in the air, so it radiates a little and picks up interference.
  • Stripline: a trace buried between two ground planes inside the board. It is shielded on both sides, so it has less radiation and crosstalk, but it is harder to manufacture and to probe.

The trace width, the board material and the distance to the ground plane set the characteristic impedance (often 50 ohms, or 100 ohms for a differential pair such as the lines inside an Ethernet port). If the impedance does not match along the whole path, part of the signal bounces back. Microstrip and stripline appear in Wi-Fi radios, GPS receivers, radar, satellite equipment and in the high-speed lanes between a CPU and its memory. Their disadvantages are loss at very high frequencies, a limit on power handling, and sensitivity to the board material.

Radio bands and where they are used

Unguided media use different parts of the radio spectrum, and each band suits a few jobs:

Band Typical frequency Typical uses
Long and medium wave below about 3 MHz AM broadcasting, navigation beacons
Shortwave (HF) 3-30 MHz Long-distance radio that bounces off the ionosphere, amateur radio, aviation and maritime links, disaster backup
VHF/UHF 30 MHz-3 GHz FM radio, TV, walkie-talkies, 4G, Wi-Fi 2.4 GHz
Microwave 3-30 GHz Satellite links, point-to-point backhaul, radar, Wi-Fi 5/6 GHz, 5G
Millimeter wave above 30 GHz Very fast but short-range 5G, car radar
Infrared around 300 GHz-400 THz Remote controls, short line-of-sight links

Microwave and satellite links serve defense and aerospace systems, industrial and automotive sensors (radar for collision warning), and rural links where fiber is too costly. Shortwave is unusual because the ionosphere reflects it back to Earth, so a transmitter can reach the other side of the planet with modest power, at the price of unreliable conditions that change with time of day and solar activity.

Attacks at the physical layer

Layer 1 has no addressing or checksums, so its threats are about physical access:

  • Cable tapping: a copper cable can be tapped with a clamp that reads its field, and a fiber can be bent so some light leaks out. Defenses are locked conduits, tamper-evident enclosures, fiber monitoring that notices a drop in power, and encryption at higher layers so a tap only sees ciphertext.
  • Wireless signal interception: anyone in range can listen to radio, so wireless links rely on encryption (see Wi-Fi). Jamming, meaning flooding the band with noise, can also deny service.
  • Hardware manipulation: plugging a rogue device into a free wall port, replacing a cable or adding a hidden device. Disable unused ports, use port security and 802.1X (see switches and bridges), keep equipment in locked rooms and inspect it.

The general lesson is that you cannot fix physical access with software alone, which is why physical security is the first layer of network security.

Python A fiber tap shows up as lost power

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A monitor that records the normal received power can raise an alarm when the level suddenly falls, which is how some operators notice a physical tap.

Choosing a medium

Medium Typical speed Typical reach Strengths Weaknesses
UTP twisted pair 100 Mbit/s to 10 Gbit/s 100 m Cheap, easy to install Short, picks up interference
Coaxial up to ~1 Gbit/s shared hundreds of meters Shielded, good bandwidth Bulky, shared between users
Multimode fiber 10 to 100 Gbit/s up to ~500 m Immune to interference Needs optics, more costly
Single-mode fiber 100 Gbit/s and more 10 km to thousands Huge capacity, long reach Costly equipment, fragile to install
Wireless Mbit/s to Gbit/s meters to kilometers No cable, mobile Shared, noisy, can be intercepted

The figures are typical, not exact: standards and hardware keep improving.

Python Signal strength along a cable

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The loss figures in the last example are rough, rounded values chosen to show the size of the gap: copper loses signal hundreds of times faster than glass. Real cable data sheets give the loss per frequency or wavelength, and real links also have connectors and splices that add loss.

Check your understanding

Quick check ยท 5 questions

of 5 answered You scored / 5 ยท perfect!

  1. 1. A noiseless channel has a bandwidth of 4,000 Hz and uses 8 signal levels. What is its Nyquist maximum bit rate?

    C = 2 ร— B ร— log2(M) = 2 ร— 4,000 ร— 3 = 24,000 bit/s, because log2(8) = 3 bits per symbol.
  2. 2. What does Shannon's formula depend on?

    C = B ร— log2(1 + SNR): the capacity of a noisy channel is set by its bandwidth and how strong the signal is relative to the noise, whatever encoding is used.
  3. 3. Why are the wires in a twisted pair cable twisted?

    Twisting makes external noise hit both wires almost equally, so the receiver, which looks at the difference between them, cancels most of it. It also reduces crosstalk between pairs.
  4. 4. Which medium is best for a 40 km link between two cities?

    Single-mode fiber has very low attenuation and little pulse spreading, so it reaches tens of kilometers. UTP is limited to about 100 m, and multimode to a few hundred meters.
  5. 5. A channel has an SNR of 30 dB. What is the SNR as a plain ratio?

    SNR(dB) = 10 ร— log10(ratio), so 30 dB means log10(ratio) = 3 and the ratio is 1,000.

Summary

  • The physical layer turns bits into signals (voltage, light, radio) and back; digital signals can be regenerated, analog ones cannot.
  • Signal bandwidth is a width of frequencies in hertz; it limits how fast a channel can change.
  • Nyquist: C = 2B log2(M) for a noiseless channel. Shannon: C = B log2(1 + SNR) for a noisy one; the real limit is the smaller of the two.
  • Attenuation, noise and distortion degrade every signal; repeaters, shielding and shorter runs help.
  • Twisted pair is cheap and reaches 100 m, coax is shielded, multimode fiber suits buildings, single-mode fiber suits long distances, and wireless is mobile but shared and noisy.

Next: Line Coding and Modulation.