Networks: latency, throughput and layered delivery
引入| English | 释义 | 拼音 |
|---|---|---|
| latency/ˈleɪtənsi/ | 延迟 | yán chí |
| throughput/ˈθruːpʊt/ | 吞吐量 | tūn tǔ liàng |
| bandwidth/ˈbændwɪdθ/ | 带宽 | dài kuān |
| protocol/ˈprəʊtəkɒl/ | 协议 | xié yì |
| packet/ˈpækɪt/ | 数据包 | shù jù bāo |
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?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
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.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
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?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
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.
传输速率更高,仍可能存在等待
从课文中8 Mbit文件以2 Mbit/s传输的例子开始,比较另一条示例链路,并区分传输时间与固定单向延迟。
TCP resends lost packets; UDP does not.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
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?
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
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?
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
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.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
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.