← Course Hub← 课程主页 ← All Units← 返回单元列表
H I G H  S C H O O L  C O M P U T E R  S C I E N C E
Solutions答案解析

Networks and the Internet网络与互联网

Worked Solutions · AP CSP-Feeder · US / ON / BC / AB Styles解题详解 · AP CSP 衔接 · 美 / 安 / 卑 / 阿省风格



PART I  ·  SHORT RESPONSE第一部分  ·  短答题AP CSP-style MCQ + ON/BC short answer · 25 marksAP CSP 风格选择题 + 安/卑省考短答 · 共 25 分

Section A · Short ResponseA 部分 · 短答题

Q1 EASY 🇺🇸 US §1 Networks: LAN, WAN, Topology网络:LAN、WAN、拓扑 [3 marks][3 分]

Correct answer: (B)正确答案:(B)

A LAN using star topology. One building = Local Area Network (private, confined to a small geographic area). All 40 computers connect to one central switch = star topology (central hub with spokes to each device).局域网,使用星型拓扑。一栋建筑 = 局域网(私有,局限于较小地理区域)。40 台计算机全部连接到一台中央交换机 = 星型拓扑(中心节点向每台设备延伸分支)。

Why not (A): WAN spans large distances; mesh means every device connects to every other. Why not (C): bus = one shared cable; a switch does not emulate a bus. Why not (D): connecting to the Internet makes the library part of a WAN, but the local network itself is a LAN.排除 (A):广域网跨越大距离;网状型指每台设备与其他所有设备连接。排除 (C):总线型 = 一条共享电缆;交换机不模拟总线。排除 (D):连接到互联网使图书馆成为广域网的一部分,但本地网络本身是局域网。

Insight洞察

The key discriminators: LAN vs WAN = geographic scope (one building vs. large distances). Star vs. bus vs. mesh = how devices connect (central switch vs. single cable vs. everyone to everyone). Most real-world LANs use star topology because a switch failure is the only single point of failure, not a cable break affecting all devices simultaneously.关键区分点:局域网 vs 广域网 = 地理范围(一栋建筑 vs 大距离)。星型 vs 总线型 vs 网状型 = 设备如何连接(中央交换机 vs 单一电缆 vs 互连所有设备)。现实中大多数局域网使用星型拓扑,因为唯一的单点故障是交换机故障,而非同时影响所有设备的电缆断裂。

Q2 EASY 🇺🇸 US §2 Packets and Packet Switching数据包与分组交换 [3 marks][3 分]

Correct answer: (B)正确答案:(B)

Only packet 1,430 is retransmitted. TCP numbers every packet and requires an ACK (acknowledgement) from the receiver. If packet 1,430 is not acknowledged, TCP retransmits only that packet. The remaining 2,699 packets are already received and buffered.仅重传数据包 1,430。TCP 对每个数据包编号,并要求接收方发送 ACK(确认)。若数据包 1,430 未被确认,TCP 仅重传该数据包。其余 2,699 个数据包已经接收并缓存。

Why not (A): resending all 2,700 would be inefficient and defeats the purpose of packet switching. Why not (C): TCP cannot reconstruct missing data from adjacent packets. Why not (D): TCP's retransmission mechanism exists precisely to recover from lost packets without a full restart.排除 (A):重传全部 2,700 个数据包效率低下,违背了分组交换的目的。排除 (C):TCP 无法从相邻数据包重建丢失数据。排除 (D):TCP 的重传机制正是为了在无需完全重启的情况下恢复丢失的数据包。

Insight洞察

Selective retransmission is one of three core advantages of packet switching. The others are: (1) packets can take different routes simultaneously (parallel throughput), and (2) bandwidth is shared fairly among many users. AP CSP CSN-1.A assesses all three benefits together.选择性重传是分组交换三大核心优势之一。其他两个是:(1)数据包可以同时走不同路径(并行吞吐),(2)带宽可在多个用户间公平共享。AP CSP CSN-1.A 同时评估所有三项优势。

