Computer Networks
Application layer: HTTP, DNS, DHCP and TLS
What happens when you open a page, and which protocol does which job.
In two minutes
One idea to a line
DNS turns a name into an IP address, normally over UDP port 53 (TCP for large replies and zone transfers). Answers are cached for the record's TTL.
DHCP gives a host an IP address, mask, gateway and DNS server, in four steps: discover, offer, request, acknowledge.
HTTP is stateless; cookies add state. GET should not change data and is safe to repeat; POST is not.
HTTPS is HTTP over TLS. TLS authenticates the server with a certificate and then uses a shared key for fast encryption.
Well-known ports: HTTP 80, HTTPS 443, SSH 22, SMTP 25, DNS 53, FTP control 21.
Slips people make here
Interviewers know them too
Saying HTTP keeps a session by itself.
Putting DHCP on TCP: it uses UDP ports 67 and 68.
Thinking TLS encrypts everything with the certificate's public key: it only sets up a shared key.
Your practice here
Not started
10 written questions, and 1 kind of calculation that change every time
No answers yet