Skip to topic
    ← Back to course topics

    The Internet and how it works — AQA A-Level Computer Science

    The Internet is a global system of interconnected computer networks that communicate using the TCP/IP protocol suite, facilitating data transmission via packet switching and routing. Understanding its core architecture, including DNS, IP addressing, client-server models, and packet headers, is essential for AQA A-Level Computer Science.

    The Internet and how it works explained

    Understanding the structure of the Internet means recognising it as a decentralised network of networks rather than a single system.

    Read the full explanation

    Individual networks, such as those run by universities, businesses and home internet service providers, are connected to one another through routers. Internet service providers are arranged in tiers: Tier 1 providers have global reach and exchange traffic with one another at peering points, while lower-tier providers connect local users and buy transit from larger networks. Traffic therefore may travel through several intermediate networks, and no single organisation controls the whole route. Students should be able to describe this hierarchy, explain the role of routers and peering, and recognise that the Internet's distributed design makes it resilient to the failure of any one link.

    Your focus

    1. Understand the structure of the Internet.

    Which command word is this?

    Give reasons or show cause-and-effect relationships. Do not simply state definitions; link how mechanism X directly leads to outcome Y.

    The Internet and how it works exam tips

    Topic Overview

    The Internet is the vast, global mesh of interconnected networks operating across standard protocols to route data between billions of heterogeneous host devices. At AQA A-Level, this topic examines the fundamental hardware and logical protocols that underpin modern communications, spanning packet switching, routing, IP addressing, and the Domain Name System.

    Mastering this topic allows students to connect theoretical models like TCP/IP with real-world infrastructure such as internet exchange points, autonomous systems, and client-server architectures. It provides essential technical context for subsequent modules, including network security, web technologies, and distributed computing.

    Key Concepts
    • →Packet Switching: Breaking data into discrete chunks with headers and trailers, routed independently across dynamic paths and reassembled at the destination.
    • →TCP/IP Stack: The four-layer conceptual architecture (Application, Transport, Network/Internet, Link) responsible for end-to-end communication.
    • →Domain Name System (DNS): The hierarchical, distributed database that translates human-readable domain names into routable numerical IP addresses.
    • →Routing and IP Addressing: The use of IPv4/IPv6 addresses, subnet masks, and routing tables to forward packets along the most efficient hops.
    Marking Points
    • Describes the Internet as a network of interconnected networks rather than one central system.
    • Explains that routers forward packets between networks, choosing a path toward the destination.
    • Identifies the tiered arrangement of ISPs, with Tier 1 providers interconnecting at global peering points.
    • Explains that data may cross several independent networks and that no single organisation controls the whole path.
    Examiner Tips
    • 💡Use the phrase network of networks to anchor answers on Internet structure.
    • 💡When describing ISP tiers, state what Tier 1 and lower-tier providers each do.
    • 💡Link routers to the idea of forwarding packets between networks.
    • 💡Always state the layer of the TCP/IP stack when describing a protocol (e.g. HTTP at Application, TCP at Transport, IP at Internet/Network).
    • 💡Use accurate networking terminology: write 'packet switching' rather than 'sending data', 'reassembled' instead of 'put back together', and 'router inspects destination IP' instead of 'the computer knows where to send it'.
    Common Mistakes
    • Describes the Internet as a single central server or company; correct by explaining its decentralised network-of-networks structure.
    • Confuses the World Wide Web with the Internet; correct by stating that the Web is a service running over the Internet.
    • Assumes that every packet travels directly from sender to receiver; correct by explaining that routers pass packets through intermediate networks.
    • Believing that packets always travel along the exact same path: In packet switching, individual packets can take completely different physical routes depending on congestion and link failures, being reordered at the transport layer.
    • Confusing MAC addresses with IP addresses: MAC addresses are physical, burned-in identifiers used for link-layer transmission within the same local network, whereas IP addresses are logical identifiers assigned dynamically or statically for routing across different networks.
    • Thinking DNS servers store all web page contents: DNS servers only hold records (such as A and AAAA records) mapping domain names to IP addresses; they do not store or serve HTML, CSS, or website assets.
    Revision Plan
    1. 1Day 1-3: Master core concepts: packet structure (header, payload, trailer), packet switching vs circuit switching, and routing mechanisms.
    2. 2Day 4-6: Memorise the 4 layers of the TCP/IP model, detailing the function and protocols of each layer (Application, Transport, Network, Link).
    3. 3Day 7-9: Learn the exact sequence of DNS resolution and the TCP 3-way handshake (SYN, SYN-ACK, ACK).
    4. 4Day 10-12: Practice past paper exam questions focusing on 6-mark explain/describe questions and subnetting/IP calculation problems.
    Exam Question Types
    • 📋Step-by-step trace questions: Detailing the precise order of events during a DNS lookup or a TCP connection establishment.
    • 📋Comparison questions: Comparing packet switching with circuit switching, or IPv4 with IPv6, highlighting efficiency, reliability, and address space.
    • 📋Scenario-based 6-markers: Explaining how data travels from a web server to a client machine across multiple network boundaries and layers.
    Command Word Expectations (AQA)
    Explain

    Give reasons or show cause-and-effect relationships. Do not simply state definitions; link how mechanism X directly leads to outcome Y.

    Describe

    State the key characteristics or outline the sequence of events of a process in logical chronological order without necessarily needing an evaluation.

    Compare

    Identify both similarities and differences between two technical concepts, using linking words such as 'whereas' or 'in contrast to'.

    How Students Lose Marks (Examiner Pitfalls)
    Pitfall: Conflating the Internet with the World Wide Web (WWW).
    ❌ Weak Answer (Loses Marks):The Internet is where you go on web browsers to search websites and download online pages using Google.
    Example improved answer:The Internet is the global physical infrastructure of interconnected hardware networks operating on the TCP/IP protocol suite. The World Wide Web is an application-level service built on top of the Internet that consists of interlinked web pages and multimedia resources accessed via HTTP/HTTPS.
    Examiner Tip: Always explicitly define the Internet as physical infrastructure/hardware/interconnected networks and the Web as an information-sharing service/software system using HTTP.
    Pitfall: Imprecise explanations of the role of the Domain Name System (DNS) and packet header contents.
    ❌ Weak Answer (Loses Marks):A DNS server translates a website name into an IP address so the computer knows which website to display.
    Example improved answer:When a domain name is requested, the client queries a local DNS resolver; if unresolved, it traverses the hierarchy (root, TLD, and authoritative nameservers) to resolve the Fully Qualified Domain Name into its corresponding numerical IP address, which is then placed into the packet header as the destination IP address.
    Examiner Tip: Never stop at 'it finds the website'. Mention the resolution of a domain name to a numerical IP address and how it gets populated into IP packet headers.
    Step-by-Step Worked Solutions

    Question: Explain the step-by-step process that takes place when a user types 'https://www.example.co.uk' into a browser until the initial TCP connection is established. (6 marks)

    1. 1.Step 1: Check local cache - The browser checks its local DNS cache to see if the IP address for 'www.example.co.uk' is already stored.
    2. 2.Step 2: Recursive DNS query - If not cached, a request is sent to the local DNS resolver (often provided by the ISP), which queries root servers, '.uk' TLD servers, and authoritative nameservers until the IP address is resolved.
    3. 3.Step 3: IP address returned - The resolved IP address is returned to the client browser and cached locally for future requests.
    4. 4.Step 4: TCP Three-Way Handshake initiation - The client creates a SYN (synchronise) packet containing a sequence number and the resolved destination IP address, sending it to port 443 of the web server.
    5. 5.Step 5: SYN-ACK receipt - The web server acknowledges receipt by returning a SYN-ACK packet with its own sequence number and acknowledgement number.
    6. 6.Step 6: Handshake completion - The client replies with an ACK packet, confirming that the reliable, full-duplex TCP connection is established before initiating the TLS/SSL handshake.
    Final Answer: The domain is resolved to an IP address via recursive DNS lookups, followed by establishing a reliable transport-layer connection using the three-way handshake (SYN, SYN-ACK, ACK) on port 443.

    Question: Describe the contents and purpose of two fields found in an IP packet header and explain how routers use them. (4 marks)

    1. 1.Step 1: Identify Field 1 - Destination IP Address: Contains the logical network address of the intended recipient device.
    2. 2.Step 2: Router use of Field 1 - Routers inspect this destination address, compare it against their internal routing tables, and forward the packet across the next-hop interface.
    3. 3.Step 3: Identify Field 2 - Time to Live (TTL) / Hop Limit: An integer value decremented by 1 at every router hop.
    4. 4.Step 4: Router use of Field 2 - When TTL reaches 0, the router discards the packet and transmits an ICMP 'Time Exceeded' message back to the sender, preventing packets from circulating endlessly in routing loops.
    Final Answer: The Destination IP Address directs forwarding via routing tables, and the TTL field is decremented at each hop to destroy packets trapped in routing loops when it reaches zero.
    Active Recall Memory Test
    What are the four layers of the TCP/IP stack, ordered from top to bottom?
    Key Fact: Application Layer, Transport Layer, Network (Internet) Layer, Link (Network Interface) Layer.
    What flags are exchanged in the three steps of a TCP handshake?
    Key Fact: 1. SYN, 2. SYN-ACK, 3. ACK.
    Which header field prevents a packet from circulating indefinitely if there is a routing loop?
    Key Fact: Time To Live (TTL) in IPv4 or Hop Limit in IPv6.
    What is the primary function of a Subnet Mask?
    Key Fact: To differentiate between the Network ID and the Host ID portions of an IP address.
    Frequently Asked Questions
    What is the difference between IPv4 and IPv6?
    IPv4 uses 32-bit addresses formatted as four denary octets separated by dots, providing approximately 4.3 billion unique addresses. IPv6 uses 128-bit addresses represented as eight groups of four hexadecimal digits separated by colons, designed to solve IPv4 address exhaustion. IPv6 also includes built-in support for network security (IPsec) and eliminates the need for Network Address Translation (NAT).
    Why is TCP called a connection-oriented protocol while UDP is connectionless?
    TCP is connection-oriented because it must establish an active, verified two-way virtual connection using a three-way handshake before transmitting data. It guarantees delivery via packet sequencing, acknowledgements, and retransmissions. UDP is connectionless because it sends packets (datagrams) immediately without verifying that the destination is ready or confirming delivery, prioritizing speed over reliability.
    How does a router know where to send an incoming packet?
    When a router receives a packet, it reads the destination IP address from the packet header. It applies its subnet masks to determine the destination network and consults its internal routing table. The routing table indicates the most efficient next-hop IP address and outgoing interface, often calculated dynamically using routing algorithms like Dijkstra's (OSPF).
    What happens if a packet is lost during transmission across the Internet?
    If TCP is used at the transport layer, the receiving host detects the missing packet through sequence number gaps or the sender triggers a retransmission timeout due to a missing acknowledgement (ACK). The sender then retransmits the missing packet. If UDP is used, the lost packet is simply ignored and never retransmitted.
    What role does an Internet Service Provider (ISP) play in how the Internet works?
    An ISP provides end-users and organisations with access to the wider Internet infrastructure. Tier 3 ISPs connect directly to residential customers; they purchase transit from Tier 2 regional ISPs, which in turn connect to Tier 1 backbone providers via Internet Exchange Points (IXPs) using high-capacity fibre-optic backbones.