Your mate gets every letter of your message. Why are they still waiting?
You send a message to your mate in Manchester. Every letter arrives, but their app keeps waiting and never shows the message. The connection is working. What else do the two apps need to agree on?
You’ve seen how a central switch connects computers in a wired star. Follow one path through it. Data leaves your computer, passes through the switch and reaches another computer. How does the receiving app know when your message is complete?
Your app sends ‘hi’ and uses an exclamation mark to end it. The receiver expects a hash, so it keeps waiting. On a fresh attempt, both apps agree to use a hash. Now the receiver displays ‘hi’. A protocol is a set of rules governing communication.
The sender uses a full stop to mark the end and sends ‘OK’ followed by a full stop. The receiver still expects a hash. All the characters arrive. Pick what the receiver does.
Your browser uses HTTP to request web resources, and the server uses it to respond. HTTPS protects that exchange with encryption. FTP lets you upload and download files. For email, SMTP sends messages, while IMAP lets you access messages stored on the mail server.
Application rules cover web, files and email. Transport uses TCP or UDP to carry data between programs. At the internet layer, routers use IP addresses to forward packets between networks. The link layer carries frames locally. Ethernet uses cables and switches. Wi-Fi uses radio waves and often an access point. Both use network interfaces.
Back to our made-up app protocol. Both apps agree that a hash ends each message. The sender puts a hash after twenty-four, then another after seven. As the hashes arrive, the receiver reads out twenty-four, then seven. Each hash marks the boundary and stays out of the displayed message.
Use the same rule again. This time the receiver gets five, hash, eight, one, hash. A hash ends each message and isn’t part of it. Pick the pair the app will display, in order.
You might expect every transport protocol to resend lost data. TCP resends missing data and delivers it in order, which matters for a file download. UDP doesn’t resend missing data or guarantee delivery or order. For a live voice chat, you might prefer to keep playing rather than wait for missing audio.
If an AQA question asks you to explain why devices need to use the same protocol, give a rule and say what it makes possible. For example, if both apps use the same end marker, the receiver can tell where one message finishes and the next begins.