Q3 MEDIUM 🇨🇦 ON §3 IP Addresses and DNSIP 地址与 DNS [6 marks][6 分]
(a) [2]
DNS = Domain Name System. Its purpose is to translate human-readable domain names (e.g. www.school.ca) into IP addresses (e.g. 93.184.1.5) that routers can use to forward packets to the correct destination.DNS = 域名系统(Domain Name System)。其作用是将人类可读的域名(如 www.school.ca)翻译成路由器可以转发数据包到正确目的地的 IP 地址(如 93.184.1.5)。
(b) [2]
Four entities in order: (1) DNS Resolver (your router/ISP), (2) Root DNS Server, (3) .ca TLD (Top-Level Domain) DNS Server, (4) Authoritative DNS Server for school.ca. The authoritative server returns the IP address; the resolver sends it back to the browser.按顺序的四个实体:(1)DNS 解析器(你的路由器/ISP),(2)根 DNS 服务器,(3).ca TLD(顶级域)DNS 服务器,(4)school.ca 的权威 DNS 服务器。权威服务器返回 IP 地址;解析器将其发送回浏览器。
(c) [2]
Caching stores the resolved IP address locally for a period of time (TTL). Benefit: subsequent lookups for the same domain skip the full resolver chain and return instantly, reducing DNS query latency and load on DNS servers. Without caching, every page load would require a fresh lookup through root and TLD servers.缓存将解析的 IP 地址本地存储一段时间(TTL)。好处:同一域名的后续查找可跳过完整的解析器链并即时返回,降低 DNS 查询延迟和对 DNS 服务器的负载。没有缓存,每次页面加载都需要通过根服务器和 TLD 服务器进行全新查找。
Insight洞察

DNS is the Internet's "phone book." Remember the hierarchy: Resolver asks Root, Root points to TLD, TLD points to Authoritative. The result is cached at each level with a TTL (Time To Live) value. Without DNS you would need to memorise a 32-bit dotted-decimal address for every website you visit.DNS 是互联网的"电话簿"。记住层级结构:解析器询问根服务器,根服务器指向 TLD,TLD 指向权威服务器。结果在每一层都以 TTL(生存时间)值缓存。没有 DNS,你需要记住每个网站的 32 位点分十进制地址。

Q4 MEDIUM 🇨🇦 BC §4 Protocols: TCP, UDP, HTTP/HTTPS协议:TCP、UDP、HTTP/HTTPS [6 marks][6 分]
(a) [4]

Online banking site: TCP. Banking requires 100% accuracy; every byte of transaction data must arrive correctly and in order. TCP's handshake, ACK, and retransmission mechanism guarantee reliable delivery. A missing or corrupted byte in a bank transfer is unacceptable.在线银行网站:TCP。银行业务需要 100% 准确性;每一个字节的交易数据必须正确且按序到达。TCP 的握手、ACK 和重传机制保证可靠传输。银行转账中丢失或损坏的字节是不可接受的。

Live video streaming: UDP. Streaming prioritises low latency over accuracy; a dropped video frame appears as a brief glitch, which is far preferable to a frozen screen caused by waiting for TCP retransmissions. UDP's connectionless, no-ACK design is faster.实时视频流:UDP。流媒体优先考虑低延迟而非准确性;丢失的视频帧表现为短暂卡顿,这远好于等待 TCP 重传导致的画面冻结。UDP 的无连接、无 ACK 设计更快。

(b) [2]
HTTPS adds TLS (Transport Layer Security) encryption over plain HTTP. Data between browser and server is encrypted end-to-end so that an attacker intercepting packets sees only ciphertext. The OSI layer responsible is Layer 6 (Presentation), which handles data format conversion and encryption/decryption.HTTPS 在 HTTP 基础上增加了 TLS(传输层安全)加密。浏览器与服务器之间的数据端到端加密,使截获数据包的攻击者只看到密文。负责此功能的 OSI 层是第 6 层(表示层),该层处理数据格式转换和加密/解密。
Insight洞察

The protocol choice rule: when accuracy matters more than throughput, use TCP; when low latency matters more than accuracy, use UDP. Every web page (HTTP/HTTPS) uses TCP. Real-time communications (VoIP, live video, online gaming) use UDP. The "S" in HTTPS stands for Secure, implemented via TLS at OSI Layer 6 (Presentation).协议选择原则:当准确性比传输效率更重要时,使用 TCP;当低延迟比准确性更重要时,使用 UDP。每个网页(HTTP/HTTPS)使用 TCP。实时通信(VoIP、实时视频、在线游戏)使用 UDP。HTTPS 中的"S"代表 Secure(安全),通过 OSI 第 6 层(表示层)的 TLS 实现。

Q5 MEDIUM 🇨🇦 BC 🇨🇦 AB §5 OSI Layered ModelOSI 分层模型 [7 marks][7 分]
(a) [4]
Layer #层编号Name名称Protocol / Hardware Example协议/硬件示例
7Application应用层HTTP, HTTPS, DNS, FTPHTTP、HTTPS、DNS、FTP
6Presentation表示层TLS/SSL, JPEG, MP3TLS/SSL、JPEG、MP3
4Transport传输层TCP, UDPTCP、UDP
3Network网络层IP, ICMP, routersIP、ICMP、路由器
1Physical物理层Fibre optic cable, radio waves光纤电缆、无线电波

(Bold text = answers to fill in; italic text = given in the question.)(粗体 = 填写答案;斜体 = 题目已给出。)

