Learn Computer Networks
Networking questions turn up in exams, vivas and web-developer interviews. These quizzes cover TCP and UDP, DNS, HTTP, the layered model, subnetting and TLS.
What you will practise
- TCP versus UDP
- DNS and HTTP basics
- The layered model and IP addressing
- What HTTPS does and does not protect
Computer Networks lesson
A short introduction to the ideas behind the quizzes, before you start practising.
Every web page load is a chain of small network steps: look up the address, open a connection, send a request, receive a response. Knowing the roles of DNS, TCP, HTTP and TLS explains most networking questions.
Key concepts
DNS turns names into addresses
Your browser asks DNS to translate a name like example.com into an IP address before it can connect. Answers are cached to avoid repeating the lookup.
TCP versus UDP
TCP opens a connection with a three-way handshake (SYN, SYN-ACK, ACK) and guarantees ordered, reliable delivery. UDP sends independent datagrams with no guarantee, trading reliability for low latency.
HTTP and status codes
HTTP is the request/response protocol of the web. The status code tells you the outcome: 200 success, 301 permanent redirect, 404 not found, 500 server error.
GET /index.html HTTP/1.1
Host: example.com
HTTP/1.1 200 OKTLS and HTTPS
TLS encrypts traffic between browser and server and verifies the server’s identity with a certificate. It protects data in transit; it does not make a website trustworthy or hide which server you contacted.
Common mistakes
- Saying UDP is "bad" instead of explaining when its low overhead is the right choice.
- Mixing up which layer IP, TCP and HTTP belong to (network, transport and application).
- Forgetting that a /24 network has 254 usable hosts, not 256.
- Believing HTTPS means a site is safe from malware or scams.
Quick recap
- DNS maps names to IP addresses.
- TCP is reliable and ordered; UDP is fast and unguaranteed.
- IP is the network layer; TCP/UDP are the transport layer; HTTP is the application layer.
- HTTPS = HTTP over TLS: encryption plus server authentication.
Ready to test this? Take the Computer Networks Fundamentals quiz →
Roadmap
Work through the levels in order, or jump to where you are.
Basic
The basics of a web request
- TCP vs UDP
- DNS
- HTTP status codes
- The OSI layers
Intermediate
Addressing and security
- Subnetting
- TLS
- TCP handshake
Quiz for this level coming soon.
Computer Networks quizzes
FAQ
Is this the same as the OSI model theory in my course?
It covers the parts of the OSI and TCP/IP models that come up most often, with practical examples rather than memorised lists.
Will this help with web development interviews?
Yes. DNS, HTTP, TCP and TLS are common interview topics for web and backend roles.