Data Communication
Switching Techniques
In a large network a message passes through many intermediate devices, and switching decides how its path is set up. In circuit switching, a dedicated path between sender and receiver is established before any data is sent, reserved for the whole conversation and released at the end — the traditional telephone call. Its resources sit idle during silences, but once the circuit is up, data arrives in order with no waiting. In packet switching, the message is broken into small packets, each carrying the destination address and a sequence number; packets travel independently, possibly by different routes, sharing the links with other traffic, and are reassembled in order at the destination. No path is reserved, so links are used efficiently; the Internet works this way.
- Dedicated path set up first
- Path reserved for the whole conversation
- Data arrives in order, no waiting
- Resources idle during silences
- Traditional telephone call
- Message broken into packets
- No path reserved
- Packets reassembled in order at destination
- Links used efficiently
- The Internet
In a large network a message passes through many intermediate devices, and switching decides how its path is set up. In circuit switching, a dedicated path between sender and receiver is…
Transmission Media
Guided (wired) media carry signals along a physical path. Twisted-pair cable has pairs of insulated copper wires twisted together, the twisting reducing interference from outside and between pairs; it is cheap and used for telephone lines and Ethernet LANs with RJ45 connectors, in unshielded (UTP) and shielded (STP) forms. Coaxial cable has a copper core, insulation, a braided metal shield and an outer cover; the shield gives it better protection from interference and more bandwidth than twisted pair, and it is used for cable TV. Optical fibre carries data as light through a glass or plastic core surrounded by cladding, the light staying inside by total internal reflection; it offers very high bandwidth over long distances and is immune to electromagnetic interference, but it is costly and harder to install and join, so it forms network backbones.
| Medium | Approximate band | Behaviour | Used for |
|---|---|---|---|
| Radio waves | 3 kHz – 1 GHz | omnidirectional; travel long distances and pass through walls | AM and FM radio, cordless phones |
| Microwaves | 1 GHz – 300 GHz | unidirectional, line of sight; cannot pass through solid obstacles, so towers are placed high | satellite links, mobile networks, long-distance links between towers |
| Infrared | 300 GHz – 400 THz | very short range, line of sight; blocked by walls, so it stays inside a room | TV remote controls, short links between nearby devices |
Mobile telecommunication has moved through generations. 1G carried analog voice; 2G made voice digital and added SMS; 3G brought mobile Internet and video calls; 4G brought high-speed mobile broadband; and 5G adds much higher speeds and very low delay, suited to connecting large numbers of devices.
- 1GAnalog voice
- 2GDigital voice and SMS
- 3GMobile Internet, video calls
- 4GHigh-speed mobile broadband
- 5GHigher speed, very low delay