(b) [1]
TCP/IP Application layer corresponds to OSI layers 5, 6, and 7 (Session + Presentation + Application). The TCP/IP model simplifies OSI's seven layers into four by merging the top three into one Application layer.TCP/IP 应用层对应 OSI 第 5、6、7 层(会话层 + 表示层 + 应用层)。TCP/IP 模型通过将最上面三层合并为一个应用层,将 OSI 的七层简化为四层。
(c) [2]
A layered model is useful because each layer handles one specific job and interacts only with the layers directly above and below it, allowing engineers to modify or replace one layer's implementation without affecting the others. This promotes interoperability: devices from different manufacturers (e.g. a Mac, a Windows PC, and an Android phone) can communicate because they all implement the same open standards at each layer, regardless of their internal hardware or software differences.分层模型有用,因为每层只处理一项特定工作,只与紧邻的上下层交互,使工程师无需影响其他层即可修改或替换一层的实现。这促进了互操作性:来自不同制造商的设备(如 Mac、Windows PC 和 Android 手机)可以通信,因为它们在每一层都实现了相同的开放标准,不受内部硬件或软件差异的影响。
Insight洞察

Mnemonic (7 down to 1): All People Seem To Need Data Processing. For BC CIS 11, know all seven names plus representative protocols. For AP CSP, understand the conceptual purpose of layering. The key BC CIS 11 term is "interoperability" - the OSI model is an ISO standard (ISO/IEC 7498-1) that enables all compliant devices to communicate regardless of manufacturer.记忆口诀(7 到 1):应用-表示-会话-传输-网络-数据链路-物理。BC CIS 11 需要记住所有七层名称及代表性协议。AP CSP 需要理解分层的概念目的。BC CIS 11 关键术语是"互操作性",即 OSI 模型是 ISO 标准(ISO/IEC 7498-1),使所有符合标准的设备无论制造商如何都能通信。

PART II  ·  EXTENDED RESPONSE第二部分  ·  简答题AP CSP-feeder FRQ + Honors · 30 marksAP CSP 衔接简答题 + 荣誉级 · 共 30 分

Section B · Extended ResponseB 部分 · 简答题

Q6 EASY 🇺🇸 US §3 IP Addresses: IPv4 vs IPv6IP 地址:IPv4 与 IPv6 [6 marks][6 分]
(a) [2]
Address A (192.168.1.105) is IPv4 (32-bit, written as four decimal numbers 0-255 separated by dots). Address B (2001:0db8:...) is IPv6 (128-bit, written as eight groups of four hexadecimal digits separated by colons).地址 A(192.168.1.105)是 IPv4(32 位,以点分隔四个 0-255 的十进制数字)。地址 B(2001:0db8:...)是 IPv6(128 位,以冒号分隔八组四位十六进制数字)。
(b) [2]
"Private" means the address is used only within a LAN and cannot be routed on the public Internet. Private IP ranges (like 192.168.x.x) are invisible to the outside world; routers on the Internet do not forward packets addressed to a private IP. By contrast, public IP addresses are globally unique and routable. NAT (Network Address Translation) maps many private addresses to one public IP at the router."私有"意味着该地址仅在局域网内使用,不能在公共互联网上路由。私有 IP 范围(如 192.168.x.x)对外部世界不可见;互联网上的路由器不会转发目标为私有 IP 的数据包。相比之下,公有 IP 地址是全球唯一且可路由的。NAT(网络地址转换)在路由器处将多个私有地址映射到一个公有 IP。
(c) [2]
IPv4's 32-bit address space provides approximately 4.3 billion (2^32) addresses, which was nearly exhausted by the proliferation of devices. IPv6's 128-bit space provides approximately 3.4 x 10^38 addresses (2^128), enough for every grain of sand on Earth to have trillions of IP addresses, making Internet address exhaustion a solved problem.IPv4 的 32 位地址空间提供约 43 亿(2^32)个地址,随着设备数量激增几近耗尽。IPv6 的 128 位空间提供约 3.4 x 10^38 个地址(2^128),足以让地球上每粒沙子拥有数万亿个 IP 地址,从根本上解决了互联网地址耗尽问题。
Insight洞察

Key numbers to know: IPv4 = 32 bits, ~4.3 billion addresses. IPv6 = 128 bits, ~3.4 x 10^38 addresses. Private ranges: 192.168.x.x, 10.x.x.x, 172.16-31.x.x. The transition from IPv4 to IPv6 is driven purely by address exhaustion, not by throughput, encryption, or wireless support.关键数字:IPv4 = 32 位,约 43 亿个地址。IPv6 = 128 位,约 3.4 x 10^38 个地址。私有范围:192.168.x.x、10.x.x.x、172.16-31.x.x。从 IPv4 到 IPv6 的迁移纯粹由地址耗尽驱动,而非传输性能、加密或无线支持。

