Communication Basics
The physical layer is the lowest layer of the computer network architecture. It carries raw bit streams over a physical transmission medium. To understand how it works, you first need the basic concepts of communication.
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
A channel is the physical path over which data travels, much like a road connecting two places. Information cannot move from one place to another without a path, and that path is the channel.
Types of Channel
By Transmission Medium
A wired channel behaves like a motorway:
- Twisted pair: like an ordinary road, cheap but with a limited speed (telephone lines, network cables)
- Optical fibre: like high-speed rail, extremely fast and highly resistant to interference
- Coaxial cable: like an expressway, between twisted pair and optical fibre
A wireless channel behaves like an air route:
- Radio waves: broadcasting, television signals
- Microwaves: satellite communication, radar
- Infrared: remote controls, short-range communication
By Transmission Direction
This is the difference between a one-way road and a two-way road:
| Type | Explanation | Everyday example | Characteristic |
|---|---|---|---|
| Simplex | Transmission in one direction only | Radio broadcast → listener | One side can only send, the other can only receive |
| Half duplex | Bidirectional but not simultaneous | Walkie-talkie | Like a single-lane bridge, the two sides take turns |
| Full duplex | Bidirectional and simultaneous | Telephone conversation | Like a dual carriageway, both sides can talk and listen at once |
Characteristics of a Channel
Every channel has its own character, much as every road has its own properties:
- Bandwidth: like the width of the road, it decides how many vehicles can pass
- Transmission distance: like the length of the road, it affects signal attenuation
- Interference resistance: like the quality of the road, it affects transmission stability
- Delay: like the traffic conditions, it affects arrival time
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
A signal is the physical representation of data. Just as goods need a truck to be transported, data needs a signal to carry it.
Analog Signals vs Digital Signals
These are two different ways of transporting data:
Analog Signals: a Continuous Curve
Characteristics:
- Vary continuously, smooth like a wave
- Can take infinitely many values
- Easily affected by interference
Everyday examples:
- 🎵 The audio signal of a traditional radio
- 📺 The antenna signal of an old television
- 🌡️ A thermometer reading (a continuous value)
Analog signal: a continuously varying curve, smooth like a wave
Digital Signals: Stepping Stairs
Characteristics:
- Vary discretely, jumping like a staircase
- Can take only a finite number of values (usually 0 and 1)
- Highly resistant to interference
Everyday examples:
- 💻 Data inside a computer
- 📱 A text message sent from a phone
- 💡 The state of a switch (on/off)
Digital signal: discrete jumps, with only a finite number of values (usually 0 and 1)
Why Do Computer Networks Use Digital Signals?
Comparison of the advantages:
| Property | Analog signal | Digital signal |
|---|---|---|
| Interference resistance | ❌ Distorts easily | ✅ Only 0 or 1 has to be judged |
| Storage | ❌ Takes up a lot of space | ✅ Easy to store |
| Processing | ❌ Complex | ✅ Computers are good at it |
| Transmission | ⚠️ Needs a modem | ✅ Transmitted directly |
| Error correction | ❌ Difficult | ✅ Well-established error correction mechanisms |
In short: a digital signal is like a parcel — it either arrives intact or damaged, which is easy to tell. An analog signal is like a liquid: it leaks and deforms easily.
Converting Signals
Sometimes an analog signal has to be converted into a digital signal, or the other way round:
Analog → digital (sampling, quantisation, encoding) is done by an ADC (analog-to-digital converter); digital → analog is done by a DAC (digital-to-analog converter).
Practical examples:
- 🎤 Recording: sound (analog) → MP3 file (digital)
- 🎧 Listening to music: MP3 file (digital) → sound (analog)
- 📷 Taking a photograph: light (analog) → image file (digital)
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
Bandwidth is the range of frequencies a channel can pass. Just as the width of a road decides how many vehicles can pass at once, bandwidth decides how much data can be transmitted.
Two Meanings of Bandwidth
Physical Bandwidth (Frequency Bandwidth)
Unit: Hz (hertz)
Meaning: the range of frequencies the channel can pass
Examples:
- Telephone line: 300-3400 Hz, a bandwidth of about 3.1 kHz
- FM broadcast: 88-108 MHz, a bandwidth of 20 MHz
- WiFi 2.4GHz: 2400-2483.5 MHz, a bandwidth of 83.5 MHz
Data Bandwidth (Transmission Rate)
Unit: bps (bits per second)
Meaning: the amount of data that can be transmitted per second
Examples:
- Dial-up: 56 kbps
- Home broadband: 100 Mbps
- Fibre broadband: 1000 Mbps (1 Gbps)
The Relationship Between Bandwidth and Transmission Rate
The key formula (Shannon’s theorem):
where:
- = maximum transmission rate (bps)
- = bandwidth (Hz)
- = signal-to-noise ratio
In plain terms: the larger the bandwidth, the higher the transmission rate; the higher the signal-to-noise ratio, the higher the transmission rate.
What Bandwidth Means in Practice
Everyday analogy:
| Scenario | Bandwidth analogy | Speed analogy |
|---|---|---|
| A single-lane back road | 1 lane | Slow, easily congested |
| A dual carriageway | 4 lanes | Fast, smooth |
| A long bridge across a river | 8 lanes | Very fast, heavy traffic |
| A fibre network | 100 lanes | Extremely fast, enormous data volumes |
Practical impact:
- 📶 At 10 Mbps: downloading a 1GB film ≈ 13 minutes
- 📶 At 100 Mbps: downloading a 1GB film ≈ 1.3 minutes
- 📶 At 1000 Mbps: downloading a 1GB film ≈ 8 seconds
These three concepts are easily confused, so take them one at a time.
Symbol: the “atom” of a Signal
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
A symbol is the smallest unit of a digital signal, just as an atom is the smallest unit of matter. One symbol is one signal change.
In plain terms:
- One high-to-low or low-to-high change in a digital signal is one symbol
- One symbol can carry one bit (0 or 1)
- It can also carry several bits (for example 00, 01, 10, 11)
Examples:
-
Binary symbols: only two states, 1 symbol = 1 bit
High level = 1 Low level = 0 -
Quaternary symbols: four states, 1 symbol = 2 bits
High high = 11 High low = 10 Low high = 01 Low low = 00
Baud Rate: the “speed” of Symbols
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
The baud rate is the number of symbols transmitted per second, like the number of trucks passing each second.
Unit: Baud
Calculation: Baud rate = number of symbols / seconds
Examples:
- A baud rate of 1200 Baud = 1200 symbols transmitted per second
- A baud rate of 2400 Baud = 2400 symbols transmitted per second
Bit Rate: the “speed” of Data
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
The bit rate is the number of bits transmitted per second, like the number of crates of goods carried each second.
Unit: bps (bits per second)
The important relationship: Bit rate = baud rate × number of bits per symbol
Worked Examples
Example 1: binary transmission
Assume:
- Baud rate = 1000 Baud
- Each symbol carries 1 bit (binary)
Calculation:
- Bit rate = 1000 × 1 = 1000 bps
Like this: 1000 trucks per second, each carrying 1 crate → 1000 crates per second
Example 2: quaternary transmission
Assume:
- Baud rate = 1000 Baud
- Each symbol carries 2 bits (quaternary)
Calculation:
- Bit rate = 1000 × 2 = 2000 bps
Like this: 1000 trucks per second, each carrying 2 crates → 2000 crates per second
Comparison table:
| Modulation scheme | Number of symbol states | Bits per symbol | Baud rate | Bit rate |
|---|---|---|---|---|
| Binary | 2 | 1 | 1000 | 1000 |
| Quaternary | 4 | 2 | 1000 | 2000 |
| Octal | 8 | 3 | 1000 | 3000 |
| Hexadecimal | 16 | 4 | 1000 | 4000 |
The underlying rule:
where:
- = number of bits per symbol
- = number of symbol states
Source: the “Origin” of Information
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
The source is the party that sends information and produces the data to be transmitted. It is like the sender of a parcel.
Common sources:
- 📱 A phone: sends text messages and photos
- 💻 A computer: sends files and email
- 🎤 A microphone: captures sound
- 📹 A camera: captures video
- 🌡️ A sensor: captures temperature, humidity, and similar data
Sink: the “Destination” of Information
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
The sink is the party that receives information and processes the data. It is like the recipient of a parcel.
Common sinks:
- 📱 A phone: receives text messages and photos
- 💻 A computer: receives files and email
- 🔊 A speaker: plays back sound
- 🖥️ A monitor: displays images
- 📊 A database: stores data
The Communication Model
A complete communication process is like the movement of a parcel:
The role of each stage:
| Stage | Parcel analogy | Role in communication |
|---|---|---|
| Source | Sender | Produces the data |
| Transmitting device | Packer | Turns the data into signals |
| Channel | Delivery truck | Carries the signals |
| Receiving device | Unpacker | Turns the signals back into data |
| Sink | Recipient | Receives the data |
A complete communication system has several stages, just as a complete logistics system does:
Details of Each Part
1. Source
Role: produces the original information
Examples:
- A person speaking
- A computer generating a file
- A sensor collecting data
2. Transmitter
Role: converts the information into signals suited to transmission
Functions:
- Encoding: encodes the data into a digital signal
- Modulation: modulates the digital signal onto a carrier
- Amplification: increases the signal power
Examples:
- The transmit circuit of a phone
- The transmit module of a router
- The transmitter of a radio station
3. Channel
Role: the medium over which the signals travel
Types:
- Wired: twisted pair, optical fibre, coaxial cable
- Wireless: radio, microwave, infrared
Characteristics:
- Bandwidth limits
- Attenuation
- Delay
- Noise
4. Receiver
Role: turns the signals back into information
Functions:
- Demodulation: extracts the signal from the carrier
- Decoding: turns the signal back into data
- Filtering: removes noise interference
Examples:
- The receive circuit of a phone
- The receive module of a router
- The receive circuit of a radio
5. Sink
Role: receives and processes the information
Examples:
- A person hearing a voice
- A computer storing a file
- A monitor displaying an image
6. Noise Source
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
Noise is any factor that interferes with signal transmission, like the various obstacles encountered during transport.
Types of noise:
| Type | Source | Effect | Remedy |
|---|---|---|---|
| Thermal noise | Heating of electronic components | Random interference | Lower the temperature, shield |
| Crosstalk | Interference from adjacent signal lines | Signal distortion | Twisted pair, shielding |
| Impulse noise | Lightning, motor start-up | Bursts of interference | Filtering, error correction |
| Attenuation | Transmission distance | Weakening of the signal | Repeaters, amplifiers |
Everyday analogies:
- 🚗 Making a call on a noisy street (environmental noise)
- 📻 Poor reception in the mountains (attenuation)
- 📱 No signal in a lift (shielding)
Example 1: Making a Phone Call
The complete communication process of a phone call:
- Source: you speak (a sound signal, an analog signal)
- Transmitting device: the microphone turns the sound into an electrical signal
- Encoding: the phone converts the analog signal into a digital signal
- Modulation: the digital signal is modulated onto radio waves
- Channel: it travels over base stations and the fibre network
- Demodulation: the other phone extracts the signal from the radio waves
- Decoding: the digital signal is converted back into an analog signal
- Receiving device: the speaker turns the electrical signal into sound
- Sink: the other person hears your voice
Example 2: Browsing the Web
- Source: you click a link
- Transmitting device: the computer encodes the request into a digital signal
- Channel: it travels over the network cable / WiFi
- Relaying: it passes through several routers
- Receiving device: the server receives the request
- Processing: the server processes the request
- Source: the server returns the page data
- Channel: it travels back over the network
- Receiving device: the computer receives the data
- Sink: the browser displays the page
Exercise 1
What is a channel, and how can channels be classified?
Approach
Start from the definition of a channel, then classify it along the three axes that matter in practice: the medium it runs over, the direction the data flows, and the way several signals share it.
Steps
- State the definition: the physical path over which data travels.
- Classify by transmission medium: wired channels and wireless channels.
- Classify by transmission direction: simplex, half duplex, and full duplex.
- Classify by multiplexing method: time, frequency, and code division multiplexing.
Answer
A channel is the physical path over which data travels. It is the medium through which information is transmitted, much like a road connecting two places.
The classification of channels:
-
By transmission medium:
- Wired channels: twisted pair, optical fibre, coaxial cable
- Wireless channels: radio waves, microwaves, infrared
-
By transmission direction:
- Simplex channel: one direction only (such as broadcasting)
- Half duplex channel: bidirectional but not simultaneous (such as a walkie-talkie)
- Full duplex channel: bidirectional and simultaneous (such as a telephone)
-
By multiplexing method:
- Time division multiplexing: different signals at different times
- Frequency division multiplexing: different signals at different frequencies
- Code division multiplexing: different signals with different codes
Exercise 2
What is the difference between an analog signal and a digital signal, and why do computer networks mainly use digital signals?
Approach
Compare the two signals on the three axes that separate them: how they vary, how many values they can take, and how they behave in the presence of interference. Then explain why the second property makes digital signals the natural choice for a computer network.
Steps
- Contrast continuity: the analog signal varies smoothly, the digital signal jumps between discrete levels.
- Contrast the set of values: infinitely many against a finite set.
- Contrast resistance to interference: the analog signal distorts, the digital signal does not.
- Give the reasons for the choice: interference resistance, storage, error correction, confidentiality, and compatibility.
Answer
The main differences:
-
Continuity:
- Analog signal: varies continuously, like a wave
- Digital signal: varies discretely, like a staircase
-
Values it can take:
- Analog signal: infinitely many values
- Digital signal: only a finite number of values (0 and 1)
-
Resistance to interference:
- Analog signal: easily distorted by interference
- Digital signal: highly resistant to interference
Why digital signals are used:
- Strong resistance to interference: only 0 or 1 has to be judged, so errors are unlikely
- Easy to store: computers handle digital data well
- Well-established error correction: mature detection and correction algorithms exist
- Better confidentiality: digital data is easy to encrypt
- Good compatibility: it fits computer systems naturally
Exercise 3
What is the relationship between baud rate and bit rate? If a system runs at 2400 Baud and uses quaternary transmission, what is the bit rate?
Approach
Start from the defining relationship, then apply it. The number of bits a symbol carries follows from the number of states the symbol has, so the bit rate is the baud rate multiplied by that number.
Steps
- State the relationship: bit rate = baud rate × number of bits per symbol.
- Read the given values: 2400 Baud, quaternary transmission.
- Note that a quaternary symbol has four states, so it carries log₂4 = 2 bits.
- Multiply the baud rate by the bits per symbol.
- Check the result against the intuitive reading of the figures.
Answer
The relationship:
Bit rate = baud rate × number of bits per symbol
The calculation:
Given:
- Baud rate = 2400 Baud
- Quaternary transmission (4 symbol states)
Calculation:
- A quaternary symbol can represent 4 states: 00, 01, 10, 11
- Number of bits per symbol = log₂4 = 2 bits
- Bit rate = 2400 × 2 = 4800 bps
Answer: the bit rate is 4800 bps
In plain terms:
- A baud rate of 2400 Baud: 2400 symbols are transmitted each second (like 2400 trucks)
- 2 bits per symbol: each truck carries 2 crates
- A bit rate of 4800 bps: 4800 crates are carried each second
Exercise 4
Explain the role of each part of the communication system model, and give an example.
Approach
Walk through the model stage by stage, giving each stage its role, a concrete example, and the functions it performs. Then assemble the stages into one end-to-end example.
Steps
- List the five stages of the model plus the noise source.
- For each stage, give the role, an example, and the functions it performs.
- Close with a single example that chains all the stages together.
Answer
The communication system model:
The role of each part:
-
Source: produces the original information
- Example: a person speaking, a computer generating a file
-
Transmitting device: converts the information into signals
- Example: a microphone turning sound into an electrical signal
- Functions: encoding, modulation, amplification
-
Channel: the medium over which the signals travel
- Example: twisted pair, optical fibre, radio waves
- Characteristics: bandwidth, attenuation, noise
-
Receiving device: turns the signals back into information
- Example: a speaker turning an electrical signal into sound
- Functions: demodulation, decoding, filtering
-
Sink: receives and processes the information
- Example: a person hearing a voice, a computer storing a file
-
Noise source: interferes with signal transmission
- Example: thermal noise, crosstalk, impulse noise
A complete example:
During a phone call: you (source) speak → the phone (transmitting device) encodes → radio waves (channel) carry it → the other phone (receiving device) decodes → the other person (sink) hears it
