Applications, sockets and security

How DNS and HTTP work, how programs frame messages on a TCP byte stream, and how hashes, certificates and TLS protect a connection.

About 6 hours of study

Learning objectives

Lessons

  1. 1

    DNS and HTTP: the application layer

    How a name like example.com becomes an address, and what a browser and a web server actually say to each other.

  2. 2

    Sockets and framing: messages on a byte stream

    How programs talk through sockets: TCP is a stream of bytes with no message boundaries, so programs add their own framing with delimiters or length prefixes.

  3. 3

    Network security basics: hashes, keys and TLS Intermediate

    How networks stay safe: hashes and HMAC detect tampering, public-key certificates prove who a server is, and TLS combines them to protect HTTPS.

Module practice

Module quiz

1. Which DNS record maps a name to an IPv6 address?
2. Which HTTP method is normally used to read a page?
3. A client sends two messages with two send calls. How many recv calls will the server need?
4. Why is a length prefix counted in bytes, not characters?
5. What does an HMAC prove that a plain hash does not?
6. A browser checks a certificate chain. Which failure should make it refuse the site?

‹ Transport: TCP, reliability and congestionFinal assessment ›