Q7 MEDIUM 🇺🇸 US 🇨🇦 ON §4 + §6 HTTPS, TLS, and Security TradeoffsHTTPS、TLS 与安全权衡 [8 marks][8 分]
(a) [3]
TLS (Transport Layer Security) encrypts all data in transit between the browser and server using a shared secret key negotiated during the TLS handshake. Even if an attacker on the same Wi-Fi intercepts the packets, they see only ciphertext and cannot read passwords, grades, or other sensitive data. This matters on a school-controlled network because: (1) other students on the same network could perform a man-in-the-middle attack if traffic is unencrypted; (2) the school network could be compromised; (3) strong security practice is to encrypt sensitive data at the application layer regardless of the network owner. The classmate's argument is a common misconception: network ownership does not equal data confidentiality.TLS(传输层安全)使用 TLS 握手期间协商的共享密钥加密浏览器与服务器之间所有传输中的数据。即使同一 Wi-Fi 上的攻击者截获数据包,他们只看到密文,无法读取密码、成绩或其他敏感数据。这在学校控制的网络上也很重要,因为:(1)同一网络上的其他学生若流量未加密可能发动中间人攻击;(2)学校网络本身可能被攻破;(3)良好的安全实践要求在应用层加密敏感数据,无论网络所有者是谁。该同学的论点是常见误解:网络所有权不等于数据机密性。
(b) [2]
Security benefit: HTTPS prevents eavesdropping on any traffic, protecting staff passwords, student grades, and administrative data from interception even by insiders on the network. Usability tradeoff: HTTPS requires TLS certificate management (obtaining, renewing, and deploying certificates), adding administrative overhead; older or embedded internal devices may not support TLS, requiring hardware updates. There is also a slight performance overhead from the TLS handshake on each new connection.安全优势:HTTPS 防止对任何流量的窃听,保护员工密码、学生成绩和管理数据不被网络内部人员截获。可用性权衡:HTTPS 需要 TLS 证书管理(获取、更新和部署证书),增加管理开销;较旧或嵌入式内部设备可能不支持 TLS,需要硬件升级。每次新连接的 TLS 握手也有轻微的性能开销。
(c) [3]

TCP 3-way handshake (in order):TCP 三次握手(按顺序):

  1. SYN - Browser (client) sends a synchronise (SYN) packet to the server to initiate the connection.SYN - 浏览器(客户端)向服务器发送同步(SYN)数据包以发起连接。
  2. SYN-ACK - Server responds with a synchronise-acknowledge (SYN-ACK) packet, confirming it received the SYN and is ready to connect.SYN-ACK - 服务器回应同步-确认(SYN-ACK)数据包,确认已收到 SYN 并准备好连接。
  3. ACK - Browser sends a final acknowledge (ACK) packet to the server. The TCP connection is now established; TLS handshake follows.ACK - 浏览器向服务器发送最终确认(ACK)数据包。TCP 连接现已建立;TLS 握手随即进行。
Insight洞察

Connection setup order for HTTPS: (1) DNS lookup, (2) TCP 3-way handshake (SYN, SYN-ACK, ACK), (3) TLS handshake (exchange certificates, agree on cipher), (4) HTTP GET request (encrypted). Steps 1-3 all occur before any application data is sent. Network ownership does not guarantee data security - encryption is the only guarantee.HTTPS 连接建立顺序:(1)DNS 查找,(2)TCP 三次握手(SYN、SYN-ACK、ACK),(3)TLS 握手(交换证书、协商密码),(4)HTTP GET 请求(加密)。在发送任何应用数据之前,步骤 1-3 全部发生。网络所有权不保证数据安全;加密才是唯一保证。

Q8 HARD 🇨🇦 BC 🇺🇸 US §4 + §5 Protocol Stack and Encapsulation协议栈与封装 [8 marks][8 分]
(a) [4]
  • HTTP GET request: Layer 7 (Application) - HTTP is the application-layer protocol used by browsers.HTTP GET 请求:第 7 层(应用层) - HTTP 是浏览器使用的应用层协议。
  • TLS encryption / decryption: Layer 6 (Presentation) - TLS handles data format and encryption, which is the job of the Presentation layer.TLS 加密/解密:第 6 层(表示层) - TLS 处理数据格式和加密,这是表示层的工作。
  • IP routing between networks: Layer 3 (Network) - IP is the Network-layer protocol; it addresses and routes packets between different networks.网络间 IP 路由:第 3 层(网络层) - IP 是网络层协议;它在不同网络间对数据包进行寻址和路由。
  • Ethernet frame delivery on local link: Layer 2 (Data Link) - Ethernet operates at the Data Link layer, delivering frames between devices on the same local network segment.本地链路以太网帧传送:第 2 层(数据链路层) - 以太网在数据链路层运行,在同一本地网络段的设备间传送帧。
