To travel from one point to another, data must be transformed into electromagnetic signals. These signals can take either analog or digital forms, depending on how they represent information across a transmission medium.
At the physical layer of networking, understanding the distinction between data types and signal representations is essential.
Analog Signal (Continuous) Digital Signal (Discrete States)
+V .-. .-. +V ┌───┐ ┌───┐
/ \ / \ │ │ │ │
0V ---/-----\-/-----\--- 0V ────┘ └───┬───┘ └───
' ' ' │ │
-V -V └───┘In typical data communications, we employ periodic analog signals to represent carrier waves and nonperiodic digital signals to represent binary streams over short-haul links.
A simple periodic analog signal, such as a sine wave, cannot be decomposed into simpler signals. It is modeled mathematically as:
Where:
The period () is the amount of time, in seconds, required to complete one full cycle. Frequency () and period are mathematical inverses:
| Unit of Period () | Equivalent | Unit of Frequency () | Equivalent | | :--- | :--- | :--- | :--- | | Seconds () | | Hertz () | | | Milliseconds () | | Kilohertz () | | | Microseconds () | | Megahertz () | | | Nanoseconds () | | Gigahertz () | |
A signal can be analyzed in two distinct domains:
Time-Domain (Amplitude vs. Time) Frequency-Domain (Amplitude vs. Freq)
Amp Amp
^ .-. .-. ^
| / \ / \ | |
|----/-----\-/-----\----> t | |
| ' ' ' +------|------------> Freq
0 0 f1
Digital signals represent discrete states. If a digital signal has levels, the number of bits sent per signal level () is:
Signals travel through imperfect transmission media, which causes impairments. The received signal never matches the transmitted signal perfectly.
+-------------+ Impairments:
Tx --->| Trans Medium|---> Rx 1. Attenuation (Loss of signal strength)
+-------------+ 2. Distortion (Waveform changes shape)
3. Noise (Addition of unwanted signals)Attenuation is the loss of energy as a signal propagates. To measure signal strength differences, engineers use decibels:
Where is the input power and is the output power.
The maximum data rate of a communication channel is bounded by physical laws.
For a noiseless channel, the theoretical maximum bit rate () is restricted only by the channel bandwidth () and the number of discrete signal levels ():
In reality, all channels are noisy. The Shannon Capacity formula defines the absolute theoretical upper limit of the data rate () for a noisy channel:
Engineers use both formulas to design physical-layer hardware. The Shannon capacity provides the absolute ceiling for throughput, while the Nyquist formula determines the specific number of discrete signal levels () required to meet that target speed.
Here is a Python utility demonstrating how to compute both limits for a communication link:
import math
def calculate_channel_limits(bandwidth, snr_db, signal_levels):
# Convert SNR from dB to linear scale
snr_linear = 10 ** (snr_db / 10.0)
# Calculate Shannon Capacity
shannon_capacity = bandwidth * math.log2(1 + snr_linear)
# Calculate Nyquist Bit Rate
nyquist_rate = 2 * bandwidth * math.log2(signal_levels)
return shannon_capacity, nyquist_rate
# Example: 3 kHz telephone line, 30 dB SNR, 4 signal levels
b = 3000 # Bandwidth in Hz
snr = 30 # SNR in dB
levels = 4 # Signal levels
shannon, nyquist = calculate_channel_limits(b, snr, levels)
To evaluate how well a network transfers signals, several metrics are used:
Analog signals are continuous and can assume infinite values within a range, whereas digital signals have discrete states and represent limited values.
The time domain plots signal amplitude over time, while the frequency domain illustrates the amplitude and phase of each constituent frequency component of a composite signal.
Signal degradation as it travels through a physical medium, caused by attenuation (power loss), distortion (phase shifts), and noise (extraneous thermal or electromagnetic interference).
Determines the theoretical maximum data rate of a noiseless channel based on bandwidth and the number of discrete signaling levels.
Calculates the ultimate theoretical transmission limit of a noisy channel based on its bandwidth and signal-to-noise ratio.
Test your understanding with 5 questions
A noiseless channel has a bandwidth of 3000 Hz and transmits a signal with four discrete levels. What is the maximum theoretical bit rate using the Nyquist formula?
If a signal experiences a power loss such that the output power is exactly half of the input power, what is the attenuation in decibels?
A periodic sine wave is offset by 1/6 of a cycle relative to time zero. What is its phase value in degrees?
What does the bandwidth-delay product represent in computer networking?
What is the theoretical capacity of an extremely noisy channel where the signal-to-noise ratio (SNR) is effectively zero?
6 Modules
6 Modules