Guided (wired) media carry signals along a physical path. Twisted-pair cable has pairs of insulated copper wires twisted together, the twisting reducing interference from outside and…
Protocols
A protocol is a set of rules governing how data is formatted, sent and received, so that devices built by different makers can communicate. The book describes five:
| Protocol | Job |
|---|---|
| HTTP — HyperText Transfer Protocol | transfers web pages: the browser (client) sends a request and the web server sends a response |
| FTP — File Transfer Protocol | transfers files between a client and a server — uploading and downloading |
| PPP — Point-to-Point Protocol | carries data over a direct link between two nodes, such as a computer dialling in to its Internet service provider |
| SMTP — Simple Mail Transfer Protocol | sends e-mail from the sender's client to the mail server and between mail servers (reading mail from a mailbox uses other protocols, such as POP3) |
| TCP/IP — Transmission Control Protocol / Internet Protocol | the Internet's core suite: TCP breaks data into packets, checks that all arrive and puts them back in order; IP addresses each packet and routes it to its destination |
A protocol is a set of rules governing how data is formatted, sent and received, so that devices built by different makers can communicate. The book describes five:
Worked Calculations: Transfer Time and Address Space
Data rates are quoted in bits per second while file sizes are quoted in bytes, and one byte is 8 bits, so the unit conversion is where students slip. A 10 MB file sent over a link of 8 Mbps takes 10 × 8 / 8 = 10 seconds, and a 25 MB file over 20 Mbps takes 25 × 8 / 20 = 10 seconds as well. In practice the real time is longer because of protocol overhead, delay and congestion. The size of the addressing space is a similar calculation: an IPv4 address has 32 bits and so allows 2³² = 4,294,967,296 addresses, while an IPv6 address has 128 bits and allows 2¹²⁸, about 3.4 × 10³⁸, which solves the shortage of IPv4 addresses.
| Question | Working | Answer |
|---|---|---|
| 10 MB over 8 Mbps | 10 × 8 / 8 | 10 s |
| 25 MB over 20 Mbps | 25 × 8 / 20 | 10 s |
| IPv4 addresses | 2³² | 4,294,967,296 |
Data rates are quoted in bits per second while file sizes are quoted in bytes, and one byte is 8 bits, so the unit conversion is where students slip. A 10 MB file sent over a link of 8 Mbps…
Key takeaways
- Data communication needs a sender, a receiver, a message, a medium and a protocol.
- Bandwidth is measured in hertz; data transfer rate in bits per second.
- Simplex is one way (keyboard), half-duplex one way at a time (walkie-talkie), full-duplex both ways at once (telephone).
- Circuit switching reserves a path before sending; packet switching sends independent packets that may take different routes.
- Twisted pair is cheap, coaxial better shielded, optical fibre uses light by total internal reflection and ignores electromagnetic interference.
- Radio waves are omnidirectional and pass walls; microwaves and infrared need line of sight, infrared only over a short range.
- HTTP for web pages, FTP for files, PPP for a direct two-node link, SMTP for sending mail, TCP/IP for reliable addressed delivery.
Practice questions (24)
Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.
On a walkie-talkie, both people can talk, but only one can speak at a time. Which mode of data communication is this?
Show answer
Answer: C — Half-duplex
Data flows in both directions, but never in both at once, which is half-duplex. Simplex allows one direction only, like a keyboard sending to a computer. Full-duplex allows both at the same time, as on a telephone call. Broadcast describes one sender reaching many receivers, not the direction of an exchange.In which switching technique is a dedicated path between sender and receiver set up before any data is transmitted, and kept for the whole session?
Show answer
Answer: A — Circuit switching
Circuit switching establishes and reserves the whole path first, as a traditional telephone call does, and releases it only when the session ends. Packet switching is the opposite approach: no path is reserved and each packet finds its own way. Hashing is a searching technique, and DNS translates names into addresses rather than setting up paths.Which statement about packet switching is correct?
Show answer
Answer: C — Packets may take different routes and are reassembled in order at the destination
Packet switching divides the message into numbered packets that travel independently, possibly by different routes, sharing the links with other traffic; the sequence numbers let the destination put them back in order. A reserved route and a circuit set up in advance both describe circuit switching, and the whole point of the technique is that the message is divided.
Show the other 21 questions
Which property makes optical fibre especially suitable for running beside heavy electrical machinery?
Show answer
Answer: B — It carries light, so it is immune to electromagnetic interference
Optical fibre carries data as light kept inside the core by total internal reflection, and light is not disturbed by the electromagnetic fields that machinery produces. It is the most expensive of the three cables, not the cheapest. A braided shield belongs to coaxial cable, which reduces interference rather than escaping it, and radio waves are a wireless medium.A TV remote works only when pointed at the television and does not operate a TV in the next room. Which medium does it use?
Show answer
Answer: A — Infrared
Infrared needs a line of sight over a short distance and is stopped by walls, which is exactly why the remote must be pointed and cannot reach the next room. Radio waves are omnidirectional and pass through walls, so a radio remote would work from another room. A remote has no cable, and satellite microwaves cover long distances.Which protocol is used to send an e-mail from the sender's mail client to the mail server?
Show answer
Answer: D — SMTP
SMTP, the Simple Mail Transfer Protocol, carries outgoing mail from the client to the server and between mail servers. FTP transfers files, HTTP transfers web pages, and PPP carries data over a direct link between two nodes. A webmail page is fetched with HTTP, but the mail itself is still handed on by SMTP.Match each protocol with its job. A. HTTP B. FTP C. PPP D. TCP — 1. Transfers files between client and server 2. Ensures packets arrive completely and in order 3. Transfers web pages 4. Carries data over a direct link between two nodes
Show answer
Answer: D — A-3, B-1, C-4, D-2
HTTP fetches web pages, FTP moves files, PPP runs a direct point-to-point link such as a computer to its service provider, and TCP is the half of TCP/IP responsible for complete, ordered delivery. A-3, B-1, C-2, D-4 swaps PPP and TCP, both "connection" ideas; A-1, B-3, C-4, D-2 swaps HTTP and FTP, both "transfer" protocols.Assertion (A): The bandwidth of a communication channel is measured in hertz. Reason (R): The data transfer rate of a channel is measured in bits per second.
Show answer
Answer: B — Both A and R are true, but R is not the correct explanation of A
Bandwidth is a range of frequencies, so it is measured in hertz, and data transfer rate is a count of bits per second — both statements are true. But they describe two different quantities, and the unit of one says nothing about why the other uses hertz. Choosing "R explains A" treats bandwidth and data rate as the same thing, which is the confusion the pair is set to catch.In simplex communication, data flows:
Show answer
Answer: A — In one direction only
Simplex is one-way, like a keyboard sending to a computer. Both ways alternately is half duplex.The bandwidth of a channel is measured in:
Show answer
Answer: A — Hertz (Hz)
Bandwidth is the range of frequencies in hertz. Data rate is measured in bits per second.Data transfer rate is commonly measured in:
Show answer
Answer: A — Bits per second (bps)
Data rate counts bits transmitted each second. Hertz measures bandwidth, which is the usual confusion.An optical fibre cable carries data as:
Show answer
Answer: A — Pulses of light
Fibre transmits light pulses through glass strands. Twisted pair and coaxial cable carry electrical signals.A walkie-talkie, in which only one person can speak at a time, uses which mode?
Show answer
Answer: A — Half duplex
Both can transmit but only in turn, which is half duplex. A telephone allows both at once, which is full duplex.A file of 8 megabytes (MB) is sent over a link of 2 megabits per second (Mbps). The time taken is:
Show answer
Answer: A — 32 seconds
8 MB is 64 megabits and 64 ÷ 2 = 32 seconds. 4 seconds forgets to convert bytes to bits.Which medium is NOT affected by electromagnetic interference?
Show answer
Answer: A — Optical fibre
Fibre carries light, which is immune to electrical noise. Copper cables and radio waves are affected.Assertion (A): In packet switching, a message is divided into packets that may follow different routes.
Reason (R): This allows the network to share its links efficiently among many users.
Choose the correct option:Show answer
Answer: A — Both A and R are true and R is the correct explanation of A
Packets from many users share links as needed, which is the benefit R states. Option 2 is wrong.Consider the following statements:
A. Simplex communication is one-way only.
B. Full duplex allows both ends to transmit at the same time.
C. Half duplex allows both ends to transmit at the same time.
D. A telephone call is an example of full duplex.
Choose the correct answer:Show answer
Answer: A — A, B and D only
A, B and D are correct. C is false because half duplex allows transmission in turn, not at the same time, so option 4 is the trap.Match List I with List II:
List I:
A. Twisted pair;
B. Coaxial cable;
C. Optical fibre;
D. Satellite link
List II:
1. Cable television;
2. Very long distance wireless;
3. Telephone and LAN cabling;
4. Highest bandwidth by light pulsesShow answer
Answer: A — A-3, B-1, C-4, D-2
Twisted pair serves telephones and LANs (3), coaxial serves cable TV (1), fibre gives the highest bandwidth (4) and satellites cover very long distances (2). Option 2 swaps twisted pair and coaxial.A 500 MB file is downloaded at a steady 20 Mbps. The time taken is:
Show answer
Answer: A — 200 seconds
500 MB is 4000 megabits and 4000 ÷ 20 = 200 seconds. 25 seconds forgets the bytes-to-bits factor.In circuit switching:
Show answer
Answer: A — A dedicated path is set up between sender and receiver before communication
A traditional telephone call reserves a path for its duration. Packet switching, by contrast, splits data into packets.Assertion (A): Satellite communication has a noticeable delay.
Reason (R): The signal must travel a very long distance up to the satellite and back to the earth.
Choose the correct option:Show answer
Answer: A — Both A and R are true and R is the correct explanation of A
Distance determines delay, as R states. Option 2 is wrong.Which medium is the best choice for carrying a very large amount of data over a long distance on land?
Show answer
Answer: A — Optical fibre
Fibre offers very high bandwidth with little loss over distance. Infrared and Bluetooth have a short range.A link has a data rate of 1.5 megabytes per second (MBps). Its data rate in megabits per second (Mbps) is:
Show answer
Answer: A — 12 Mbps
One byte is 8 bits, so 1.5 × 8 = 12 Mbps. 0.19 divides by 8 instead of multiplying.The bits 1011001 are sent with an even parity bit added. The parity bit is:
Show answer
Answer: A — 0
The data already has four 1s, which is an even count, so the parity bit is 0 to keep the total even. A bit of 1 would make the count five, which is odd.