On a live call, would you rather miss a syllable or wait for it to catch up?
You're on a live call and one syllable turns up after the speaker has moved on. Would you stop the call to hear it? Now picture downloading a file with a bit missing. Would you be as happy to skip that?
A protocol is a set of rules for communication. The application layer supports services like the web. Transport moves data between apps on two hosts. At the internet layer, routers use IP addresses to forward packets. For local transfers, Ethernet typically uses cables, Wi-Fi uses radio waves, and network cards and switches operate at this layer.
Watch chunk one arrive, then chunk three. Chunk two went missing, so three waits. The sender resends two, and the app gets the chunks in order: one, two, three. These are the rules TCP uses to give the app reliable, ordered delivery.
You're downloading a file. Chunk four reaches the receiving host before chunk three. Think about the order in which TCP can pass those chunks to the app. Pick the option that keeps the file in order.
On a live call, the app plays the first bit of sound. The next bit misses its playback slot, so the app moves on and can drop it when it arrives. UDP keeps overhead low: it doesn't acknowledge delivery, automatically resend missing data or put data back in order.
Chunk one arrives at twenty milliseconds, three at forty, and two at ninety. For a file, TCP can hold three until two arrives, so the app gets them in order. On a call, chunk two was due at sixty milliseconds. Ninety minus sixty is thirty milliseconds late, so the app can skip it.
Now chunk two is due to play at fifty milliseconds, but it arrives at seventy. The call uses UDP. Pick the option that gives the right delay and describes what the audio app can do.
TCP uses acknowledgements to confirm receipt and can resend data that hasn't been acknowledged. Now look at UDP: it doesn't send delivery acknowledgements or resend missing data. If an app using UDP adds its own resends, those are the app's rules.
At the application layer, the rules depend on the service. HTTP transfers web resources such as pages. HTTPS secures HTTP traffic with encryption. FTP transfers files. For email, SMTP sends messages, and IMAP lets you read and manage messages stored on the mail server.