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 |
什么能解释这一观察结果?
- 一条短消息可能在高带宽链路上到达延迟。容量与延迟衡量的是不同的属性。
What did the pigeon have more of than the ADSL line?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Its latency was over an hour.
构建模型
- 数据包携带寻址数据在网络中传输。
- 分层模型分离了不同职责,如应用层语义、传输层交付和网络层路由。
- 带宽描述容量;吞吐量 throughput 指实际数据传输速率;延迟 latency 指延时。
- 吞吐量:有效数据传输的实际速率。
- 延迟:通信过程中经历的延时。
Match each task to the measure that matters most.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Judge by the task.
选择可验证的证据
- 传输时间取决于数据大小和传输速率。
- 总延迟还可能包括传播延迟、处理延迟和排队延迟。
- 加密在其假设范围内保护内容,但不能消除拥塞或所有元数据暴露的风险。
在实验课中: 使用文档化的本地模型追踪消息路径。记录负载大小、单位及实测时间。仅使用学校批准的网络和合成消息;严禁扫描或拦截其他用户的流量。
Which TCP/IP layer does IP belong to?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
TCP and UDP are transport.
从已知量出发
- 已知:一个8兆比特文件穿过一条2兆比特/秒的链路。
- 理想传输时间 = 大小/速率 = 8/2 = 4 秒。
- 协议开销、其他用户和延迟可能导致实际完成速度变慢。
你的练习: 一个 12 兆比特文件通过 3 兆比特/秒的链路传输。计算理想传输时间。
传输速率更高,仍可能存在等待
从课文中8 Mbit文件以2 Mbit/s传输的例子开始,比较另一条示例链路,并区分传输时间与固定单向延迟。
TCP resends lost packets; UDP does not.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
UDP is faster but unreliable.
检查结论及其局限性
- 不考虑开销时,一个兆字节等于八个兆比特。
- 更高标称速率的链路并不能保证低延迟或安全的端点。
不正确: 高带宽连接不能保证零延迟。带宽是容量——每秒能传输多少数据;延迟是延时——单个信号需要多长时间。高容量链路仍可能具有高延迟,例如卫星连接。
- 数据包携带寻址数据在网络中传输。
- 传输时间取决于数据大小和传输速率。
- 注意:不考虑开销时,一个兆字节等于八个兆比特。
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.
出了什么问题?只有网站团队能看到这些信息。