(b) [2]
Encapsulation (sending, downward): As a message travels down the OSI layers on the sender side, each layer wraps the message by adding a header (and sometimes a trailer) containing layer-specific control information. By Layer 1, the original message is wrapped in multiple headers like nested envelopes. Decapsulation (receiving, upward): On the receiver side, each layer strips its own header and passes the remaining data up to the next layer, until the original application data is delivered to the application at Layer 7.封装(发送,向下):消息在发送方侧向下经过 OSI 各层时,每层通过添加包含层特定控制信息的头部(有时还有尾部)来包装消息。到达第 1 层时,原始消息被多个头部层层包裹,如同嵌套信封。解封装(接收,向上):在接收方侧,每层剥去自己的头部并将剩余数据传递给下一层,直到原始应用数据传递到第 7 层的应用程序。
(c) [2]
Interoperability means that devices from different manufacturers can communicate with each other because they all implement the same open, standardised protocols at each layer. For example, a Mac, a Windows PC, and a Linux server can all exchange data because they all implement TCP/IP at the network/transport layers and HTTP at the application layer. A consequence of open standards: any manufacturer can build a device that connects to the Internet without needing permission or proprietary hardware from any single company, driving innovation and global connectivity. Without open standards, the Internet would be a patchwork of incompatible corporate networks.互操作性意味着来自不同制造商的设备可以相互通信,因为它们在每一层都实现了相同的开放标准化协议。例如,Mac、Windows PC 和 Linux 服务器都可以交换数据,因为它们在网络/传输层都实现了 TCP/IP,在应用层都实现了 HTTP。开放标准的一个结果:任何制造商都可以构建连接到互联网的设备,无需任何单一公司的许可或专有硬件,从而推动创新和全球连接。没有开放标准,互联网将是一堆不兼容的企业网络拼凑而成。
Insight洞察

The OSI layer mapping for HTTPS traffic: Application (7) = HTTP, Presentation (6) = TLS, Session (5) = connection management, Transport (4) = TCP, Network (3) = IP, Data Link (2) = Ethernet/Wi-Fi, Physical (1) = copper/fibre/radio. Encapsulation is the reverse of decapsulation: each layer adds its wrapper going down and removes it going up. BC CIS 11 explicitly tests this and the ISO standard ISO/IEC 7498-1 that formalises the OSI model.HTTPS 流量的 OSI 层映射:应用层(7)= HTTP,表示层(6)= TLS,会话层(5)= 连接管理,传输层(4)= TCP,网络层(3)= IP,数据链路层(2)= 以太网/Wi-Fi,物理层(1)= 铜线/光纤/无线电。封装是解封装的逆过程:每层向下添加其包装,向上则移除。BC CIS 11 明确测试此内容以及使 OSI 模型正式化的 ISO 标准 ISO/IEC 7498-1。

Q9 HARD Honors荣誉级 🇺🇸 US §1 + §2 Fault Tolerance and Packet Routing容错性与数据包路由 [8 marks][8 分]
(a) [2]
Sender --[Router A]--[Router B]--[Router C]-- Receiver
              |                       |
              +------[Router D]-------+

Two distinct paths:两条不同路径:

  1. Sender → Router A → Router B → Router C → Receiver发送方 → 路由器 A → 路由器 B → 路由器 C → 接收方
  2. Sender → Router A → Router D → Router C → Receiver发送方 → 路由器 A → 路由器 D → 路由器 C → 接收方
(b) [3]
When Router B fails, packets reroute via path 2: Sender → Router A → Router D → Router C → Receiver. Router A detects that its link to Router B is unavailable (via routing protocol updates) and selects Router D as the next hop instead. This demonstrates fault tolerance: the system continues to function correctly even when one component fails, because redundant paths exist between the source and destination. The Internet's design deliberately includes redundant links so that no single router failure can cut off all communication between two endpoints.路由器 B 故障时,数据包通过路径 2 重新路由:发送方 → 路由器 A → 路由器 D → 路由器 C → 接收方。路由器 A 通过路由协议更新检测到与路由器 B 的链路不可用,改选路由器 D 作为下一跳。这体现了容错性:即使一个组件故障,系统仍能正常运行,因为源与目的地之间存在冗余路径。互联网的设计特意包含冗余链路,使单一路由器故障不能切断两端点之间的所有通信。
(c) [2]
The Receiver reconstructs the file using the sequence number field in each packet's header. When Packet 3, Packet 1, and Packet 2 arrive in that order, the Receiver buffers all three and uses their sequence numbers (1, 2, 3) to reorder them correctly before reassembling the data. This is a core function of TCP: it tracks sequence numbers and reorders out-of-sequence packets before passing the data to the application.接收方使用每个数据包头部中的序列号字段重建文件。当数据包 3、数据包 1 和数据包 2 以该顺序到达时,接收方缓存所有三个,并使用它们的序列号(1、2、3)在重新组装数据之前正确排序。这是 TCP 的核心功能:它追踪序列号,在将数据传递给应用程序之前重新排序乱序数据包。
(d) [1]
The Internet's mesh-like routing provides fault tolerance because multiple paths exist between any two points, so data can reroute around failed nodes. A star topology LAN has a single point of failure: the central switch. If the switch fails, all devices lose connectivity simultaneously, regardless of whether the individual devices are functioning. This makes star topology far less fault-tolerant than a mesh.互联网的网状路由因任意两点间存在多条路径而具有容错性,数据可以绕过故障节点重新路由。星型拓扑局域网有一个单点故障:中央交换机。若交换机故障,所有设备同时失去连接,无论各设备本身是否正常运行。这使星型拓扑的容错性远低于网状拓扑。
Insight洞察

