Data transmission and packets · 数据传输与数据包
| English | 中文 | Pinyin · 拼音 |
|---|---|---|
| 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ʃɪŋ/ | 数据包交换 | shù jù bāo jiāo huàn |
| header/ˈhedə/ | 报头 | bào tóu |
| payload/ˈpeɪləʊd/ | 有效载荷 | yǒu xiào zài hè |
| routers/ˈruːtəz/ | 路由器 | lù yóu qì |
| 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 |
Sending data around
- Data transmission 数据传输 moves data from one place to another.
- The data is broken into small equal pieces called packets 数据包.
- We also choose how it travels: serial 串行/parallel 并行 and the direction.
把数据发送到各处
- 数据传输(data transmission)把数据从一个地方移到另一个地方。
- 数据被分成叫作数据包(packets)的小的相等的片。
- 我们也选择它如何传播:串行/并行以及方向。
Packets and packet switching 数据包交换
- A packet has three parts: a header 报头 (sender + receiver IP addresses, packet number), the payload 有效载荷 (the data), and a trailer (end marker + error check).
- Benefits of packets: only a lost packet is resent (not the whole file); packets can take different routes; many users share the connection.
- In packet switching, routers 路由器 read each header and pick a route; packets may arrive out of order and are reordered by packet number.
A packet has a header, a payload (the data) and a trailer; the header carries the addresses and packet number.
Routers forward packets, and different packets can take different routes to the same receiver.
数据包与分组交换
- 一个数据包有三部分:一个报头(header,发送方 + 接收方 IP 地址、包编号)、有效载荷(payload,数据),和一个报尾(trailer,结束标记 + 错误检查)。
- 数据包的好处:只有丢失的包被重发(不是整个文件);包能走不同的路线;许多用户共享连接。
- 在分组交换(packet switching)中,路由器(routers)读每个报头并选一条路线;包可能乱序到达,并按包编号被重新排序。

一个数据包有一个报头、一个有效载荷(数据)和一个报尾;报头携带地址和包编号。

路由器转发数据包,不同的包能走不同的路线到同一个接收方。
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: · 一个数据包报头包含:
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. · 把数据包的每个部分匹配到它携带的内容。
A packet = header (control info) + payload (data) + trailer (end + error check); splitting up means only lost packets are resent. · 一个数据包 = 报头(控制信息)+ 有效载荷(数据)+ 报尾(结束 + 错误检查);分割意味着只有丢失的包被重发。
Serial vs parallel
- Serial sends one bit at a time down one wire — cheaper, and good over long distances (bits stay in order).
- Parallel sends several bits at once down several wires — faster but only over short distances (bits can arrive at slightly different times).
An Ethernet cable with an RJ45 plug, often used to carry data on a wired network
串行对并行
- 串行(serial)沿一根线一次一位发送——更便宜,且在长距离上好(位保持顺序)。
- 并行(parallel)沿几根线一次几位发送——更快但只在短距离上(位可能在稍微不同的时间到达)。

一根带 RJ45 插头的以太网线,常用于在有线网络上携带数据
Serial transmission: · 串行传输:
Serial = one bit at a time (cheaper, long-distance reliable); parallel = many bits at once (fast, short-distance). · 串行 = 一次一位(更便宜,长距离可靠);并行 = 一次多位(快,短距离)。
Direction, and USB
- Simplex 单工 — one direction only (computer → printer).
- Half-duplex 半双工 — both directions, one at a time (walkie-talkie).
- Full-duplex 全双工 — both directions at once (phone call).
- USB: one standard connector, auto-detects the device and loads the driver, carries power, and only fits one way.
A fibre-optic cable carries data as pulses of light along thin glass fibres
方向,以及 USB
- 单工(simplex)——只有一个方向(计算机 → 打印机)。
- 半双工(half-duplex)——两个方向,一次一个(对讲机)。
- 全双工(full-duplex)——同时两个方向(电话通话)。
- USB:一种标准连接器,自动检测设备并加载驱动,携带电力,且只能一个方向插入。

一根光纤线沿细玻璃纤维以光脉冲携带数据
Simplex sends data one way only, half-duplex sends both ways but one at a time, and full-duplex sends both ways at the same time (like a phone call). · 单工只在一个方向发送数据,半双工两个方向发送但一次一个,而全双工同时两个方向发送(像一次电话通话)。
The three modes differ by direction and timing: simplex (one way), half-duplex (take turns), full-duplex (both at once). · 这三种模式按方向和时机不同:单工(单向)、半双工(轮流)、全双工(同时两个)。
A benefit of USB is that: · USB 的一个好处是:
USB uses one standard connector, auto-detects devices, carries power, and only fits one way. · USB 使用一种标准连接器,自动检测设备,携带电力,且只能一个方向插入。
You've got it
- a packet = header (addresses + number) + payload + trailer; only lost packets are resent
- packet switching: routers route each packet; reordered by packet number
- serial = one bit/one wire (long distance); parallel = many bits/many wires (short)
- simplex / half-duplex / full-duplex = one way / one-at-a-time / both-at-once
你掌握了
- 一个数据包 = 报头(地址 + 编号)+ 有效载荷 + 报尾;只有丢失的包被重发
- 分组交换:路由器为每个包选路;按包编号重新排序
- 串行 = 一位/一根线(长距离);并行 = 多位/多根线(短)
- 单工 / 半双工 / 全双工 = 单向 / 一次一个 / 同时两个