The internet, the web and IP addressing · 互联网、万维网和IP寻址
| English | 中文 | Pinyin · 拼音 |
|---|---|---|
| internet/ˈɪntənet/ | 互联网 | hù lián wǎng |
| World Wide Web/wɜːld waɪd web/ | 万维网 | wàn wéi wǎng |
| protocol/ˈprəʊtəkɒl/ | 协议 | xié yì |
| modem/ˈməʊdem/ | 调制解调器 | tiáo zhì jiě tiáo qì |
| dedicated line/ˈdedɪkeɪtɪd laɪn/ | 专线 | zhuān xiàn |
| ISP/ˌaɪ es ˈpiː/ | 互联网服务提供商 | hù lián wǎng fú wù tí gōng shāng |
| cell phone network/sel fəʊn ˈnetwɜːk/ | 蜂窝网络 | fēng wō wǎng luò |
| IP address/ˌaɪ ˈpiː əˈdres/ | IP地址 | IP dì zhǐ |
| IPv4/ˌaɪ piː viː ˈfɔː/ | 第四版互联网协议 | dì sì bǎn hù lián wǎng xié yì |
| IPv6/ˌaɪ piː viː ˈsɪks/ | 第六版互联网协议 | dì liù bǎn hù lián wǎng xié yì |
| subnet/ˈsʌbnet/ | 子网 | zi wǎng |
| network ID/ˈnetwɜːk ˌaɪ ˈdiː/ | 网络标识 | wǎng luò biāo shí |
| host ID/həʊst ˌaɪ ˈdiː/ | 主机标识 | zhǔ jī biāo shí |
| subnet mask/ˈsʌbnet mæsk/ | 子网掩码 | zi wǎng yǎn mǎ |
| public IP address/ˈpʌblɪk ˌaɪ ˈpiː əˈdres/ | 公有IP地址 | gōng yǒu IP dì zhǐ |
| private IP address/ˈpraɪvət ˌaɪ ˈpiː əˈdres/ | 私有IP地址 | sī yǒu IP dì zhǐ |
| NAT/næt/ | 网络地址转换 | wǎng luò dì zhǐ zhuǎn huàn |
| static IP address/ˈstætɪk ˌaɪ ˈpiː əˈdres/ | 静态IP地址 | jìng tài IP dì zhǐ |
| dynamic IP address/daɪˈnæmɪk ˌaɪ ˈpiː əˈdres/ | 动态IP地址 | dòng tài IP dì zhǐ |
| DHCP/ˌdiː eɪtʃ siː ˈpiː/ | 动态主机配置协议 | dòng tài zhǔ jī pèi zhì xié yì |
A network so successful it ran out of numbers
- When the internet's addressing scheme was designed in 1981, its 32-bit addresses allowed about four billion devices. That seemed inexhaustible for an experiment linking a few hundred universities.
- The last free blocks were handed out in 2011. Every phone, laptop, camera and sensor on Earth wants an address, and there were not enough to go round.
- The replacement has 128 bits: enough for every grain of sand on the planet to have billions of addresses each.
- This lesson is the internet 互联网 itself, the World Wide Web 万维网 that runs on it, and the addresses that let a packet find one device among billions.
一个成功到用完了号码的网络
- 1981 年设计互联网的寻址方案时,它的 32 位地址允许大约四十亿台设备。对一个连接几百所大学的实验来说,这看起来用不完。
- 最后一批空闲地址块在 2011 年分发完毕。地球上的每一部手机、笔记本电脑、摄像头和传感器都想要一个地址,而地址不够分。
- 替代方案有 128 位:足够让地球上每一粒沙子各拥有几十亿个地址。
- 这一课讲互联网(internet)本身、跑在它上面的万维网(World Wide Web),以及让数据包在几十亿台设备中找到一台的地址。
The internet and the World Wide Web
- The internet is a global network of networks that communicate using a common protocol 协议 suite, TCP/IP.
- The World Wide Web (WWW) is one service that runs over it: hyperlinked documents identified by URLs, requested with HTTP or HTTPS and shown in a browser.
- Email and file transfer are other internet services that are not part of the web. Webmail uses both: the mailbox is a web page reached through a browser, while the email itself travels across the network of networks.
The web rides on the internet; so do services that are not the web
互联网和万维网
- 互联网是一个全球性的网络的网络,使用共同的协议(protocol)族 TCP/IP 通信。
- 万维网(WWW)是跑在它上面的一种服务:由 URL 标识的超链接文档,用 HTTP 或 HTTPS 请求,在浏览器中显示。
- 电子邮件和文件传输是不属于万维网的其他互联网服务。网页邮箱两者都用:邮箱是通过浏览器访问的网页,而邮件本身在网络的网络上传输。