AP CSP CSN-1.C: "The Internet is designed to be fault tolerant, with redundancy being the primary mechanism for fault tolerance." The key word is redundancy - multiple paths, multiple routers, no single critical node. Sequence numbers in TCP headers enable both reordering of out-of-order packets AND detection of missing packets (gaps in the sequence trigger retransmission). Star topology vs. mesh: star is simple and cheap but has one SPOF; mesh is expensive but extremely resilient.AP CSP CSN-1.C:"互联网被设计为容错的,冗余是容错的主要机制。"关键词是冗余,即多条路径、多个路由器、无单一关键节点。TCP 头部中的序列号既能重新排序乱序数据包,又能检测丢失数据包(序列中的间隙触发重传)。星型拓扑 vs 网状拓扑:星型简单便宜但有一个单点故障;网状型昂贵但极具弹性。

PART III  ·  MODELING / APPLIED第三部分  ·  建模与应用Universal / multi-region applied · 25 marks通用/多地区应用题 · 共 25 分

Section C · Modeling and ApplicationsC 部分 · 建模与应用

Q10 MEDIUM 🇺🇸 US 🇨🇦 ON §1 + §2 Network Design and Packet Switching网络设计与分组交换 [8 marks][8 分]
(a) [3]

Sample labelled diagram:带标注图示示例:

PC1 ----+
PC2 ----+
PC3 ----+                   [Internet / WAN]
 :      +---- [Switch] ---- [Router] ----+
 :      +
PC20 ---+

LAN (star topology)          WAN connection

Key components: [Switch] = central device (star hub), 20 PCs connect to Switch, [Router] connects LAN to Internet. Award marks for: correct topology shown (star), central device labelled as Switch, Router present and connecting to Internet cloud, at least 3 PCs shown.关键组件:[交换机] = 中央设备(星型中心),20 台 PC 连接到交换机,[路由器] 将局域网连接到互联网。评分点:正确的拓扑结构(星型)、中央设备标注为交换机、路由器存在并连接到互联网云、至少显示 3 台 PC。

(b) [2]
Star topology satisfies requirement (2) because each desktop connects to the switch via its own dedicated cable. If PC7 fails, only PC7's link is affected; the switch and all other connections remain active, so the other 19 PCs continue to work normally. Single weakness: the central switch is a single point of failure. If the switch fails, all 20 PCs lose connectivity simultaneously, even though each individual PC is still working. This weakness was the one exception to requirement (2).星型拓扑满足要求(2),因为每台台式机通过自己专用的电缆连接到交换机。若 PC7 故障,只有 PC7 的链路受影响;交换机和所有其他连接保持活跃,其他 19 台 PC 继续正常工作。唯一弱点:中央交换机是单点故障。若交换机故障,所有 20 台 PC 同时失去连接,即使每台 PC 本身仍然正常运行。此弱点是要求(2)的唯一例外。
(c) [3]
Three advantages of packet switching over one continuous stream:分组交换相比一个连续流的三个优势:
  1. Parallel routing: different packets from the same request can take different paths simultaneously, increasing throughput and reducing latency.并行路由:同一请求的不同数据包可以同时走不同路径,提高吞吐量并降低延迟。
  2. Selective retransmission: if one packet is lost, only that packet needs to be resent, not the entire data stream, saving bandwidth.选择性重传:若一个数据包丢失,只需重传该数据包,而非整个数据流,节省带宽。
  3. Fair bandwidth sharing: many users can share the same network links simultaneously because packets from different conversations are interleaved, preventing any single user from monopolising the channel.带宽公平共享:多个用户可以同时共享相同的网络链路,因为来自不同会话的数据包交错传输,防止任何单一用户独占信道。
Insight洞察

