Interview Q&A / Computer Networks

INTERVIEW Q&A · 55 QUESTIONS

Computer Networks interview questions

What happens when you open a website, TCP vs UDP, DNS and HTTP.

  1. 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
  2. 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