Skip to topic
    ← Back to course topics

    Standard application layer protocols — AQA A-Level Computer Science

    Standard application layer protocols provide the agreed rules and interfaces enabling user-level software applications to exchange data across network architectures. In AQA A-Level Computer Science, this encompasses protocols such as HTTP, HTTPS, FTP, SSH, and email protocols including SMTP, POP3, and IMAP.

    Standard application layer protocols explained

    This statement is an introduction to a list of named application layer protocols that you must know.

    Read the full explanation

    Being familiar with a protocol means you can state its purpose, identify the kind of data or service it supports, and explain where it sits within the wider network stack. Application layer protocols define the rules that software on two hosts follows so that they can exchange meaningful data, such as a web page, an email or a file. Familiarity therefore requires you to link each protocol to a real task, for example recognising that a web browser uses HTTP to request pages from a server, and that a mail client uses SMTP to send messages. Your revision should treat the statement as a prompt to learn the specific protocols that follow it, understanding what each one does, the port or service it is associated with, and how it differs from related protocols.

    Your focus

    1. Be familiar with the following protocols:

    Which command word is this?

    Set out the technical mechanism or sequence of operations with precise technical terminology, showing clear cause and effect.

    Standard application layer protocols exam tips

    Topic Overview

    Application layer protocols sit at the top of the TCP/IP stack, abstracting lower-level network routing and transmission mechanics into standardised communication formats for software applications. They define the syntax, semantics, and synchronisation of messages exchanged between communicating client and server endpoints.

    Mastery of these protocols is critical for A-Level Computer Science, as it connects theoretical networking models (such as client-server architectures and packet encapsulation) with real-world digital applications including the World Wide Web, file distribution networks, and enterprise messaging systems.

    Key Concepts
    • →Application layer role: Formulates and parses raw payload data exchanged directly by user applications, sitting above transport layer protocols (TCP/UDP).
    • →Web protocols: HTTP (Hypertext Transfer Protocol) operates statelessly over TCP port 80; HTTPS encapsulates HTTP within TLS/SSL encryption over TCP port 443.
    • →File management protocols: FTP (File Transfer Protocol) uses distinct command (port 21) and data (port 20) channels; SSH (Secure Shell) provides encrypted command-line management and SFTP transfers via port 22.
    • →Email distribution architecture: SMTP (Simple Mail Transfer Protocol) pushes email from sender to server and server to server; POP3 downloads and deletes mail locally; IMAP synchronises mail headers and server state across multiple clients.
    Marking Points
    • Identifies the protocols in the list that follows the statement as application layer protocols
    • Explains that familiarity means understanding the purpose and typical use of each protocol
    • Links each protocol to a practical task such as web browsing, email or file transfer
    • Places application layer protocols within the TCP/IP model as the layer closest to the user
    Examiner Tips
    • 💡Revise each protocol in the list that follows by stating what it is used for in one sentence.
    • 💡Practise linking a protocol to a scenario, such as explaining which protocol a browser uses to download a page.
    • 💡Keep application layer protocols distinct from transport layer protocols when answering questions.
    • 💡Explicitly state the exact role of the protocol (push vs pull, client-to-server vs server-to-server) and reference specific port numbers (e.g., HTTP: 80, HTTPS: 443, SSH: 22, SMTP: 25/587) to earn precision marks.
    • 💡When comparing protocols like POP3 and IMAP, structure your answer around message persistence, storage location, and multi-device synchronisation.
    Common Mistakes
    • Treats the statement as a heading with no content to learn; it introduces specific protocols that must be known.
    • Learns protocol names without their purpose, so cannot apply them to a scenario.
    • Confuses application layer protocols with transport layer protocols such as TCP or UDP.
    • Believing SMTP is used to receive emails on an end-user client: SMTP is strictly a push protocol used for sending and relaying emails between servers, whereas POP3 or IMAP pull emails to clients.
    • Confusing SFTP with FTPS: SFTP runs as a subsystem of SSH over a single port (port 22), whereas FTPS is standard FTP wrapped in TLS/SSL requiring multiple open ports for control and data streams.
    • Assuming HTTPS is a completely separate protocol from HTTP: HTTPS is identical to HTTP at the message structure level; it simply runs inside an encrypted cryptographic tunnel established by TLS/SSL.
    Revision Plan
    1. 1Day 1-2: Memorise each protocol name, acronym, standard port number, and underlying transport layer protocol (almost all use TCP).
    2. 2Day 3-4: Diagram the entire lifecycle of an email, labelling where SMTP, IMAP, and POP3 operate between clients and servers.
    3. 3Day 5-6: Compare secure and unsecure protocol pairs (HTTP vs HTTPS, Telnet vs SSH, FTP vs SFTP), focusing on transport layer encryption and authentication.
    4. 4Day 7: Complete past AQA exam questions on protocol selection and 6-mark comparative scenarios under timed conditions.
    Exam Question Types
    • 📋Scenario-based protocol selection: Selecting the most appropriate protocol for a specified task (e.g., automated remote server backup) with detailed justification.
    • 📋Comparative descriptive questions: Contrasting two related protocols, most commonly POP3 vs IMAP or HTTP vs HTTPS.
    • 📋Architecture tracing questions: Outlining the exact sequence of protocols invoked during a multi-step networking task, such as fetching a webpage or sending an email across domains.
    Command Word Expectations (AQA)
    Explain

    Set out the technical mechanism or sequence of operations with precise technical terminology, showing clear cause and effect.

    Compare

    Identify both similarities and differences between two protocols, focusing on underlying mechanisms, security, and operational constraints.

    Justify

    Provide reasoned arguments supporting the selection of a specific protocol over valid alternatives in a given practical context.

    How Students Lose Marks (Examiner Pitfalls)
    Pitfall: Confusing POP3 and IMAP functionality regarding message storage and synchronisation across multiple client devices.
    ❌ Weak Answer (Loses Marks):POP3 and IMAP both download emails from a mail server to your laptop so you can read them.
    Example improved answer:POP3 downloads emails from the mail server to a single local device and typically deletes them from the server, preventing synchronisation across multiple devices. In contrast, IMAP synchronises email headers and contents directly with the mail server, allowing actions such as flagging, folders, and read statuses to persist across multiple client devices concurrently.
    Examiner Tip: Always emphasise where the master copy of the email data resides and how client state changes synchronise with the mail server.
    Pitfall: Failing to explain how SSH provides security advantages over unencrypted remote access protocols like Telnet.
    ❌ Weak Answer (Loses Marks):SSH is better than Telnet because it is newer and safer for logging into servers remotely.
    Example improved answer:SSH (Secure Shell) provides encrypted remote command-line login and secure file transfer via public-key cryptography and symmetrical session encryption, protecting credentials and payload data from eavesdropping and man-in-the-middle attacks. Telnet transmits all data, including plaintext passwords, without encryption.
    Examiner Tip: Name the specific cryptographic principles involved, such as public-key authentication and symmetric payload encryption, rather than just stating 'it is secure'.
    Step-by-Step Worked Solutions

    Question: A corporate organisation requires an automated system to transfer large financial audit reports between distributed data centres securely and automatically. Evaluate whether FTP, SFTP (SSH File Transfer Protocol), or HTTPS is the most suitable protocol for this requirement. [6 marks]

    1. 1.Step 1: Evaluate standard FTP. FTP uses separate control (port 21) and data (port 20) channels. It transmits credentials and payloads in plaintext, creating severe vulnerabilities to packet sniffing on public networks, making it unsuitable for confidential financial records.
    2. 2.Step 2: Evaluate HTTPS. HTTPS operates over TLS/SSL (port 443), encrypting all traffic. While widely supported and secure, it is oriented around stateless request-response web transactions and is less specialised for robust, automated large-file directory synchronisation.
    3. 3.Step 3: Evaluate SFTP. SFTP runs within an SSH tunnel (port 22), providing end-to-end symmetric encryption and public-key automated host/client authentication without human intervention. It natively supports directory listings, resuming interrupted large transfers, and file manipulation.
    4. 4.Step 4: Reach a justified conclusion. SFTP is the most suitable choice because it combines automated cryptographic key authentication with native, robust large-file management features designed specifically for automated server-to-server operations.
    Final Answer: SFTP is the most suitable protocol because it provides strong cryptographic protection for sensitive financial payloads using SSH keys for unattended automated authentication, alongside purpose-built commands for reliable large-file batch transfers.

    Question: Explain the sequence of protocol interactions that occur at the application layer when a user composes an email on an external client, sends it to a colleague in another domain, and the colleague retrieves it on their mobile phone. [6 marks]

    1. 1.Step 1: Identify outbound client transmission. The sender's email client uses SMTP (Simple Mail Transfer Protocol) over port 587 or 25 to transmit the composed message to their domain's outgoing mail transfer agent (MTA).
    2. 2.Step 2: Identify server-to-server routing. The sender's MTA resolves the recipient domain's Mail Exchange (MX) DNS records and uses SMTP to relay the message across the internet to the recipient's mail server.
    3. 3.Step 3: Identify incoming message storage. The recipient's mail server accepts the message via SMTP and delivers it to the recipient's mailbox storage.
    4. 4.Step 4: Identify client retrieval. The recipient's mobile email client connects to the mailbox server using IMAP (Internet Message Access Protocol) over port 993 (or POP3), authenticates, downloads message headers, and synchronises folder state.
    Final Answer: SMTP is used exclusively for message submission from client to server and relay between mail servers; IMAP (or POP3) is used by the recipient's client to access, view, and synchronise the stored message from the destination mail server.
    Active Recall Memory Test
    Which application layer protocol is used to relay email between two mail servers across the internet?
    Key Fact: SMTP (Simple Mail Transfer Protocol).
    What are the default transport layer ports used by HTTP, HTTPS, and SSH respectively?
    Key Fact: HTTP uses port 80, HTTPS uses port 443, and SSH uses port 22.
    Why is IMAP generally preferred over POP3 for modern mobile email access?
    Key Fact: IMAP keeps messages on the server and synchronises state (read, unread, folders) across multiple client devices concurrently.
    What separates FTP from SFTP in terms of network architecture and security?
    Key Fact: FTP uses separate unencrypted command and data ports (21 and 20), whereas SFTP operates entirely within an encrypted SSH tunnel over a single port (22).
    Frequently Asked Questions
    Why does an email system need both SMTP and IMAP instead of just one protocol?
    SMTP is strictly a 'push' protocol designed to transmit messages from a client to a server or relay messages between intermediate servers until it reaches the destination. However, SMTP lacks commands for authenticating a client to selectively browse, search, or retrieve messages from a remote mailbox. Protocols like IMAP or POP3 are 'pull' protocols specifically engineered with folder navigation and retrieval mechanisms suited for end-user reading.
    What is the difference between FTPS and SFTP?
    Although their names sound almost identical, they are entirely different protocols. FTPS is standard File Transfer Protocol wrapped inside a TLS/SSL cryptographic tunnel, retaining FTP's dual-channel architecture (control and data ports). SFTP (SSH File Transfer Protocol) is an extension of the SSH protocol suite that runs all commands and data transfers over a single secure port (port 22).
    Do all application layer protocols use TCP at the transport layer?
    While the primary protocols on the AQA specification (HTTP, HTTPS, FTP, SSH, SMTP, POP3, IMAP) use TCP because they require reliable, ordered, error-checked data delivery, not all application layer protocols do. For example, DNS (Domain Name System) primarily uses UDP on port 53 for low-latency queries, and real-time streaming protocols like RTP often utilise UDP.
    How does HTTPS encrypt web pages if HTTP is stateless?
    HTTPS works by establishing an encrypted Transport Layer Security (TLS) session over TCP port 443 prior to transmitting any application-level data. During the TLS handshake, the client and server verify digital certificates and establish shared symmetric session keys using asymmetric cryptography. Once this encrypted tunnel is active, regular HTTP request and response headers and bodies are transmitted inside it without modifying the stateless structure of HTTP itself.