Star topology is the dominant LAN topology today because switches are cheap, reliable, and provide dedicated bandwidth to each device. The only failure mode that affects the whole network is the switch. In enterprise networks, redundant (dual) switches are used to eliminate this SPOF. The three packet-switching benefits (parallel routing, selective retransmission, fair sharing) are directly assessed by AP CSP CSN-1.A and CSTA 3A-NI-04.星型拓扑是当今主流的局域网拓扑,因为交换机廉价、可靠,并为每台设备提供专用带宽。影响整个网络的唯一故障模式是交换机故障。在企业网络中,使用冗余(双)交换机来消除此单点故障。分组交换的三个优势(并行路由、选择性重传、公平共享)直接由 AP CSP CSN-1.A 和 CSTA 3A-NI-04 评估。

Q11 MEDIUM 🇨🇦 ON 🇨🇦 BC §6 Network Security Basics网络安全基础 [9 marks][9 分]
(a) [3]

(i) Trojan. The program disguised itself as a game (legitimate software) while secretly performing malicious actions (transmitting files to an external server). A Trojan does not self-replicate; it relies on the user to install it.(i)木马。该程序伪装成游戏(合法软件),同时秘密执行恶意操作(将文件发送到外部服务器)。木马不会自我复制;它依赖用户主动安装。

(ii) Worm. The software spread from computer to computer across the network without needing to attach to any file. This self-replication without a host file is the defining characteristic of a worm, distinguishing it from a virus (which attaches to a file) and a Trojan (which does not replicate).(ii)蠕虫。该软件无需附着于任何文件即在网络中从一台计算机传播到另一台。这种无需宿主文件的自我复制是蠕虫的定义性特征,将其与病毒(附着于文件)和木马(不复制)区分开来。

(iii) This is not malware - it is unauthorised access / account compromise (an attacker guessing a weak password). The correct category is a brute-force or dictionary attack exploiting a weak password, which is a network security breach rather than a malware infection. Accept: "password attack" or "unauthorised access via credential guessing."(iii)这不是恶意软件,而是未授权访问/账户泄露(攻击者猜测弱密码)。正确类别是利用弱密码的暴力破解或字典攻击,这是网络安全漏洞而非恶意软件感染。接受答案:"密码攻击"或"通过凭证猜测的未授权访问"。

(b) [6]
Incident事件Security Measure安全措施Tradeoff权衡
(i) Trojan木马 Install and maintain anti-malware software with real-time scanning; restrict students from installing unapproved software (application whitelist).安装并维护具有实时扫描功能的反恶意软件;限制学生安装未经批准的软件(应用白名单)。 Ongoing software licensing cost; real-time scanning may slow system performance. Whitelist reduces student flexibility for legitimate software needs.持续的软件许可成本;实时扫描可能降低系统性能。白名单降低学生对合法软件需求的灵活性。
(ii) Worm蠕虫 Apply regular operating system patches and security updates promptly; configure the firewall to block lateral movement (restrict peer-to-peer connections between student devices).及时应用定期操作系统补丁和安全更新;配置防火墙阻止横向移动(限制学生设备之间的点对点连接)。 Patch management requires IT staff time and testing to avoid breaking applications. Restricting device-to-device connections may interfere with legitimate collaborative activities.补丁管理需要 IT 人员时间和测试,以避免破坏应用程序。限制设备间连接可能干扰合法的协作活动。
(iii) Weak password / unauthorised access弱密码/未授权访问 Enforce a strong password policy (minimum length, complexity, rotation) AND require multi-factor authentication (MFA) for Wi-Fi and system access.强制执行强密码策略(最小长度、复杂性、轮换),并要求多因素认证(MFA)用于 Wi-Fi 和系统访问。 MFA adds an extra step for every login, reducing convenience for staff. Strong password requirements increase the likelihood of staff writing down passwords if requirements are too complex.MFA 为每次登录增加额外步骤,降低员工便利性。若密码要求过于复杂,强密码要求会增加员工写下密码的可能性。
Insight洞察

The three malware types to know cold for ICS3U C2.2: Virus (attaches to file, spreads when file is shared), Worm (self-replicates across network, no host file needed), Trojan (disguised as legitimate software, does not replicate). Ransomware (encrypts files for payment) and Spyware (secretly monitors) complete the five core types. For any security question in CSTA 3A-NI-06 to 3A-NI-08: name the threat, name the measure, name the tradeoff. All three elements are required for full marks.ICS3U C2.2 需要熟记的三种恶意软件类型:病毒(附着于文件,文件共享时传播),蠕虫(在网络中自我复制,无需宿主文件),木马(伪装成合法软件,不复制)。勒索软件(加密文件索取赎金)和间谍软件(秘密监视)构成五种核心类型。对于 CSTA 3A-NI-06 到 3A-NI-08 的任何安全问题:命名威胁、命名措施、命名权衡。三个要素都是满分所必需的。

