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
- Follow a DNS lookup with caching and read an HTTP exchange
- Frame messages on a byte stream with delimiters or length prefixes
- Explain hashes, HMAC, certificate chains and TLS
Lessons
- 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
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
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
- Name that status codeEasy
- Parse an HTTP requestMedium
- DNS lookups with caching and aliasesHard
- Characters and bytesEasy
- Cut a stream into linesMedium
- Cut a stream by length prefixHard
- Is the download intact?Easy
- Verify message tags with HMACMedium
- Validate a certificate chainHard
Module quiz
‹ Transport: TCP, reliability and congestionFinal assessment ›