25-Comp-B5 Computer Communications · December 2014
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
98-Comp-B5, Computer Communications — National Exams, December 2014. Closed-book, 3 hours; seven questions of equal value (20% each); ANY FIVE constitute a complete exam (all seven answered below as a complete study resource).
Reference texts: Stallings, Data and Computer Communications, 10th ed. — the OSI reference model (Ch.2, Q1), multiplexing/FDM (Ch.8, Q3), spread spectrum (Ch.9, Q6), and physical/link-layer terminology (Ch.3, 9, 11, 17, Q7); Kurose & Ross, Computer Networking: A Top-Down Approach, 7th ed. — throughput and bit-rate fundamentals (Ch.1, Q2), error detection via CRC (Ch.5, Q4), the Web/HTTP/URL (Ch.2, Q5), and TCP/IP (Ch.1, Q7).
Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.
HTTP stands for HyperText Transfer Protocol.
The WWW (World Wide Web) is not the Internet itself but an application built on top of it: a distributed, interlinked collection of hypertext and hypermedia documents (pages, images, video) hosted on servers worldwide, connected to one another by hyperlinks, and each identified/located by a URL. It was proposed by Tim Berners-Lee at CERN around 1989–1991 as a way to let researchers share and cross-reference documents without needing to know in advance where every document physically resided.
The WWW is the content and information space — hyperlinked documents identified by URLs — while HTTP is the specific application-layer protocol used to retrieve and transfer that content between a client (a browser) and a server. HTTP defines the request-response message exchange (typically carried over TCP) by which a client asks for a named resource and a server returns it. Without HTTP, or a functionally similar protocol, there would be no standard way to fetch WWW content, but the Web as an idea — hyperlinked documents named by URLs — is conceptually distinct from the protocol used to move its bytes; indeed other protocols (e.g. FTP) can also serve resources named by a URL.
A URL (Uniform Resource Locator) is a structured, human-readable address that identifies where a specific resource lives and how to fetch it, generally of the form scheme://host[:port]/path[?query][#fragment] — for example https://www.example.com:443/docs/page.html?id=5#section2. The scheme names the access protocol (http, https, ftp, mailto…), the host names the server (usually resolved via DNS), the path locates the resource on that server, and the optional query/fragment refine or pinpoint content within it.
https) to that IP address on the given port.GET /path) naming the requested resource by its path.200 OK), headers (content type/length, caching), and the resource body (e.g. an HTML document).