IGCSE Computer Science: TCP/IP Key Points | IGCSE 计算机:TCP/IP 考点精讲

📚 IGCSE Computer Science: TCP/IP Key Points | IGCSE 计算机:TCP/IP 考点精讲

To transfer data reliably across a global network, computers must follow a common set of rules – the TCP/IP protocol suite. This model underpins the entire internet and is a core topic in IGCSE Computer Science. Understanding its layers, functions, and associated protocols will not only help you in the exam but also give you a solid foundation in how modern networks operate.

要在全球网络中可靠地传输数据,计算机必须遵循一套共同的规则——TCP/IP 协议族。该模型是整个互联网的基础,也是 IGCSE 计算机科学中的核心主题。理解其层次、功能以及相关协议,不仅能帮助你在考试中取得好成绩,还能为理解现代网络的运作打下坚实基础。

1. What is a Protocol? | 什么是协议?

A protocol is a set of rules that governs how data is transmitted and received between devices on a network. It defines the format, timing, sequencing, and error-checking methods used in communication. Without protocols, devices from different manufacturers or running different operating systems would not be able to understand each other.

协议是一套管理网络设备之间数据发送与接收的规则。它定义了通信中使用的格式、时序、排序和错误检查方法。没有协议,来自不同制造商或运行不同操作系统的设备将无法相互理解。

For example, HTTP (Hypertext Transfer Protocol) dictates how web browsers request and receive web pages from servers. TCP/IP is not a single protocol but a suite that includes TCP, IP, UDP, HTTP, FTP, and many others, each working at different layers of the model.

例如,HTTP(超文本传输协议)规定了网页浏览器如何向服务器请求并接收网页。TCP/IP 并非单一协议,而是一个协议族,包括 TCP、IP、UDP、HTTP、FTP 等许多协议,各自工作在模型的不同层次上。


2. Overview of TCP/IP Model | TCP/IP 模型概述

The TCP/IP model is a conceptual framework used to describe the functions of a networking system. The IGCSE syllabus typically recognises four layers: Application, Transport, Internet (also called Network), and Link (or Network Access). Each layer provides services to the layer above it and relies on the layer below it. Data moves down the layers when being sent and up when being received.

TCP/IP 模型是一个用于描述网络系统功能的概念框架。IGCSE 大纲通常认可四层:应用层、传输层、互联网层(也称网络层)和链路层(或网络接入层)。每一层为其上层提供服务,并依赖其下层。数据在发送时沿着层次向下移动,接收时则向上移动。

Layer (English) 中文层名 Example Protocols
Application 应用层 HTTP, HTTPS, FTP, SMTP, DNS
Transport 传输层 TCP, UDP
Internet 网络层 IP, ICMP
Link 链路层 Ethernet, Wi‑Fi

This layered approach makes troubleshooting easier and allows changes in one layer without affecting others. Exam questions frequently ask you to name the four layers and explain their roles.

这种分层方法使故障排除更容易,并且允许在一层进行更改而不影响其他层。考试题目经常要求你命名这四层并解释它们的作用。


3. Application Layer | 应用层

The application layer is the topmost layer and the one closest to the end user. It provides network services directly to applications, such as web browsing, email, and file transfers. This layer does not contain the applications themselves but the protocols that they use to communicate.

应用层是最顶层,也是最接近终端用户的一层。它直接为应用程序提供网络服务,例如网页浏览、电子邮件和文件传输。这一层不包含应用程序本身,而是包含它们用于通信的协议。

Common application layer protocols include HTTP (for web pages), HTTPS (secure web), FTP (file transfer), SMTP (sending email), POP3 and IMAP (receiving email), and DNS (translating domain names to IP addresses). You should be able to match each protocol to its full name and purpose.

