Data transmission and packets
引入本课内容
| English | 释义 | 拼音 |
|---|---|---|
| Data transmission/ˈdeɪtə trænˈsmɪʃn/ | 数据传输 | shù jù chuán shū |
| packets/ˈpækɪts/ | 数据包 | shù jù bāo |
| serial/ˈsɪərɪəl/ | 串行 | chuàn xíng |
| parallel/ˈpærəlel/ | 并行 | bìng xíng |
| packet switching/ˈpækɪt ˈswɪtʃɪŋ/ | 分组交换 | fēn zǔ jiāo huàn |
| header/ˈhedə/ | 报头 | bào tóu |
| IP addresses | IP地址 | IP dì zhǐ |
| packet number | 数据包序号 | shù jù bāo xù hào |
| payload/ˈpeɪləʊd/ | 有效载荷 | yǒu xiào zài hè |
| trailer/ˈtreɪlə/ | 报尾 | bào wěi |
| end marker | 结束标记 | jié shù biāo jì |
| error check | 差错检测 | chā cuò jiǎn cè |
| file/faɪl/ | 文件 | wén jiàn |
| routers/ˈruːtəz/ | 路由器 | lù yóu qì |
| bit/bɪt/ | 比特 | bǐ tè |
| USB | 通用串行总线 | tōng yòng chuàn xíng zǒng xiàn |
| Simplex/ˈsɪmpleks/ | 单工 | dān gōng |
| Half-duplex/hɑːf ˈdjuːpleks/ | 半双工 | bàn shuāng gōng |
| Full-duplex/fʊl ˈdjuːpleks/ | 全双工 | quán shuāng gōng |
| connectors/kəˈnektəz/ | 连接器 | lián jiē qì |
| drivers | 驱动程序 | qū dòng chéng xù |
把数据发送到各处
- 数据传输(data transmission)把数据从一个地方移到另一个地方。
- 数据被分成叫作数据包(packets)的小的相等的片。
- 我们也选择它如何传播:串行/并行以及方向。
数据包与分组交换
- 一个数据包有三部分:报头(发送方和接收方的 IP 地址、数据包编号)、有效载荷(数据)和报尾(结束标记和差错检测)。
- 数据包的好处:只需重发丢失的包,无需重发整个文件;数据包可以走不同的路线;多个用户可以共享连接。
- 在分组交换中,路由器读取每个报头并选择一条路线;数据包可能乱序到达,并按数据包编号重新排序。


How data travels in packets
Step through packet switching. Splitting a file into addressed packets is why one lost packet only needs resending, and why many users can share the same line.
A packet header contains:
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
The header carries control info (addresses + packet number); the payload is the data; the trailer marks the end + error check.
Match each part of a packet to what it carries.
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
A packet = header (control info) + payload (data) + trailer (end + error check); splitting up means only lost packets are resent.
串行与并行
- 串行沿一根线一次发送一位——成本更低,适合长距离传输(各位保持顺序)。
- 并行沿多根线一次同时发送多位——速度更快,但只适合短距离传输(各位可能在略有不同的时间到达)。

Serial transmission:
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Serial = one bit at a time (cheaper, long-distance reliable); parallel = many bits at once (fast, short-distance).
传输方向与 USB
- 单工——只能沿一个方向传输(计算机 → 打印机)。
- 半双工——可以沿两个方向传输,但一次只能沿一个方向(对讲机)。
- 全双工——可以同时沿两个方向传输(电话通话)。
- USB:使用标准连接器,可以自动检测设备并加载驱动程序,还可以供电。


Half-duplex sends data both ways at the same time, like a phone call, while full-duplex sends both ways but only one at a time.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
False. They are swapped: half-duplex sends both ways but one direction at a time (like a walkie-talkie), while full-duplex sends both ways at once (like a phone call). Simplex is one way only.
A benefit of USB is that:
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
USB uses standard connectors, can auto-detect devices and load drivers, and can carry power.
例题:分成数据包的电子邮件
一封电子邮件被分成编号为 1、2 和 3 的数据包。它们按 3、1、2 的顺序到达接收方。解释为什么这封邮件仍能被正确阅读,以及数据包为什么可能乱序到达。
- 每个数据包的报头都包含接收方的 IP 地址和该包的数据包编号。接收方等待所有数据包到达,然后根据编号将它们按 1、2、3 的顺序重新排列。
- 在分组交换中,每个路由器都会沿当时畅通的路线发送每个数据包,因此数据包会走不同的路线,有些会更早到达。如果某个数据包一直没有到达,接收方会请求重发。

Which of these is stored in a packet's header?
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
The header holds the sender's and receiver's IP addresses and the packet number; the data is the payload.
Parallel transmission is the better choice for sending data over long distances.
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Over long distances the bits on parallel wires can arrive at different times (skew) and the extra wires cost more, so serial is used.
你掌握了
- 一个数据包 = 报头(地址 + 编号)+ 有效载荷 + 报尾;只有丢失的包被重发
- 分组交换:路由器为每个包选路;按包编号重新排序
- 串行 = 一位/一根线(长距离);并行 = 多位/多根线(短)
- 单工 / 半双工 / 全双工 = 单向 / 一次一个 / 同时两个
出了什么问题?只有网站团队能看到这些信息。