Q12 HARD 🇺🇸 US 🇨🇦 ON 🇨🇦 BC §7 Web vs Internet, Client-Server, URL Anatomy万维网与互联网、客户端-服务器、URL 解析 [8 marks][8 分]
(a) [3]
https://library.school.ca:443/catalogue?subject=science#results
  |         |               |    |          |              |
scheme     domain          port  path    query string    fragment
  • https (scheme/protocol): specifies the communication protocol to use - HTTP with TLS encryption for secure transmission.https(协议方案):指定使用的通信协议,即带 TLS 加密的 HTTP,用于安全传输。
  • library.school.ca (domain): the human-readable name of the server; DNS will resolve this to an IP address.library.school.ca(域名):服务器的人类可读名称;DNS 将把它解析为 IP 地址。
  • 443 (port): the network port on the server to connect to (443 is the standard/default port for HTTPS).443(端口):要连接的服务器上的网络端口(443 是 HTTPS 的标准/默认端口)。
  • /catalogue (path): the specific resource or page on the server being requested./catalogue(路径):服务器上被请求的特定资源或页面。
  • subject=science (query string): parameters passed to the server to filter or modify the response (here: filter results by subject=science).subject=science(查询字符串):传递给服务器以过滤或修改响应的参数(此处:按 subject=science 过滤结果)。
  • #results (fragment): an in-page anchor that tells the browser to scroll to the element with id="results" after the page loads; the fragment is NOT sent to the server.#results(片段):页内锚点,指示浏览器在页面加载后滚动到 id="results" 的元素;片段不发送给服务器。
(b) [3]
  1. DNS step: The browser queries a DNS resolver to translate library.school.ca into an IP address (e.g. 192.168.10.5).DNS 步骤:浏览器向 DNS 解析器查询,将 library.school.ca 翻译为 IP 地址(如 192.168.10.5)。
  2. Client sends: After TCP (and TLS) handshake, the browser (client) sends an HTTP GET request: GET /catalogue?subject=science HTTP/1.1 with Host header library.school.ca, encrypted by TLS.客户端发送:完成 TCP(和 TLS)握手后,浏览器(客户端)发送 HTTP GET 请求GET /catalogue?subject=science HTTP/1.1,Host 头部为 library.school.ca,由 TLS 加密。
  3. Server sends back: The web server processes the request and returns an HTTP response with status code 200 OK, a Content-Type header, and the HTML body of the catalogue page, all TLS-encrypted.服务器返回:Web 服务器处理请求并返回 HTTP 响应,包含状态码 200 OK、Content-Type 头部和目录页面的 HTML 正文,全部经 TLS 加密。
  4. Browser action: The browser decrypts the response, parses the HTML, renders the page on screen, and scrolls to the #results anchor.浏览器处理:浏览器解密响应,解析 HTML,在屏幕上渲染页面,并滚动到 #results 锚点。
(c) [2]
The Internet is the global network infrastructure - the physical cables, routers, and TCP/IP protocols that connect billions of devices worldwide. The Web (World Wide Web) is one application that runs over the Internet infrastructure, using HTTP/HTTPS to transfer hypertext documents (web pages) between browsers and servers. One Internet service that is NOT the Web: email (which uses SMTP/IMAP, not HTTP).互联网是全球网络基础设施,即连接全球数十亿设备的物理电缆、路由器和 TCP/IP 协议。万维网(World Wide Web)是运行在互联网基础设施上的一种应用,使用 HTTP/HTTPS 在浏览器和服务器之间传输超文本文档(网页)。一个不属于万维网的互联网服务:电子邮件(使用 SMTP/IMAP,而非 HTTP)。
Insight洞察

URL anatomy (memorise the structure): scheme://domain:port/path?query#fragment. The fragment (#...) is the only part NOT sent to the server - it is processed entirely by the browser. Internet vs Web: the Internet (ARPANET, 1969) predates the Web (Tim Berners-Lee, 1989) by 20 years. Other non-Web Internet services: email (SMTP/IMAP/POP3), file transfer (FTP), video calls (VoIP/RTP), online gaming, DNS itself, IoT devices. The Web is specifically HTTP/HTTPS hypertext documents.URL 结构(记住):协议://域名:端口/路径?查询#片段。片段(#...)是唯一不发送给服务器的部分,由浏览器完整处理。互联网 vs 万维网:互联网(ARPANET,1969)比万维网(Tim Berners-Lee,1989)早 20 年。其他非万维网的互联网服务:电子邮件(SMTP/IMAP/POP3)、文件传输(FTP)、视频通话(VoIP/RTP)、在线游戏、DNS 本身、物联网设备。万维网特指 HTTP/HTTPS 超文本文档。