常见的应用层协议包括 HTTP(用于网页)、HTTPS(安全网页)、FTP(文件传输)、SMTP(发送电子邮件)、POP3 和 IMAP(接收电子邮件)以及 DNS(将域名转换为 IP 地址)。你应该能够将每个协议与其全称和用途对应起来。


4. Transport Layer: TCP and UDP | 传输层:TCP 与 UDP

The transport layer is responsible for end-to-end communication between applications on different hosts. It uses two main protocols: TCP (Transmission Control Protocol) and UDP (User Datagram Protocol). TCP is connection-oriented, meaning it establishes a connection before sending data, and it guarantees delivery through acknowledgements and retransmissions. It also ensures data arrives in order and without errors.

传输层负责不同主机上应用程序之间的端到端通信。它使用两种主要协议:TCP(传输控制协议)和 UDP(用户数据报协议)。TCP 是面向连接的,意味着它在发送数据之前先建立连接,并通过确认和重传来保证交付。它还确保数据按序、无误地到达。

UDP, on the other hand, is connectionless and does not guarantee delivery or ordering. This makes UDP faster and more efficient for real‑time applications like video streaming, online gaming, and voice over IP (VoIP), where occasional packet loss is acceptable.

另一方面,UDP 是无连接的,不保证交付或排序。这使得 UDP 对于视频流、在线游戏和 VoIP 等实时应用来说更快、更高效,在这些应用中偶尔的数据包丢失是可以接受的。

Feature TCP UDP
Connection Connection-oriented Connectionless
Reliability Guaranteed delivery Best-effort, no guarantee
Ordering Packets arranged in sequence No sequencing
Speed Slower due to overhead Faster, low overhead
Example Uses Web browsing, email, file transfer Streaming, gaming, DNS lookups

5. TCP Three-Way Handshake | TCP 三次握手

Because TCP is connection-oriented, it must set up a reliable session before data exchange. This is done using a process called the three-way handshake. The client sends a SYN (synchronise) packet to the server. The server replies with a SYN-ACK (synchronise-acknowledge) packet. Finally, the client sends an ACK (acknowledge) packet back to the server. At this point, the connection is established and data can flow in both directions.

由于 TCP 是面向连接的,它必须在数据交换之前建立可靠的会话。这是通过一个称为三次握手的过程完成的。客户端向服务器发送一个 SYN(同步)数据包。服务器回复一个 SYN-ACK(同步-确认)数据包。最后,客户端向服务器发回一个 ACK(确认)数据包。至此,连接建立,数据可以双向流动。

You might be asked to label a diagram of the three-way handshake or to explain why it is necessary: it ensures both sides are ready and that the initial sequence numbers are synchronised. The handshake is a favourite exam topic because it neatly illustrates how TCP achieves reliability.

你可能会被要求标记三次握手示意图或解释其必要性:它确保双方准备就绪,并且初始序列号得到同步。握手是考试中常见的话题,因为它清晰地展示了 TCP 如何实现可靠性。


6. Internet Layer and IP Addressing | 网络层与 IP 寻址

The internet layer handles the logical addressing and routing of packets across different networks. The core protocol here is IP (Internet Protocol). Each device on a network is assigned a unique IP address that identifies it on the global internet, much like a postal address. IPv4 addresses are 32-bit numbers usually written in dotted decimal, e.g., 192.168.1.10.

网络层负责数据包在不同网络之间的逻辑寻址和路由。这里的核心协议是 IP(互联网协议)。网络上的每台设备都被分配一个唯一的 IP 地址,用以在全球互联网上标识它,就像邮政地址一样。IPv4 地址是 32 位数字,通常用点分十进制表示,例如 192.168.1.10。

IP is connectionless and does not guarantee delivery; that job is left to the transport layer. Routers operate at the internet layer, using the destination IP address to forward packets toward their final destination. The syllabus expects you to understand the concept of an IP address and its role in packet switching.