万维网骑在互联网上;不是万维网的服务也一样
What is the relationship between the internet and the World Wide Web? · 互联网与万维网之间的关系是什么?
The internet is the global network; the WWW is one service on it (hyperlinked documents). Email and file transfer are other internet services. · 互联网是全球网络;万维网是其上的一项服务(超链接文档)。电子邮件和文件传输也是其他互联网服务。
Match each term to what it is. · 将每个术语与其含义匹配。
The internet is the infrastructure; the web is one service on it. IPv6 has far more addresses than IPv4. · 互联网是基础设施;万维网是其上的一项服务。IPv6的地址数量远多于IPv4。
Hardware that supports the internet
- A modem 调制解调器 converts the computer's digital signal into an analogue signal for a telephone line, and back again at the other end: modulation and demodulation.
- The PSTN, the public telephone network of exchanges and lines, carries dial-up and DSL connections. A dedicated line 专线 is leased between an organisation and its ISP: always on, a fixed bandwidth that is not shared, faster and more reliable, but expensive.
- On the cell phone network 蜂窝网络 a phone sends data by radio to the nearest tower; the towers are linked to the phone company's network, which routes the data to the internet, and the phone is handed from cell to cell as it moves.
Three routes onto the internet
支撑互联网的硬件
- 调制解调器(modem)把计算机的数字信号转换成适合电话线的模拟信号,在另一端再转换回来:调制和解调。
- PSTN——由交换局和线路组成的公共电话网——承载拨号和 DSL 连接。专线(dedicated line)是组织与其 ISP 之间租用的线路:永远在线,带宽固定且不共享,更快更可靠,但昂贵。
- 在蜂窝网络(cell phone network)上,手机用无线电把数据发到最近的基站;基站连到电话公司的网络,由它把数据路由到互联网,手机移动时在小区之间切换。

通往互联网的三条路
Network route lab · 网络路由实验
Follow data from a device through network hardware and protocols. · 跟踪设备通过网络硬件和协议的数据传输路径。
Match each piece of internet hardware to its job. · 将每件互联网硬件与其功能匹配。
Three routes with three trade-offs: cheap and slow, expensive and reliable, mobile. · 三种路线及三种权衡:便宜且慢、昂贵且可靠、移动性强。
IP addresses: IPv4 and IPv6
- An IP address IP地址 uniquely identifies a device on a network, so a packet can be delivered to it.
- IPv4 第四版互联网协议 is 32 bits, written as four denary numbers from 0 to 255 separated by dots,
192.168.1.10: about $4.3 \times 10^{9}$ addresses, now exhausted. - IPv6 第六版互联网协议 is 128 bits, written as eight groups of four hexadecimal digits separated by colons,
2001:0db8:0000:0000:0000:ff00:0042:8329; a run of zero groups shortens to::. About $3.4 \times 10^{38}$ addresses.
IP 地址:IPv4 和 IPv6
- IP 地址(IP address)唯一标识网络上的一台设备,数据包才能送达它。
- IPv4(第四版互联网协议)是 32 位,写成四组 0 到 255 的十进制数,用点分隔,
192.168.1.10:大约 $4.3 \times 10^{9}$ 个地址,现已用尽。 - IPv6(第六版互联网协议)是 128 位,写成八组四位十六进制数,用冒号分隔,
2001:0db8:0000:0000:0000:ff00:0042:8329;一串零组可以缩写为::。大约 $3.4 \times 10^{38}$ 个地址。
How many bits are in an IPv4 address? · IPv4地址中有多少位?
IPv4 is 32-bit (four numbers 0–255). IPv6 is 128-bit. · IPv4是32位(四个0–255的数字)。IPv6是128位。
The main reason IPv6 was introduced is that: · 引入IPv6的主要原因是:
IPv4's ~4.3 billion addresses are exhausted; IPv6's 128 bits give about $3.4 \times 10^{38}$ addresses. · IPv4 的 ~4.3 亿地址已耗尽;IPv6 提供约 128 位,可生成大约 $3.4 \times 10^{38}$ 个地址。
Worked example: is this an IPv4 or an IPv6 address?
192.168.3.2: four groups, dots, denary numbers under 256. IPv4.2001:db8::42:8329: colons, hexadecimal digits, and::standing for the missing zero groups. IPv6.192.300.1.1is not a valid address of either kind: 300 does not fit in 8 bits.- The questions test the format: number of groups, the separator, the digit system, and the range of each group.
例题:这是 IPv4 还是 IPv6 地址?
192.168.3.2:四组、点、小于 256 的十进制数。IPv4。2001:db8::42:8329:冒号、十六进制数字,以及代表省略的零组的::。IPv6。192.300.1.1不是任何一种合法地址:300 放不进 8 位。- 题目考的是格式:组数、分隔符、数字系统,以及每组的范围。
Which of these are valid IPv4 addresses? Select all · 所有 that apply. · 以下哪些是有效的IPv4地址?选择所有适用项。
Four denary groups from 0 to 255. 300 does not fit in 8 bits, and colons with hex digits make an IPv6 address. · 四个十进制组,范围从 0 到 255。300 无法放入 8 位中,而冒号与十六进制数字组合构成 IPv6 地址。
Subnetting
- A large network is split into subnets 子网. An address then has two parts: the network ID 网络标识, the same for every device in the subnet, and the host ID 主机标识, unique to each device.
- The subnet mask 子网掩码 marks the split:
255.255.255.0says the first 24 bits are the network part, so up to 254 hosts share the last 8. - Benefits: broadcasts stay inside their subnet, so there is less traffic on each part; one department's devices can be secured separately; and the network is easier to manage and to grow.
One network, several subnets, one network ID each
子网划分
- 一个大网络被分成多个子网(subnets)。于是地址有两部分:网络标识(network ID),子网内每台设备都相同;主机标识(host ID),每台设备唯一。
- 子网掩码(subnet mask)标出分界:
255.255.255.0表示前 24 位是网络部分,所以最多 254 台主机共享后 8 位。 - 好处:广播留在自己的子网内,所以每部分的流量更少;一个部门的设备可以单独设防;网络更容易管理和扩展。

