A channel has a bandwidth of 1 MHz and a signal-to-noise ratio of 63. (a) What is its Shannon capacity? (b) For safety, the designer chooses 4 Mbps. How many signal levels are needed?
The physical layer moves raw bits as signals over guided media (twisted pair, coax, fibre) or unguided media (radio, microwave, infrared). Know each medium's traits, the impairments, line coding and the Nyquist and Shannon limits — favourite PSC numericals.
The physical layer's job is to turn bits into signals that a medium can carry, and back again. A signal can be analog (it varies smoothly, like a voice on a telephone wire) or digital (it jumps between a few levels, like the voltages on an Ethernet cable).
A periodic analog signal is described by its amplitude (peak strength), frequency f in hertz (cycles per second), period T = 1/f, phase (its position in time) and wavelength λ — the distance one cycle travels. Fourier showed that any signal is a sum of sine waves; the range of frequencies it contains is its bandwidth.
Networking uses 'bandwidth' in two senses: bandwidth in hertz is the range of frequencies a channel passes; bandwidth in bits per second is the data rate the channel supports. Throughput is what you actually achieve, which is usually less. Latency is the time for a message to arrive completely: propagation + transmission + queuing + processing.
| Measure | Formula | Example |
|---|---|---|
| Propagation time | distance ÷ propagation speed | 1,000 km of fibre at 2×10⁸ m/s → 5 ms |
| Transmission time | message size ÷ bandwidth (bps) | 1,500 bytes = 12,000 bits at 100 Mbps → 120 µs |
| Throughput | bits actually delivered ÷ time | 6,000 frames/min × 12,000 bits ÷ 60 s = 1.2 Mbps on a 10 Mbps link |
| Bandwidth–delay product | bandwidth × delay | 1 Gbps × 10 ms = 10⁷ bits 'in flight' in the pipe |
A twisted pair is two insulated copper wires twisted around each other. Noise from outside hits both wires almost equally, and the receiver looks only at the difference between them, so the noise cancels. Twisting also reduces crosstalk between neighbouring pairs; more twists per metre means better rejection. Ethernet cable has four pairs, each with a different twist rate.
| Category | Bandwidth | Typical data rate | Typical use |
|---|---|---|---|
| Cat 1 | — | Voice only | Telephone lines |
| Cat 2 | ≈ 1 MHz (sources vary) | 4 Mbps | Early token ring |
| Cat 3 | 16 MHz | 10 Mbps | 10Base-T, telephone |
| Cat 4 | 20 MHz | 16 Mbps | 16 Mbps token ring |
| Cat 5 | 100 MHz | 100 Mbps | 100Base-TX Fast Ethernet |
| Cat 5e | 100 MHz | 1 Gbps | 1000Base-T Gigabit Ethernet |
| Cat 6 | 250 MHz | 1 Gbps (10 Gbps up to ~55 m) | Gigabit, short 10G runs |
| Cat 6a | 500 MHz | 10 Gbps at 100 m | 10GBase-T |
| Cat 7 | 600 MHz | 10 Gbps (fully shielded) | Data centres |
| Cat 8 | 2,000 MHz | 25/40 Gbps up to 30 m | Switch-to-server in racks |
A copper Ethernet channel is limited to 100 m (90 m of fixed cable plus 10 m of patch cords). The T568A and T568B wiring patterns differ only in the orange and green pairs: the same pattern at both ends gives a straight-through cable (PC to switch); different patterns give a crossover (PC to PC) — modern ports detect this automatically (Auto-MDIX). Power over Ethernet (PoE) also sends DC power to phones, cameras and access points over the same pairs.
Coaxial cable has a central copper conductor, an insulating dielectric, a braided metal shield that acts as the second conductor, and a plastic jacket. Because the shield encloses the signal, coax carries higher frequencies than twisted pair with less interference, though its attenuation is still far higher than fibre's. It is used for cable TV, CCTV, cable modems and the original Ethernet. Typical connectors are the BNC connector, the T-connector and the terminator.
| Grade | Impedance | Use |
|---|---|---|
| RG-59 | 75 Ω | Cable TV, CCTV |
| RG-6 | 75 Ω | Modern cable TV, satellite TV, cable modems (DOCSIS) |
| RG-58 | 50 Ω | Thin Ethernet (10Base2, segments up to 185 m) |
| RG-8 / RG-11 | 50 Ω | Thick Ethernet (10Base5, segments up to 500 m) |
Both coax Ethernets were bus topologies. Thicknet (10Base5) used rigid cable with 'vampire taps' and external transceivers; thinnet (10Base2, 'cheapernet') used flexible cable with BNC T-connectors at each station. Each end of the bus needed a 50 Ω terminator to stop signals reflecting back, and a single break anywhere took the whole segment down — one reason twisted-pair star wiring replaced coax.
An optical fibre carries light pulses through a thin glass core surrounded by cladding of slightly lower refractive index. A ray that meets the core–cladding boundary at an angle (measured from the normal) larger than the critical angle cannot escape; it is completely reflected back into the core. This total internal reflection guides the light along the fibre, even around gentle bends.
| Mode | Core diameter | Light source | Dispersion | Typical reach / use |
|---|---|---|---|---|
| Multimode, step-index | 50–100 µm | LED | High modal dispersion — rays on different paths arrive at different times | Short links, older LANs |
| Multimode, graded-index | 50 or 62.5 µm | LED or VCSEL laser (850 nm) | Lower — the index falls gradually from the centre, so outer rays travel faster and catch up | Building and campus LANs |
| Single-mode | ≈ 8–10 µm (cladding 125 µm) | Laser (1,310 / 1,550 nm) | Very low — essentially one path | Long-haul and telecom backbones, tens of km and more |
Common connectors are SC (square, push-pull), ST (round, bayonet) and the small-form LC. Fibre is used in three low-loss wavelength 'windows' near 850, 1,310 and 1,550 nm. Light in glass travels at about 2×10⁸ m/s — roughly two-thirds of its speed in vacuum, the same ballpark as signals in copper.
Wireless (unguided) media carry electromagnetic waves through air or space using antennas. Waves travel by ground propagation (below about 2 MHz, hugging the Earth — AM radio), sky propagation (about 2–30 MHz, bounced off the ionosphere — shortwave), or line-of-sight propagation (above about 30 MHz — FM, TV, microwave links and satellites).
| Band | Frequency range | Direction | Key traits | Uses |
|---|---|---|---|---|
| Radio waves | 3 kHz – 1 GHz | Omnidirectional | Penetrate walls; travel far; antennas need not be aligned; transmitters interfere with each other | AM/FM radio, TV broadcast, paging, maritime radio |
| Microwaves | 1 – 300 GHz | Unidirectional (narrow beam) | Line of sight; sending and receiving antennas must be aligned; poor wall penetration; high data rates; rain fade at high frequencies | Terrestrial relay links, satellites, cellular, Wi-Fi, radar |
| Infrared | 300 GHz – 400 THz | Line of sight, short range | Cannot pass walls, so rooms do not interfere; swamped by sunlight outdoors | TV remotes, IrDA, short indoor links |
Terrestrial microwave uses dish antennas on towers; because the Earth curves, repeater towers are needed every few tens of kilometres. Satellites are microwave repeaters in the sky. A geostationary (GEO) satellite orbits above the equator at about 35,786 km (≈ 36,000 km), completes one orbit in 24 hours and so appears fixed overhead; three of them spaced 120° apart cover nearly the whole Earth (Arthur C. Clarke's 1945 idea). The up-and-down path makes the one-way delay between two earth stations at least ≈ 240 ms, typically 250–270 ms — about half a second for a question and its answer.
Lower orbits cut the delay: MEO satellites such as GPS fly at about 20,200 km, and LEO constellations (Iridium near 780 km, Starlink near 550 km) give delays of a few tens of milliseconds, at the cost of needing many satellites and hand-offs. Uplink and downlink use different frequencies, e.g. C band 6/4 GHz and Ku band 14/12 GHz.
Signals arrive weaker and messier than they left. Attenuation is the loss of energy with distance (amplifiers or repeaters restore it). Distortion is a change of shape: the frequency components of a composite signal travel at slightly different speeds and arrive out of step (delay distortion; in multimode fibre, modal dispersion). Noise is unwanted energy added on the way.
| Power ratio P₂/P₁ | In dB |
|---|---|
| ×2 | +3 dB |
| ×½ | −3 dB |
| ×10 | +10 dB |
| ×1/10 | −10 dB |
| ×100 | +20 dB |
| ×1,000 | +30 dB |
An analog amplifier boosts everything it receives — signal and noise. A digital repeater (regenerator) decides whether each bit was a 0 or a 1 and sends out a clean new signal, so noise does not accumulate hop after hop. This is a key advantage of digital transmission.
How fast can a channel carry data? Nyquist answered for an ideal noiseless channel: the bit rate depends on the bandwidth B and the number of signal levels L. Doubling L adds only one bit per signal element, and packing levels closer makes them harder to tell apart. Shannon (1948) answered for a real noisy channel: the capacity depends on B and the signal-to-noise ratio, and no coding trick can beat it.
Two quick checks. If SNR = 0 (signal buried in noise), Shannon gives C = B log₂1 = 0, however wide the channel. A telephone line with B = 3,000 Hz and SNR = 3,162 (35 dB) gives C = 3,000 × log₂3,163 ≈ 34.9 kbps — which is why classic dial-up modems topped out near 33.6 kbps.
Line coding turns bits into a digital signal. A data element is a bit; a signal element is the shortest piece of signal. If each signal element carries r bits, the signal (baud) rate S relates to the bit rate N as below. Good codes avoid a DC component, keep enough transitions for the receiver to stay in step (self-clocking), and need little bandwidth.
| Scheme | Rule | Self-clocking? | Signal rate | Used in |
|---|---|---|---|---|
| NRZ-L | The level itself encodes the bit (Stallings draws 0 high, 1 low; some books reverse it) | No — long runs lose sync; DC component | S_avg = N/2 | Simple serial links |
| NRZ-I | 1 = invert at the start of the bit; 0 = no change | Only for 1s; long runs of 0s lose sync | S_avg = N/2 | FDDI and 100Base-FX (after 4B/5B) |
| RZ | Signal returns to zero in the middle of every bit | Yes, but needs three levels | About 2× NRZ | Rarely used |
| Manchester | Mid-bit transition: 0 = high→low, 1 = low→high (IEEE 802.3) | Yes; no DC | S_avg = N, S_max = 2N | 10 Mbps Ethernet |
| Differential Manchester | Always a mid-bit transition; 0 = extra transition at the start, 1 = none | Yes; polarity does not matter | S_avg = N, S_max = 2N | IEEE 802.5 token ring |
| AMI (bipolar) | 0 = zero volts; successive 1s alternate +V and −V | Not for long runs of 0s (fixed by B8ZS / HDB3 scrambling) | S_avg = N/2 | T1 (with B8ZS), E1 (with HDB3) |
| 4B/5B | Each 4 data bits → a 5-bit code with at most three 0s in a row; then NRZ-I or MLT-3 | Yes, via NRZ-I | 25% more bits (100 → 125 Mbps) | FDDI, 100Base-TX/FX |
| 8B/10B | Each 8 bits → a DC-balanced 10-bit code | Yes | 25% more bits | Gigabit Ethernet (1000Base-X), Fibre Channel |
| Mode | Direction | Example |
|---|---|---|
| Simplex | One way only | Keyboard → computer, TV and radio broadcast |
| Half duplex | Both ways, but one at a time | Walkie-talkie, CB radio, hub-based Ethernet |
| Full duplex | Both ways simultaneously | Telephone call, switched Ethernet |
Parallel transmission sends n bits at once on n wires — fast but limited to short distances by cost and timing skew (old printer and IDE cables). Serial sends one bit at a time on one channel — cheaper and suited to long distances (USB, SATA, Ethernet). Serial links are either asynchronous — each character framed by a start bit (0) and one or more stop bits (1), with idle gaps allowed — or synchronous — a continuous stream grouped into frames, with the receiver recovering the clock from the data. Isochronous transmission adds a guaranteed constant rate for real-time audio and video.
Try the problem first, then reveal the working one step at a time.
A channel has a bandwidth of 1 MHz and a signal-to-noise ratio of 63. (a) What is its Shannon capacity? (b) For safety, the designer chooses 4 Mbps. How many signal levels are needed?
A laser launches 2 mW into 40 km of fibre whose loss is 0.25 dB/km. An optical amplifier with 13 dB gain follows the fibre. Find the power after the fibre and after the amplifier, in mW and dBm.
Encode the bits 1 0 1 1 0 0 using NRZ-L, NRZ-I, Manchester and differential Manchester. Use H/L for high/low levels; assume the line was low before NRZ-I starts and high before differential Manchester starts. Then give the worst-case and average baud rate for 10 Mbps Manchester.
A telephone channel has bandwidth 3,000 Hz and an SNR of 30 dB. What is its Shannon capacity?
A noiseless channel of 8 kHz bandwidth must carry 64 kbps. How many signal levels are needed?
A 1 MB (8 × 10⁶ bits) file is sent over a 100 Mbps link 4,000 km long (propagation speed 2 × 10⁸ m/s). Find the transmission time, the propagation time, the total time ignoring queuing, and the bandwidth–delay product.
A GEO satellite is about 35,786 km above the equator. Assuming signals travel at 3 × 10⁸ m/s and the earth stations are directly below it, what is the minimum one-way delay between two earth stations? How long before a speaker hears the start of a reply?
Fast Ethernet over fibre (100Base-FX) encodes 100 Mbps of data with 4B/5B followed by NRZ-I. (a) What bit rate appears on the line? (b) What fraction of the line bits is overhead? (c) Why is 4B/5B needed with NRZ-I?
10 questions. 70 % passes the topic quiz (+30 XP, +20 more for 100 %). Exam scoring: +1 correct, −⅓ wrong.
Modelled on real KPSC questions (reworded) with the same concept and answer; each links to its original paper.