Interview Q&A / Computer Networks
Computer Networks interview questions
What happens when you open a website, TCP vs UDP, DNS and HTTP.
Prefer rapid revision? Practise Computer Networks short interview answers →
- How do you check whether two IP addresses are in the same subnet?
Apply the subnet mask to both addresses (bitwise AND). If the network addresses match, they are in the same subnet and can talk directly. If not, traffic must go via the default gateway.
BeginnerQuick answer1 min read - What is MTU, and what happens when a packet is bigger than it?
MTU is the largest packet a link can carry; Ethernet's is usually 1500 bytes. IPv4 routers may split a bigger packet into fragments, or drop it and send an ICMP message if the Don't Fragment bit is set. IPv6 routers never fragment.
IntermediateQuick answer1 min read