📚 TCP/IP Protocol Suite | TCP/IP 协议族考点精讲
The TCP/IP protocol suite is the foundation of modern computer networking, defining how data is packaged, addressed, transmitted, routed, and received across networks. For IGCSE OCR Computer Science, you need to understand its four-layer model, the role of key protocols at each layer, how IP addressing works, the difference between IPv4 and IPv6, and how data moves through the layers using encapsulation. This article covers all essential points in a clear and structured way.
TCP/IP 协议族是现代计算机网络的基础,它定义了数据在网络中如何打包、寻址、传输、路由和接收。在 IGCSE OCR 计算机科学考试中,你需要理解其四层模型、各层关键协议的作用、IP 地址的工作原理、IPv4 与 IPv6 的区别,以及数据如何通过封装在各层之间传递。本文以清晰的结构梳理所有核心考点。
1. Introduction to the TCP/IP Model | TCP/IP 模型简介
The TCP/IP model is a set of communication protocols used to connect hosts on the internet. It is named after its two most important protocols: the Transmission Control Protocol (TCP) and the Internet Protocol (IP). Unlike the theoretical OSI model, the TCP/IP model was developed from real-world implementations of the ARPANET and is the actual standard used on the internet today. It is simpler, consisting of only four layers rather than seven.
TCP/IP 模型是一组用于在互联网上连接主机的通信协议,以其两个最重要的协议命名:传输控制协议 (TCP) 和网际协议 (IP)。与理论性的 OSI 模型不同,TCP/IP 模型是从 ARPANET 的实际实现中发展而来的,是当今互联网上实际使用的标准。它更简单,只包含四层而非七层。
2. Comparison with the OSI Model | 与 OSI 模型的比较
The OSI model has seven layers, while the TCP/IP model has four. The TCP/IP Application layer roughly combines the OSI Application, Presentation, and Session layers. The TCP/IP Transport layer maps to the OSI Transport layer. The TCP/IP Internet layer corresponds to the OSI Network layer. The TCP/IP Network Access layer combines the OSI Data Link and Physical layers. Understanding this mapping helps you see how both models describe networking, but the TCP/IP model is the one used in practice.
OSI 模型有七层,而 TCP/IP 模型有四层。TCP/IP 的应用层大致合并了 OSI 的应用层、表示层和会话层。TCP/IP 的传输层对应于 OSI 的传输层。TCP/IP 的网际层对应于 OSI 的网络层。TCP/IP 的网络接入层合并了 OSI 的数据链路层和物理层。了解这种映射有助于你看到两个模型如何描述网络,但 TCP/IP 才是实践中使用的模型。
3. The Four Layers Overview | 四层概述
The four layers of the TCP/IP model, from top to bottom, are: Application, Transport, Internet, and Network Access. Each layer has specific functions and protocols. Data passes down through the layers when being sent, getting encapsulated with layer-specific headers, and passes up through the layers when being received, with headers being removed. This layered approach provides abstraction and modularity.
TCP/IP 模型的四层从上到下分别是:应用层、传输层、网际层和网络接入层。每一层都有特定的功能和协议。数据在发送时逐层向下传递,并添加各层专用的头部;接收时则逐层向上传递,并剥除头部。这种分层方法提供了抽象性和模块化。
4. Application Layer | 应用层
The Application layer is the topmost layer. It provides interfaces and protocols for software applications to communicate over a network. It does not define the application itself, but the services that applications use. Protocols at this layer include HTTP/HTTPS for web browsing, FTP for file transfers, SMTP for sending emails, POP3/IMAP for receiving emails, and DNS for translating domain names to IP addresses. This layer produces the user data that will be passed down through the stack.
应用层是最顶层。它为软件应用程序通过网络通信提供了接口和协议。它定义的并非应用程序本身,而是应用程序使用的服务。该层的协议包括用于网页浏览的 HTTP/HTTPS、用于文件传输的 FTP、用于发送电子邮件的 SMTP、用于接收邮件的 POP3/IMAP,以及用于将域名转换为 IP 地址的 DNS。这一层产生将要向下传递的用户数据。
5. Transport Layer: TCP | 传输层:TCP
The Transport layer provides end-to-end communication between applications on different hosts. The Transmission Control Protocol (TCP) is a connection-oriented protocol. Before data is sent, a connection is established using a three-way handshake (SYN, SYN-ACK, ACK). TCP guarantees delivery through acknowledgements and retransmissions. It also provides sequencing to order packets correctly and flow control to prevent overwhelming the receiver. Because of this reliability, it is used where data integrity is critical, such as web pages, email, and file downloads.
传输层在不同主机上的应用程序之间提供端到端的通信。传输控制协议 (TCP) 是一种面向连接的协议。在发送数据之前,通过三次握手(SYN, SYN-ACK, ACK)建立连接。TCP 通过确认应答和重传机制保证送达。它还提供排序功能以正确排列数据包顺序,并提供流量控制以防止接收方不堪重负。由于这种可靠性,它被用于数据完整性至关重要的场景,例如网页、电子邮件和文件下载。
6. Transport Layer: UDP | 传输层:UDP
The User Datagram Protocol (UDP) is a connectionless transport protocol. It does not establish a connection before sending; it simply fires off datagrams. There is no guarantee of delivery, ordering, or error recovery. This makes UDP faster and more efficient, with lower overhead. It is ideal for real-time applications where speed matters more than occasional data loss, such as video streaming, online gaming, and Voice over IP (VoIP). In IGCSE OCR exams, you must be able to compare TCP and UDP.
用户数据报协议 (UDP) 是一种无连接的传输协议。它在发送之前不建立连接,而是直接发送数据报。它不保证送达、排序或错误恢复。这使得 UDP 速度更快、效率更高,开销也更低。它非常适用于速度比偶尔的数据丢失更重要的实时应用,例如视频流、在线游戏和 IP 语音 (VoIP)。在 IGCSE OCR 考试中,你必须能够比较 TCP 和 UDP。
7. Internet Layer and IP Addressing | 网际层与 IP 寻址
The Internet layer is responsible for logical addressing, routing, and packet forwarding. The core protocol here is the Internet Protocol (IP). IP addresses uniquely identify devices on a network. An IP packet contains the source and destination IP addresses, which routers use to forward the packet across multiple networks. Other protocols at this layer include ICMP (used by the ping command) and ARP (Address Resolution Protocol), which resolves IP addresses to MAC addresses.
网际层负责逻辑寻址、路由和数据包转发。这里的核心协议是网际协议 (IP)。IP 地址唯一标识网络上的设备。IP 数据包包含源和目的 IP 地址,路由器使用这些地址将数据包转发到多个网络中。该层的其他协议包括 ICMP(由 ping 命令使用)和 ARP(地址解析协议),后者将 IP 地址解析为 MAC 地址。
8. IPv4 vs IPv6 | IPv4 与 IPv6 的对比
IPv4 uses 32-bit addresses, written in dotted-decimal notation like 192.168.1.1. This allows for approximately 4.3 billion unique addresses, which is no longer sufficient. IPv6 uses 128-bit addresses, written in hexadecimal notation like 2001:0db8:85a3::8a2e:0370:7334, providing an almost limitless number of addresses. IPv6 also includes built-in security features (IPsec) and simpler packet headers. For IGCSE, you should know the formats of IPv4 and IPv6, why we moved to IPv6, and how to identify each type.
IPv4 使用 32 位地址,以点分十进制表示,如 192.168.1.1。这允许约 43 亿个唯一地址,现已不再够用。IPv6 使用 128 位地址,以冒号分隔的十六进制表示,如 2001:0db8:85a3::8a2e:0370:7334,可提供近乎无限的地址量。IPv6 还包含内建的安全特性 (IPsec) 和更简单的数据包头。在 IGCSE 中,你应该了解 IPv4 和 IPv6 的格式、为何迁移到 IPv6,以及如何识别每种类型。
9. Network Access Layer | 网络接入层
The Network Access layer is the bottom layer. It deals with the physical transmission of data over a specific medium, such as copper cables, fibre optics, or wireless. This layer defines how bits are converted into signals (electrical, light, or radio) and how devices access the shared medium. Protocols here include Ethernet for wired LANs and Wi-Fi (IEEE 802.11) for wireless LANs. MAC addresses, which are hardware-level identifiers burned into network interface cards, operate at this layer.
网络接入层是最底层。它处理数据通过特定介质(如铜缆、光纤或无线电)的物理传输。此层定义了比特如何转换为信号(电信号、光信号或无线电波)以及设备如何访问共享介质。此层的协议包括用于有线局域网的以太网和用于无线局域网的 Wi-Fi (IEEE 802.11)。MAC 地址是烧录在网络接口卡中的硬件级标识符,工作在这一层。
10. Data Encapsulation | 数据封装
As data moves down the TCP/IP stack, each layer adds its own header information—a process called encapsulation. The Application layer creates the raw data. The Transport layer adds a TCP or UDP header, forming a segment (or datagram for UDP). The Internet layer adds an IP header, creating a packet. The Network Access layer adds a frame header and trailer, turning it into a frame for physical transmission. At the receiving end, the process is reversed, and headers are stripped off at each layer until the original data is presented to the application.
当数据沿 TCP/IP 协议栈向下传递时,每一层都会添加自己的头部信息,这一过程称为封装。应用层生成原始数据。传输层添加 TCP 或 UDP 头部,形成段(或 UDP 的数据报)。网际层添加 IP 头部,形成数据包。网络接入层添加帧头和帧尾,将其转化为帧以便物理传输。在接收端,过程则相反,每一层剥除头部,直至原始数据呈现给应用程序。
11. Common Protocols at Each Layer | 各层常见协议表格
The table below summarises key protocols and their layers. This is a common exam requirement: being able to place a protocol in the correct TCP/IP layer.
下表总结了关键协议及其所在层。这是一项常见的考试要求:能够将协议放置到正确的 TCP/IP 层中。
| Layer / 层 | Protocols / 协议 | Function / 功能 |
|---|---|---|
| Application | HTTP, HTTPS, FTP, SMTP, POP3, IMAP, DNS | End-user services (web, email, file transfer, name resolution) |
| Transport | TCP, UDP | Reliable/unreliable delivery, port addressing |
| Internet | IP, ICMP, ARP | Logical addressing, routing, error reporting, address resolution |
| Network Access | Ethernet, Wi-Fi (802.11) | Physical transmission, MAC addressing, media access |
12. Key Exam Points and Summary | 关键考点总结
Ensure you can name the four TCP/IP layers in order, describe the function of each layer, and identify common protocols. Be ready to compare TCP and UDP, recognising when each is appropriate. Understand IPv4 and IPv6 addressing formats and the structure of IP addresses. Practise explaining encapsulation with the correct terminology (segment, packet, frame). Diagrams of the TCP/IP model with protocol examples are commonly required in OCR exam questions, so draw and label them accurately.
确保你能够按顺序说出 TCP/IP 的四层,描述每层的功能,并识别常见协议。准备好比较 TCP 和 UDP,清楚各自适用于何种场景。理解 IPv4 和 IPv6 的寻址格式以及 IP 地址的结构。练习用正确的术语解释封装过程(段、数据包、帧)。在 OCR 考试中,经常要求绘制带协议示例的 TCP/IP 模型图,因此要准确绘制并标注。
Published by TutorHao | Computer Science Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)
屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导