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 →
- Given 192.168.10.77/27, find the network address, broadcast address and host range.
A /27 has blocks of 32 addresses. 77 falls in the block starting at 64, so network is 192.168.10.64, broadcast is 192.168.10.95, and usable hosts are .65 to .94 (30 hosts).
BeginnerQuick answer1 min read - 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 - How do you divide 192.168.1.0/24 into four equal subnets?
Borrow 2 host bits (2^2 = 4 subnets) to get /26. The subnets are 192.168.1.0/26, .64/26, .128/26 and .192/26, each with 64 addresses and 62 usable hosts.
BeginnerQuick answer1 min read - How many usable hosts are in a /26 subnet, and what is the general formula?
A /26 leaves 6 host bits, so 2^6 = 64 addresses, of which 62 are usable because the first is the network address and the last is the broadcast address. The formula is 2^(32 - prefix) minus 2.
BeginnerQuick answer1 min read