Networks: latency, throughput and layered delivery
Introduzido| English | Significado |
|---|---|
| latency/ˈleɪtənsi/ | latência |
| throughput/ˈθruːpʊt/ | taxa de transferência |
| bandwidth/ˈbændwɪdθ/ | The data-carrying capacity of a network link, commonly measured in bits per second in this course. |
| protocol/ˈprəʊtəkɒl/ | An agreed set of rules governing communication between devices or systems. |
| packet/ˈpækɪt/ | Units of data sent through a network, containing payload and control information such as addressing details. |
A pigeon against the internet, 2009
- In September 2009 an IT company near Durban, South Africa, raced a carrier pigeon called Winston against its ADSL line. Winston carried a 4 GB memory stick about 80 km in just over an hour. By the time the data was loaded at the other end, only about 4% of the same file had crossed the line.
- The pigeon had terrible latency 延迟 — over an hour before any data arrived — but huge throughput 吞吐量. Network performance needs both measures.
What did the pigeon have more of than the ADSL line?
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
Its latency was over an hour.
Bandwidth, throughput and latency
- Bandwidth 带宽: the maximum data rate a link can carry. Throughput: the rate actually achieved.
- Latency: the delay before data starts to arrive. A video call needs low latency; a backup needs high throughput.
Match each task to the measure that matters most.
Dificuldade 2/5 · Moedas 140 + pequeno bônus na primeira conclusão hoje
Judge by the task.
Layered delivery
- The TCP/IP model splits the job into layers: application (HTTP), transport (TCP/UDP), internet (IP), network access (Ethernet, Wi-Fi).
- Each layer adds a header; the receiver removes them in reverse. A protocol 协议 is the agreed rules for one layer.
Which TCP/IP layer does IP belong to?
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
TCP and UDP are transport.
Packets and reliability
- Data is split into packets 数据包 that may take different routes. TCP numbers them, resends lost ones and reorders them; UDP does not, so it is faster but unreliable.
- Streaming and gaming often choose UDP; file transfer and web pages use TCP.
A faster rate can still leave a wait
Compare two links for the same payload and separate transmission time from fixed one-way delay.
TCP resends lost packets; UDP does not.
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
UDP is faster but unreliable.
Worked example: Winston's throughput
Winston flew for about 68 minutes; with loading, the transfer took about 2 hours 7 minutes (7,620 s).
- Data: 4 GB = 4 × 10⁹ bytes × 8 = 3.2 × 10¹⁰ bits.
- Throughput: 3.2 × 10¹⁰ ÷ 7,620 s ≈ 4.2 × 10⁶ bit/s, about 4.2 Mbit/s.
- Comparison: the ADSL line moved only 4% in the same time, so its throughput was about 0.17 Mbit/s. Conclusion: for bulk data, physical transport can beat a slow link; for a message that must arrive in seconds, the pigeon's latency is useless.
600 MB (1 MB = 10⁶ bytes) is transferred in 120 s. What is the throughput in Mbit/s?
Dificuldade 2/5 · Moedas 140 + pequeno bônus na primeira conclusão hoje
600 × 8 = 4,800 Mbit; ÷ 120 = 40 Mbit/s.
Where delay comes from
- Propagation (distance), transmission (size ÷ bandwidth), queuing at routers and processing.
- Adding bandwidth does not reduce propagation delay across an ocean.
Which are sources of network delay?
Dificuldade 2/5 · Moedas 140 + pequeno bônus na primeira conclusão hoje
Processing adds a little too.
Bandwidth is not throughput. A "100 Mbit/s" connection shared by many users, with protocol overhead and lost packets, delivers less. Measure what is achieved.
A 100 Mbit/s connection always delivers 100 Mbit/s.
Dificuldade 1/5 · Moedas 100 + pequeno bônus na primeira conclusão hoje
Throughput is lower than bandwidth.
Latency is the delay before data arrives; throughput is the rate actually achieved; bandwidth is the maximum. Networks deliver data in layered protocols and packets; choose TCP for reliability and UDP for speed, and judge performance by the task.
A school wants to move its 3 TB video archive to a cloud server over a 50 Mbit/s link. Estimate the ideal time and suggest whether a physical drive might be better.
Convert, calculate, judge.