To travel over a medium, data must be turned into signals. How the signals flow, and how fast, decides the quality of communication.
Analog and Digital Signals
An analog signal varies continuously over time and can take any value in a range, like a sound wave or the old telephone signal. It is described by its amplitude (strength), frequency (cycles per second, in hertz) and phase. A digital signal has a limited number of discrete values, usually two levels for 0 and 1. Digital signals are less affected by noise, can be regenerated exactly by repeaters, and suit computers, but need more bandwidth. Converting digital data to analog signals for transmission is modulation, and back again is demodulation, which is done by a modem. Analog data, such as voice, is converted to digital by sampling and quantisation, as in pulse code modulation.
Definition: Bandwidth. The capacity of a communication channel, either the range of frequencies it can carry (in hertz) or the maximum rate at which it can transmit data (in bits per second).
Transmission Modes
Simplex: data flows in one direction only, like a keyboard to a computer or a TV broadcast. Half-duplex: data flows in both directions, but one at a time, like a walkie-talkie. Full-duplex: data flows in both directions at the same time, like a telephone call or modern switched Ethernet. Transmission can also be serial (one bit at a time over one line, used for long distances, as in USB) or parallel (several bits at once over several lines, for short distances), and synchronous (with a shared clock) or asynchronous (with start and stop bits).
Bandwidth, Throughput and Latency
Bandwidth is the maximum data rate of a link, measured in bits per second (kbps, Mbps, Gbps). Throughput is the actual rate achieved, which is usually lower because of overhead, congestion and errors. Latency (delay) is the time a bit takes to travel from source to destination. It has four parts: transmission delay = packet size / bandwidth; propagation delay = distance / signal speed (about 2 × 10⁸ m/s in cable); queuing delay in routers; and processing delay. Round-trip time (RTT), measured by ping, is the time for a message to go and return. Jitter is the variation in delay, which disturbs voice and video. The bandwidth-delay product (bandwidth × latency) gives the number of bits "in flight" on a link.
Table 1.5: Transmission modes
| Mode | Direction | Example |
|---|---|---|
| Simplex | One way only | Keyboard, TV broadcast |
| Half-duplex | Both ways, one at a time | Walkie-talkie |
| Full-duplex | Both ways at once | Telephone, switched Ethernet |
Example 1.5: Computing delay
Problem: A 1,500-byte packet is sent over a 10 Mbps link 2,000 km long, with signal speed 2 × 10⁸ m/s. Find the transmission delay, propagation delay and their total.
Solution:
- Packet size = 1,500 × 8 = 12,000 bits.
- Transmission delay = 12,000 / 10,000,000 = 0.0012 s = 1.2 ms.
- Propagation delay = 2,000,000 / 200,000,000 = 0.01 s = 10 ms.
- Total (ignoring queuing and processing) = 11.2 ms.
Result: 1.2 ms transmission, 10 ms propagation, 11.2 ms in total.
size_bits = 1500 * 8
bw = 10e6 # 10 Mbps
dist, speed = 2_000_000, 2e8
t_trans = size_bits / bw
t_prop = dist / speed
print(f"transmission delay = {t_trans * 1000:.1f} ms")
print(f"propagation delay = {t_prop * 1000:.1f} ms")
print(f"total = {(t_trans + t_prop) * 1000:.1f} ms")
print(f"bandwidth-delay product = {bw * t_prop:.0f} bits")
Output
transmission delay = 1.2 ms
propagation delay = 10.0 ms
total = 11.2 ms
bandwidth-delay product = 100000 bits
Common mistakes
- Confusing bandwidth (capacity) with throughput (actual rate).
- Thinking that higher bandwidth always reduces propagation delay. Propagation depends on distance.
- Calling a walkie-talkie full-duplex. It is half-duplex.
Key takeaways
- Analog signals are continuous; digital signals are discrete.
- Simplex is one way; half-duplex is both ways in turn; full-duplex is both ways together.
- Bandwidth is capacity; throughput is the achieved rate.
- Latency = transmission + propagation + queuing + processing delay.
Practice questions
- Distinguish analog and digital signals.
- Give an example of half-duplex communication.
- What is propagation delay?
Answers to the practice questions
- An analog signal varies continuously; a digital signal has discrete values such as 0 and 1.
- A walkie-talkie.
- The time for a signal to travel the length of the link, distance divided by signal speed.
Sources
- Official BCA syllabus Computer Networks, course code 26BCA404DS02, Unit I