IP 是无连接的,不保证交付;这项工作留给了传输层。路由器工作在网络层,利用目的 IP 地址将数据包转发到最终目的地。大纲要求你理解 IP 地址的概念及其在数据包交换中的作用。


7. IPv4 vs IPv6 | IPv4 与 IPv6 对比

IPv4 has been the dominant Internet Protocol for decades, but it uses 32-bit addresses, providing only about 4.3 billion unique addresses. With the explosion of internet‑connected devices, this address space is exhausted. IPv6 was developed to solve this problem. It uses 128-bit addresses, written in eight groups of four hexadecimal digits, e.g., 2001:0db8:85a3::8a2e:0370:7334.

IPv4 几十年来一直是主流的互联网协议,但它使用 32 位地址,仅提供约 43 亿个唯一地址。随着联网设备的爆炸式增长,这个地址空间已经枯竭。IPv6 就是为解决这个问题而开发的。它使用 128 位地址,以八组四位十六进制数字书写,例如 2001:0db8:85a3::8a2e:0370:7334。

Key differences include the significantly larger address space, built-in security features (IPsec), simplified header format, and no need for Network Address Translation (NAT). Although IPv6 is increasingly deployed, IGCS Questions usually focus on why IPv6 is needed and how its addresses differ in notation and length.

主要区别包括大得多的地址空间、内置安全功能(IPsec)、简化的报头格式,以及无需网络地址转换(NAT)。虽然 IPv6 正在日益普及,但 IGCSE 考题通常关注为什么需要 IPv6,以及它的地址在表示法和长度上有何不同。


8. Link Layer and MAC Addresses | 链路层与 MAC 地址

The link layer (also called the network access layer) is responsible for the physical transmission of data over a specific medium, such as Ethernet cables or Wi‑Fi. It deals with frames, not packets, and uses MAC (Media Access Control) addresses to identify devices on the same local network segment. A MAC address is a 48-bit identifier, typically displayed as six pairs of hexadecimal digits, e.g., 00:1A:2B:3C:4D:5E.

链路层(也称网络接入层)负责数据在特定介质(如以太网电缆或 Wi‑Fi)上的物理传输。它处理的是帧而不是数据包,并使用 MAC(媒体访问控制)地址来标识同一本地网段上的设备。MAC 地址是一个 48 位标识符,通常显示为六对十六进制数字,例如 00:1A:2B:3C:4D:5E。

Switches and network interface cards (NICs) operate at this layer. Unlike IP addresses, which can change depending on the network, MAC addresses are usually permanently assigned to hardware. The link layer also handles error detection (e.g., through CRC) and media access control.

交换机和网络接口卡(NIC)工作在这一层。与可能随网络改变的 IP 地址不同,MAC 地址通常是永久分配给硬件的。链路层还负责错误检测(例如通过 CRC)和介质访问控制。


9. Data Encapsulation | 数据封装

As data moves down the TCP/IP layers for transmission, it is encapsulated with header information at each layer. This process is called encapsulation. At the transport layer, the data (from the application) gets a TCP or UDP header, forming a segment. At the internet layer, an IP header is added, creating a packet. Finally, at the link layer, a frame header and trailer are added so the data can be transmitted physically.

当数据沿着 TCP/IP 层次向下传输时,每一层都会加上报头信息,这个过程称为封装。在传输层,来自应用层的数据加上 TCP 或 UDP 报头,形成数据段。在网络层,加上 IP 报头,创建数据包。最后,在链路层,加上帧头和帧尾,使数据能够物理传输。

When the data arrives at the destination, the process is reversed: each layer removes the corresponding header, and the payload is passed upward. This layering of headers is often compared to putting a letter into an envelope, then that envelope into a larger one. Exam questions may ask you to describe encapsulation and de‑encapsulation step by step.

当数据到达目的地时,过程相反:每一层移除相应的报头,并将有效载荷向上传递。这种报头的分层常常被比作将信件放入一个信封,再将该信封放入更大的信封。考题可能会要求你逐步描述封装和解封装过程。


