Share E-Book
Scan to open this page

Scan with your phone to open this page

Author户根勤

本书以探索之旅的形式,从在浏览器中输入网址开始,一路追踪了到显示出网页的内容为止的整个过程,以图配文,讲解了网络的全貌,并重点介绍了实际的网络设备和软件是如何工作的.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A guided "journey" from typing a URL to seeing a rendered page, this book explains how the whole internet actually works by following one request through browser, OS, cables, switches, routers, and servers. Best for beginners and self-taught engineers who want the big picture before diving into any single protocol. 【Book Arc】 - **Opening (~0%–15%)**: Frames the whole book as a single request's journey and introduces the two halves of networking — the "transport mechanism" (packets, switches, routers) and the applications (browser, web server). Solves the "I can use the internet but don't know how it works" problem. - **Early (~15%–30%)**: Follows the browser: parsing a URL, generating an HTTP request, resolving the domain via DNS, and handing the message to the OS through the Socket library and descriptors. - **Middle (~30%–55%)**: Descends into TCP/IP inside the OS — connection setup with SYN/ACK, sequence numbers, sliding-window flow control, disconnection, then IP and Ethernet packet assembly, ARP, and how a NIC turns bits into electrical signals. - **Late (~55%–75%)**: Moves out of the machine into physical infrastructure: signal transmission over cables and hubs, switch forwarding via MAC address tables, and router forwarding via routing tables and NAT. - **Ending (~75%–100%)**: Reaches the destination — the server's NIC, IP and TCP modules, the web server program handling the request (URI mapping, CGI, access control), and the browser finally rendering the response. 【Key Takeaways】 - **The whole network is one continuous relay of packets** (Opening): every stage — browser, OS, switch, router, server — just passes a "parcel" along, which is why understanding the full path matters more than memorizing protocols. - **HTTP is only the first step** (Early): a URL must be parsed, then resolved to an IP address via DNS before any data can move, so the browser's job is far more than "sending a request." - **TCP guarantees reliable delivery on an unreliable medium** (Middle): SYN/ACK handshakes, sequence numbers, ACKs, and sliding-window buffering exist because packets can be lost, duplicated, or arrive faster than the receiver can process. - **IP and Ethernet divide labor deliberately** (Middle): IP decides *where* a packet goes; Ethernet (MAC headers) decides *how* to reach the next hop. This separation lets Ethernet be swapped for other link technologies. - **Switches learn, routers decide** (Late): switches build MAC address tables from traffic and age out stale entries; routers strip MAC headers, consult routing tables, and rewrite headers for the next hop. - **NAT is what makes home networking work** (Late): private addresses are translated to public ones at the router, which is why a single home router can hide an entire LAN behind one connection. - **The server side mirrors the client side** (Ending): receiving a request reverses the same layered process — NIC, IP, TCP, then the web server program mapping a URI to a file or CGI script. 【Reading Tips】 - Read the opening chapter fully — it establishes the "one request's journey" mental model that every later chapter builds on. - Skim the terminology columns and quiz answers on a first pass; return to them as reinforcement rather than treating them as prerequisites. - Slow down on TCP flow control and the IP/Ethernet division of labor — these are the conceptual hinges the rest of the book hangs on. - Keep the packet-diagram convention in mind (arrows drawn right-to-left to match header layouts); it will otherwise feel backwards. - Pair this with a packet-analysis tool like Wireshark to see the handshakes and headers described here in real traffic. 【Coverage Limits】 The excerpts cover the book's structure, the browser/DNS/TCP/IP/Ethernet/switch/router stages, and the server-side ending, but do not include detailed content on wireless LANs, IPv6, or security topics beyond brief mentions. Specific chapter titles beyond those shown are not covered.
Page 19
导游来进行讲解,相信即便是不具备任何网络知识的读者也能够想象出 现实中网络的样子。请大家静下心来,慢慢欣赏。 ●小测验 这是一些和正文内容相关的测试题,大家可以用这些题目来确认自己 的理解程度。答案位于下一页中的专栏的最后。 ●专栏“网络术语其实很简单” 在专栏中,探索队长和探索队员会以对话的形式介绍一些网络术语...
View in text
Excerpt 2
务器的域名有很多都是像 www.lab.glasscom.com 这样以 www 开头的,但这并不是一定之规,只是因为 最早设计 Web 的时候,很多 Web 服务器都采用了 www 这样的命名,后来就 形成了一个惯例而已。因此,无论是 WebServer1 也好,MySrv 也好,只要是 作为 AA 记录在 D...
View in text
Excerpt 3
B。上述操作完成后,服务器的 TCP 模块会 返回响应,这个过程和客户端一样,需要在 TCP 头部中设置发送方和接收 方端口号以及 SYN 比特 C。此外,在返回响应时还需要将 ACK 控制位设为 1D,这表示已经接收到相应的网络包。网络中经常会发生错误,网络包也会 发生丢失,因此双方在通信时必须相互确认网络包是...
View in text
Excerpt 4
和发送一样,和设备类型、TCP 的工作阶段以及应用 程序的种类无关,都是共通的。 123 2.6 UDP协议的收发操作 就行了,也不需要专门的接收确认包了。 2.6.2 控制用的短数据 这种情况就适合使用 UDP。像 DNS 查询等交换控制信息的操作基本 上都可以在一个包的大小范围内解决,这种场景中就可以用 UD...
View in text
Excerpt 5
分,其中的 PHY(MAU)模块和 MAC 模 块将信号转换为数字信息,然后通过包末尾的 FCS 进行错误校验,如果没 问题则检查 MAC 头部中的接收方 MAC 地址,看看是不是发给自己的包, 如果是就放到接收缓冲区中,否则就丢弃这个包。如果包的接收方 MAC 地址不是自己,说明这个包是发给其他设备的,如果接收...
View in text
Excerpt 6
能交换机 本章的旅程告一段落,我们为大家准备了一些小测验题目,确认一下 自己的成果吧。 问题 1. 什么是接入网? 2. 要使用 ADSL 服务,需要安装一个将电话信号和 ADSL 信号分开 的设备,这个设备叫什么名字? 3. 和电话局距离越远,ADSL 的通信速率越低,为什么? 4. BAS(宽带接入服务器)与...
View in text
Excerpt 7
些专门从事相关服务的厂商 出现了,他们来部署缓存服务器,并租借给 Web 服务器运营者。这种服务 称为内容分发服务 A。下面我们来具体了解一下这种服务。 提供这种服务的厂商称为 CDSPB,他们会与主要的供应商签约,并部 署很多台缓存服务器 C。另一方面,CDSP 会与 Web 服务器运营者签约,使 得 CDSP...
View in text
Excerpt 8
是邮件等领域中普遍使用的一种方式。不 过这种方式也只不过是一种原则性的规范,要通过 Content-Type 准确判断 数据类型,就需要保证 Web 服务器正确设置 Content-Type 的值,但现实中 并非总是如此。如果 Web 服务器管理员不当心,就可能会因为设置错误导 致 Content-Type 的值...
View in text
Tags
AI categories
BackendTechnology
ISBN: 7115441243
Publish Year: 2017
Language: Chinese
Pages: 360
File Format: PDF
File Size: 21.2 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…