When you open a train timetable in Leeds, how does your request reach the server?
You tap a link to check when the next train leaves Leeds. Your browser knows what page to ask for, but how does that request get from your laptop to the server? Follow the request and watch which jobs get handed off along the way.
You already know your browser can ask for a web page using HTTPS. For that to work, the browser and server have to agree on the format of the messages they exchange and what those messages mean. That shared set of rules is a protocol.
Your browser uses HTTP to request web pages. HTTPS uses encryption to protect the exchange. FTP transfers files. For email, SMTP sends messages, and IMAP lets you access messages stored on a mail server. All five belong at the application layer.
Your mail app uses IMAP to open a message stored on a server. Which layer does IMAP belong to? Pick the layer that defines the rules for that mail service.
Once your request is ready, the transport layer carries data between applications on the sending and receiving hosts. TCP can split data into segments, resend missing data and deliver it in order. UDP sends independent messages without guaranteeing delivery or order.
IP packages data and adds source and destination IP addresses. Routers use the destination address to choose the next hop. At the link layer, wired Ethernet or wireless Wi-Fi carries packets in frames. Local addresses identify devices on that link. Your network interface card, or NIC, and its driver send and receive frames.
Your browser makes an HTTPS request over TCP. TCP carries the request data. IP packages it and adds the server’s address. Wi-Fi frames carry the packets to your router. Routers forward the packets. At the server, the data goes up through link, internet and transport to the web application.
You open a library website from a computer connected by Ethernet. When your request reaches the library’s server, in what order does the server’s stack handle it? Pick the order from first to last.
A browser uses the Internet, so it might seem natural to put it in the internet layer. Look at what each part actually does. The browser makes a web request using HTTPS at the application layer. IP handles addressing and routing at the internet layer.
If an exam asks you to describe the function of the internet layer and the link layer, make the difference clear. At the internet layer, IP addresses packets so routers can forward them across networks. The link layer carries packets in frames over the current local connection.