10. TCP/IP vs OSI Model | TCP/IP 与 OSI 模型比较

The OSI (Open Systems Interconnection) model has seven layers, whereas TCP/IP typically has four. Although OSI is not used in practice, it is a useful reference. The Application layer of TCP/IP roughly maps to the Application, Presentation, and Session layers of OSI. The Transport layer maps directly. The Internet layer corresponds to OSI’s Network layer. The Link layer covers OSI’s Data Link and Physical layers.

OSI(开放系统互连)模型有七层,而 TCP/IP 通常只有四层。尽管 OSI 在实际中并未使用,但它是一个有用的参考。TCP/IP 的应用层大致对应于 OSI 的应用层、表示层和会话层。传输层直接对应。网络层对应于 OSI 的网络层。链路层则覆盖 OSI 的数据链路层和物理层。

You should be able to compare the two models and explain the advantages of the layered approach: standardisation, modularity, and ease of development and troubleshooting. Typical exam tasks include filling in a table with layer names or stating which layer handles a specific task.

你应该能够比较两种模型,并解释分层方法的优势:标准化、模块化以及易于开发和故障排除。典型的考题任务包括填写含层名的表格,或说明哪一层处理特定任务。


11. Common Network Devices and Layers | 常见网络设备与层次

Understanding which devices operate at which layers is another common exam requirement. A hub simply repeats signals to all ports and is considered a Physical layer device (OSI). A switch works at the Link layer, using MAC addresses to forward frames only to the appropriate port. A router operates at the Internet layer, using IP addresses to forward packets between different networks. A firewall can work across multiple layers, filtering packets based on rules.

理解哪些设备工作在哪一层是另一个常见的考试要求。集线器只是将信号重复发送到所有端口,被视为物理层设备(OSI)。交换机工作在链路层,利用 MAC 地址只将帧转发到适当的端口。路由器工作在网络层,利用 IP 地址在不同网络之间转发数据包。防火墙可以跨多个层次工作,根据规则过滤数据包。

In the context of TCP/IP, a switch connects devices on the same local network, while a router connects different networks together, such as a home network to the internet. Questions may give you a scenario and ask you to select the appropriate device and explain why.

在 TCP/IP 的上下文中,交换机连接同一本地网络上的设备,而路由器将不同网络连接在一起,例如将家庭网络连接到互联网。题目可能给你一个场景,要求你选择适当的设备并解释原因。


12. Common Application Layer Protocols | 常见应用层协议

The application layer hosts many protocols you interact with daily. Here is a summary table you must be familiar with:

应用层承载着你日常交互的许多协议。以下是你必须熟悉的汇总表:

Protocol Full Name Purpose
HTTP Hypertext Transfer Protocol Retrieving web pages from servers
HTTPS HTTP Secure Secure web page retrieval (encrypted with SSL/TLS)
FTP File Transfer Protocol Uploading and downloading files
SMTP Simple Mail Transfer Protocol Sending email from client to server / between servers
POP3 Post Office Protocol v3 Retrieving email; typically deletes from server after download
IMAP Internet Message Access Protocol Retrieving email; keeps messages on server, allows multiple device sync
DNS Domain Name System Translates domain names (e.g., aleveler.com) into IP addresses

You should be able to state which protocol would be used in a given scenario, such as sending an email (SMTP) or securely accessing a website (HTTPS). Note that POP3 and IMAP are both used for receiving email, but IMAP is more modern and flexible.

你应该能够说出在给定场景中会使用哪种协议,例如发送电子邮件(SMTP)或安全访问网站(HTTPS)。请注意,POP3 和 IMAP 都用于接收电子邮件,但 IMAP 更现代、更灵活。

Published by TutorHao | Computer Science Revision Series | aleveler.com

更多咨询请联系16621398022(同微信)

Comments

屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from aleveler.com

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version