一个网络,几个子网,各有一个网络标识
A subnet mask is used to: · 子网掩码用于:
The mask (e.g. 255.255.255.0) marks the network bits, splitting the address into network and host portions. · 掩码(例如 255.255.255.0)标记网络位,将地址划分为网络部分和主机部分。
Worked example: reading a subnet mask
- Device address
192.168.5.37, mask255.255.255.0. - The mask has ones in its first 24 bits, so the network ID is
192.168.5.0and the host ID is37. - Two devices with addresses
192.168.5.37and192.168.5.200share a network ID, so they are on the same subnet and a switch can deliver between them.192.168.6.4has a different network ID, so a router is needed. - "Describe two benefits of subnetting" wants two of: less broadcast traffic, separate security, easier management.
例题:读子网掩码
- 设备地址
192.168.5.37,掩码255.255.255.0。 - 掩码的前 24 位是 1,所以网络标识是
192.168.5.0,主机标识是37。 - 地址为
192.168.5.37和192.168.5.200的两台设备共享网络标识,所以在同一子网,交换机能在它们之间投递。192.168.6.4的网络标识不同,所以需要路由器。 - "描述子网划分的两个好处"要从中任取两个:广播流量更少、安全单独设置、管理更容易。
With the mask 255.255.255.0, the device 192.168.5.37 has the network ID 192.168.5.0 and the host ID ____. · 使用掩码 255.255.255.0,设备 192.168.5.37 的网络 ID 为 192.168.5.0,主机 ID 为 ____。
The mask's 24 ones cover the first three groups; the last group is the host part. · 掩码的 24 前三个组被覆盖;最后一组是主机部分。
Public and private addresses
- A public IP address 公有IP地址 is globally unique and routable across the internet, allocated by the ISP 互联网服务提供商.
- A private IP address 私有IP地址 is used only inside a LAN, is not routable on the internet, and is reused by millions of LANs,
192.168.x.xfor example. Devices with private addresses reach the internet through NAT 网络地址转换 in the router. - The security implication: a device with only a private address cannot be reached directly from the internet, which is a layer of protection, while a public address is visible to the whole world.
公有和私有地址
- 公有 IP 地址(public IP address)全球唯一,可在互联网上路由,由 ISP(互联网服务提供商)分配。
- 私有 IP 地址(private IP address)只在 LAN 内使用,不能在互联网上路由,被数百万个 LAN 重复使用,例如
192.168.x.x。带私有地址的设备通过路由器里的 NAT(网络地址转换)访问互联网。 - 安全含义:只有私有地址的设备无法从互联网直接访问,这是一层保护;而公有地址对全世界可见。
A private IP address (e.g. 192.168.1.5): · 私有 IP 地址(例如 192.168.1.5):
Private addresses work only inside the LAN and are not routed on the internet; NAT lets them share a public address. · 私有地址仅在局域网内部有效,不在互联网上路由;NAT 允许多台设备共享一个公共地址。
A device with only a private IP address can be contacted directly from anywhere on the internet. · 仅拥有私有 IP 地址的设备无法从互联网的任何位置直接联系。
Private addresses are not routable on the internet; the device is reached only through NAT in its router, which is a layer of protection. · 私有地址不可在互联网上路由;设备只能通过其路由器上的 NAT 进行访问,这提供了一层保护。
Static and dynamic addresses
- A static IP address 静态IP地址 never changes. It is set by hand or reserved, and it suits a server that clients must find at a known address.
- A dynamic IP address 动态IP地址 is allocated by DHCP 动态主机配置协议 each time a device connects and may be different next time. It suits laptops and phones, and it uses a limited pool of addresses efficiently.
- Static costs more and needs administration; dynamic is automatic but a device's address cannot be relied on.
静态和动态地址
- 静态 IP 地址(static IP address)永不改变。它由手工设置或被保留,适合客户端必须在已知地址找到的服务器。
- 动态 IP 地址(dynamic IP address)由 DHCP(动态主机配置协议)在设备每次连接时分配,下次可能不同。它适合笔记本和手机,而且能高效利用有限的地址池。
- 静态成本更高、需要管理;动态是自动的,但设备的地址不能被依赖。
A static IP address is most suitable for: · 静态 IP 地址最适合用于:
Servers need a fixed address so clients can always reach them. Client devices usually get dynamic addresses from DHCP. · 服务器需要固定地址以便客户端始终能够访问它们。客户端设备通常通过 DHCP 获取动态地址。
Worked example: the descriptions the tables want
- Public: visible on the internet, unique across it, allocated by the ISP.
- Private: visible only inside the LAN, reused by many LANs, needs NAT to reach the internet.
- Static: never changes, set by hand or reserved, as a server needs.
- Dynamic: allocated by DHCP each time the device connects, may change. One row each, and the pairs are opposites.
例题:表格要的描述
- 公有:在互联网上可见,全网唯一,由 ISP 分配。
- 私有:只在 LAN 内可见,被许多 LAN 重复使用,需要 NAT 才能访问互联网。
- 静态:永不改变,手工设置或保留,如服务器所需。
- 动态:设备每次连接时由 DHCP 分配,可能改变。每项一行,两两相对。
Which protocol hands out dynamic IP addresses to devices when they join a network? · 哪个协议在设备加入网络时为其分配动态 IP 地址?
DHCP allocates an address from a pool for a lease period. DNS resolves names, HTTP carries web pages, NAT translates private addresses to a public one. · DHCP 从地址池中分配一个地址作为租期。DNS 解析名称,HTTP 承载网页,NAT 将私有地址转换为公共地址。
Marks that slip away
- The internet is not the web. Email is on the internet and not on the web; webmail is on both.
- IPv4 groups run 0 to 255, because each is 8 bits. A group of 256 or 300 is a wrong answer, not a typo.
- A private address is not "less secure". It is the reverse: it cannot be reached from outside without NAT.
- A dynamic address is handed out by DHCP, a protocol, not by "the internet". Name it.
容易丢掉的分
- 互联网不是万维网。电子邮件在互联网上而不在万维网上;网页邮箱两者都在。
- IPv4 的每组是 0 到 255,因为每组 8 位。写 256 或 300 是错误答案,不是笔误。
- 私有地址并非"更不安全"。恰恰相反:没有 NAT 它无法从外部被访问。
- 动态地址由 DHCP——一种协议——分配,不是由"互联网"分配。要说出它的名字。
You've got it
- the internet is a network of networks on TCP/IP; the WWW is one service on it; modems, the PSTN, dedicated lines and the cell network carry traffic onto it
- IPv4: 32 bits, four denary groups 0–255, exhausted; IPv6: 128 bits, eight hex groups with colons
- a subnet mask splits an address into network ID and host ID; subnets cut broadcast traffic and separate security
- public addresses are unique and routable, private ones live inside the LAN behind NAT; static for servers, dynamic from DHCP for everything else
你掌握了
- 互联网是基于 TCP/IP 的网络的网络;万维网是它上面的一种服务;调制解调器、PSTN、专线和蜂窝网络把流量送上互联网
- IPv4:32 位,四组 0–255 的十进制数,已用尽;IPv6:128 位,八组十六进制数用冒号分隔
- 子网掩码把地址分成网络标识和主机标识;子网减少广播流量并分隔安全
- 公有地址唯一且可路由,私有地址在 NAT 后面的 LAN 内;服务器用静态,其他一切用 DHCP 分配的动态