Introduction
Every time you open a website, send an email, or connect a new laptop to office Wi-Fi, a set of application layer protocols quietly does the work. The application layer is the topmost layer of both the OSI model (Layer 7) and the TCP/IP model. It is the layer that programs and users interact with directly; it does not move bits across wires itself — it hands its data to the transport layer (TCP or UDP) below.
For BCS, Bank IT, and IT-officer exams, four protocols come up again and again: HTTP (the web), DNS (name-to-address lookup), DHCP (automatic IP configuration), and FTP (file transfer). Questions typically test port numbers, the transport protocol used (TCP vs UDP), the exact message-exchange sequence (like DHCP's DORA), record types, status codes, and active-vs-passive behaviour. This lesson builds each protocol from first principles so you can answer both factual one-liners and scenario/reasoning questions.
Learning Objectives
- Explain what the application layer does and how it relates to the transport layer.
- State the port number and transport protocol (TCP/UDP) for HTTP, HTTPS, DNS, DHCP, and FTP.
- Describe the HTTP request/response model, common methods, and status-code classes.
- Trace a full DNS resolution (recursive + iterative) and identify DNS record types.
- Reproduce the DHCP DORA handshake and explain leases.
- Distinguish FTP active vs passive mode and the roles of the control and data connections.
- Compare all four protocols in a single table and avoid the classic exam traps.