ECM 1413 The Application Layer Flashcards
What does the application layer represent?
The Application Layer represents the Human Interface to the Network (Covers HTTP, DHCP, DNS, SMTP, FTP, SSH)
The 2 network models
- Client-server
- Peer-to-Peer Model
Client-server model
- Client requests a service
- Server offers a service
- Centralized Administration
Peer-to-Peer Model
- A device to act as both a client and a server within the same communication session
- No need for a centralized server
- Example: BitTorrent
The Hypertext Transfer Protocol (HTTP)
- WWW is a massive collection of intrelinked documents and resources
- HTTP facilitates the transfer of these resources (e.g. HTML files)
HTTP Request
Format:
Method Path Version
Request Headers provide information about the request context
HTTP Response
Format:
Version Status-code Status-message
HTTP Request methods
GET: Retrieves data
POST: Submits data
DELETE: Deletes data
HTTP Response status codes and messages
200: OK
301: Moved Permanently
404: Not Found
HTTPS
Ensures the identity of the server
Encrypts transmitted data
HTTP versions
HTTP/1.1 -> 1997
HTTP/2 -> 2015
HTTP/3 -> 2022
HTTP/2
enables efficient use of network resources to reduce latency:
- Header field compression
- Multiplexing - multiple concurrent exchanges on the same connection
HTTP/3:
- QUIC instead of TCP
- Built-in Secure Communication
Web server software examples
Apache, Nginx
Dynamic Host Configuration Protocol
DHCP automates the assignment of IP address, subnet mask, default gateway, and DNS server
Telnet and SSH
Remote access protocols
Telnet transfers data as plain text