# Computer Networks Interview Questions: 101 by Topic

> Computer networks interview questions by topic: 101 questions from 25 notes on the OSI model, IP, routing, DNS and DHCP.

Canonical: https://devsunite.com/resources/core-subjects/computer-networks
Last updated: 2026-11-22

How data actually moves across the internet, from physical cabling up through DNS, routing, and application protocols.

25 topics across 5 categories, 101 interview questions

## Top 10 Computer Networks interview questions with answers

1. **Name the 7 layers of the OSI model in order.** Physical, Data Link, Network, Transport, Session, Presentation, Application (bottom to top). [The OSI Model](https://devsunite.com/resources/core-subjects/computer-networks/osi-model)
2. **How many layers does the TCP/IP model have, and what are they?** Four: Network Access, Internet, Transport, and Application. [The TCP/IP Model](https://devsunite.com/resources/core-subjects/computer-networks/tcp-ip-model)
3. **Walk me through what happens between typing a URL and the page loading.** DNS resolution is almost always the first thing expected in this answer, before TCP handshake, before HTTP request/response. [DNS (Domain Name System)](https://devsunite.com/resources/core-subjects/computer-networks/dns)
4. **What's the actual difference between HTTP and HTTPS?** HTTPS is HTTP running over TLS encryption; the protocol and data format are the same, but HTTPS encrypts the traffic so it can't be read or modified in transit. [HTTP vs HTTPS](https://devsunite.com/resources/core-subjects/computer-networks/http-vs-https)
5. **What's the difference between a hub and a switch?** A hub blindly broadcasts incoming data to every port; a switch learns which device is on which port and forwards data only to the intended recipient. [Networking Devices (Hub, Switch, Router, Gateway)](https://devsunite.com/resources/core-subjects/computer-networks/networking-devices)
6. **Why was IPv6 created?** IPv4's 32-bit address space (about 4.3 billion addresses) has been exhausted by the sheer number of internet-connected devices; IPv6's 128-bit addresses provide a vastly larger supply. [IPv4 vs IPv6 Addressing](https://devsunite.com/resources/core-subjects/computer-networks/ipv4-vs-ipv6-addressing)
7. **What does the /24 in 192.168.1.0/24 mean?** The first 24 bits of the 32-bit address are fixed as the network portion, leaving 8 bits for host addresses within that subnet (256 total addresses, 254 usable). [Subnetting, Supernetting, and CIDR](https://devsunite.com/resources/core-subjects/computer-networks/subnetting-supernetting-cidr)
8. **What problem does NAT solve?** It lets many devices on a private network share a single public IP address, dramatically reducing the number of public IPv4 addresses needed. [NAT (Network Address Translation)](https://devsunite.com/resources/core-subjects/computer-networks/nat)
9. **What problem does ARP solve?** It resolves a known IP address to the corresponding MAC address on a local network, since actual data delivery locally happens using MAC addresses, not IP addresses directly. [ARP Protocol](https://devsunite.com/resources/core-subjects/computer-networks/arp-protocol)
10. **What problem does DHCP solve?** Automatically assigning IP addresses and network configuration to devices, instead of requiring manual configuration on every device that joins a network. [DHCP (Dynamic Host Configuration Protocol)](https://devsunite.com/resources/core-subjects/computer-networks/dhcp)

## Application Layer

- [DNS (Domain Name System)](https://devsunite.com/resources/core-subjects/computer-networks/dns) - DNS translates human-readable domain names like devsunite.com into the IP addresses computers actually use to find each other on the network.
- [HTTP vs HTTPS](https://devsunite.com/resources/core-subjects/computer-networks/http-vs-https) - HTTP sends data in plain text between browser and server; HTTPS wraps that same traffic in TLS encryption so it can't be read or tampered with in transit.
- [DHCP (Dynamic Host Configuration Protocol)](https://devsunite.com/resources/core-subjects/computer-networks/dhcp) - DHCP automatically assigns IP addresses and network configuration to devices when they join a network, instead of requiring someone to configure each device by hand.

## Basics

- [What Is Computer Networking?](https://devsunite.com/resources/core-subjects/computer-networks/what-is-computer-networking) - Computer networking is the practice of connecting computers together so they can share data, resources, and services with each other.
- [Important Computer Networking Terms](https://devsunite.com/resources/core-subjects/computer-networks/important-terms) - A quick-reference glossary of the networking terms that come up constantly in interviews and documentation: bandwidth, latency, protocol, packet, node, and more.
- [Types of Networks (LAN, WAN, MAN, PAN)](https://devsunite.com/resources/core-subjects/computer-networks/types-of-networks) - Networks are classified by the physical area they cover, from a PAN connecting a phone to a smartwatch, up through a WAN spanning entire countries.
- [Network Topologies (Star, Bus, Ring, Mesh)](https://devsunite.com/resources/core-subjects/computer-networks/network-topologies) - A network topology is the physical or logical layout describing how devices in a network are connected to each other, and each layout has real tradeoffs in cost, reliability, and fault tolerance.
- [Web vs Internet](https://devsunite.com/resources/core-subjects/computer-networks/web-vs-internet) - The internet is the global physical and logical network infrastructure; the web is just one application that runs on top of it, made of linked pages accessed over HTTP.
- [Networking Devices (Hub, Switch, Router, Gateway)](https://devsunite.com/resources/core-subjects/computer-networks/networking-devices) - Hubs, switches, routers, and gateways each move data around a network, but at different levels of intelligence, from a hub blindly broadcasting everything to a gateway translating between entirely different networks.

## Network Layer

- [IPv4 vs IPv6 Addressing](https://devsunite.com/resources/core-subjects/computer-networks/ipv4-vs-ipv6-addressing) - IPv4 uses 32-bit addresses and is running out of room for the modern internet; IPv6 uses 128-bit addresses specifically to provide a practically unlimited supply.
- [Subnetting, Supernetting, and CIDR](https://devsunite.com/resources/core-subjects/computer-networks/subnetting-supernetting-cidr) - Subnetting splits one network into smaller ones, supernetting combines several into one larger block, and CIDR notation is the shorthand used to describe both.
- [Routing Algorithms (Distance Vector, Link State)](https://devsunite.com/resources/core-subjects/computer-networks/routing-algorithms) - Routing algorithms are the methods routers use to decide the best path for forwarding a packet, with distance vector and link state being the two foundational approaches.
- [Routing Protocols (RIP, OSPF, BGP)](https://devsunite.com/resources/core-subjects/computer-networks/routing-protocols) - RIP, OSPF, and BGP are real routing protocols that decide how packets find their way across networks, ranging from small internal networks up to the entire internet.
- [IP Protocol Concepts (ARP, RARP, ICMP, IGMP)](https://devsunite.com/resources/core-subjects/computer-networks/ip-protocol-concepts) - ARP, RARP, ICMP, and IGMP are supporting protocols that work alongside IP to resolve addresses, report errors, and manage group communication.
- [NAT (Network Address Translation)](https://devsunite.com/resources/core-subjects/computer-networks/nat) - NAT lets many devices on a private network share a single public IP address by rewriting address information in packets as they cross the network boundary.
- [How the Internet Actually Works](https://devsunite.com/resources/core-subjects/computer-networks/how-the-internet-works) - The internet is a network of independently operated networks, connected through agreed-upon protocols and physical infrastructure, with no single company or government owning or controlling the whole thing.

## OSI Models

- [The OSI Model](https://devsunite.com/resources/core-subjects/computer-networks/osi-model) - The OSI model is a 7-layer conceptual framework describing how network communication is broken into distinct responsibilities, from physical cabling up to the application itself.
- [The TCP/IP Model](https://devsunite.com/resources/core-subjects/computer-networks/tcp-ip-model) - The TCP/IP model is the simpler, 4-layer framework that real-world networks actually run on, condensing OSI's 7 layers into Application, Transport, Internet, and Network Access.
- [IPv4 Addressing (Classes, Subnet Masks)](https://devsunite.com/resources/core-subjects/computer-networks/ipv4-addressing) - IPv4 addressing organizes 32-bit addresses into classes and uses subnet masks to divide each address into a network portion and a host portion.
- [Network Protocols Overview](https://devsunite.com/resources/core-subjects/computer-networks/network-protocols) - A network protocol is an agreed-upon set of rules governing how devices format, transmit, and interpret data, and different protocols exist to handle different jobs at different layers.
- [ARP Protocol](https://devsunite.com/resources/core-subjects/computer-networks/arp-protocol) - ARP resolves a known IP address to its corresponding MAC address on a local network, since actual data delivery on a local network happens using physical hardware addresses.
- [ICMP Protocol](https://devsunite.com/resources/core-subjects/computer-networks/icmp-protocol) - ICMP reports errors and diagnostic information about IP packet delivery, and directly powers the ping and traceroute tools used to test network reachability.

## Physical Layer

- [Transmission Media (Guided and Unguided)](https://devsunite.com/resources/core-subjects/computer-networks/transmission-media) - Transmission media is the actual physical pathway data travels through, split into guided media like cables and unguided media like radio waves through open air.
- [Throughput, Bandwidth, and Latency](https://devsunite.com/resources/core-subjects/computer-networks/throughput-bandwidth-latency) - Bandwidth is the theoretical maximum capacity of a connection, throughput is what actually gets achieved in practice, and latency is the delay before data starts arriving at all.
- [Modulation and Multiplexing](https://devsunite.com/resources/core-subjects/computer-networks/modulation-and-multiplexing) - Modulation encodes digital data onto a physical signal for transmission, and multiplexing lets multiple signals share one physical transmission medium simultaneously.

## All 101 Computer Networks interview questions

### Application Layer

- [DNS (Domain Name System)](https://devsunite.com/resources/core-subjects/computer-networks/dns)

1. Walk me through what happens between typing a URL and the page loading.
2. What's the difference between a recursive resolver and an authoritative name server?
3. What is a TTL and why does it matter?
4. What DNS record types do you know?
5. What is DNS cache poisoning, and how does DNSSEC help?

- [HTTP vs HTTPS](https://devsunite.com/resources/core-subjects/computer-networks/http-vs-https)

1. What's the actual difference between HTTP and HTTPS?
2. Walk me through what a TLS handshake does.
3. Why does TLS use both asymmetric and symmetric encryption?
4. What does a certificate actually prove?

- [DHCP (Dynamic Host Configuration Protocol)](https://devsunite.com/resources/core-subjects/computer-networks/dhcp)

1. What problem does DHCP solve?
2. Walk me through the DHCP process.
3. Why is the Request step broadcast instead of sent directly to the chosen server?
4. What happens when a DHCP lease expires without renewal?

### Basics

- [What Is Computer Networking?](https://devsunite.com/resources/core-subjects/computer-networks/what-is-computer-networking)

1. What is a computer network, in one sentence?
2. Why do networks use packets instead of sending data as one continuous stream?
3. What's the difference between a protocol and a network?
4. Give an example of why networking matters in practice.

- [Important Computer Networking Terms](https://devsunite.com/resources/core-subjects/computer-networks/important-terms)

1. What's the difference between bandwidth and throughput?
2. What's the difference between latency and bandwidth?
3. What is a protocol, and can you name a few?
4. What's the difference between a router and a switch?

- [Types of Networks (LAN, WAN, MAN, PAN)](https://devsunite.com/resources/core-subjects/computer-networks/types-of-networks)

1. What's the difference between a LAN and a WAN?
2. Where does a MAN fit in?
3. Give an example of a PAN.
4. Is the internet a WAN?

- [Network Topologies (Star, Bus, Ring, Mesh)](https://devsunite.com/resources/core-subjects/computer-networks/network-topologies)

1. What's the most common topology used in real networks today, and why?
2. What's the main weakness of a bus topology?
3. Why would someone choose a mesh topology despite the extra cost?
4. How does a ring topology handle a broken connection?

- [Web vs Internet](https://devsunite.com/resources/core-subjects/computer-networks/web-vs-internet)

1. What's the actual difference between the web and the internet?
2. Give an example of something that uses the internet but isn't part of the web.
3. Did the internet or the web come first?
4. If a browser can't load any website, is the internet down or the web down?

- [Networking Devices (Hub, Switch, Router, Gateway)](https://devsunite.com/resources/core-subjects/computer-networks/networking-devices)

1. What's the difference between a hub and a switch?
2. What's the difference between a switch and a router?
3. What does a gateway do?
4. Why did hubs mostly disappear from real networks?

### Network Layer

- [IPv4 vs IPv6 Addressing](https://devsunite.com/resources/core-subjects/computer-networks/ipv4-vs-ipv6-addressing)

1. Why was IPv6 created?
2. Are IPv4 and IPv6 directly compatible?
3. How has IPv4 lasted this long despite address exhaustion?
4. What does the double-colon mean in an IPv6 address?

- [Subnetting, Supernetting, and CIDR](https://devsunite.com/resources/core-subjects/computer-networks/subnetting-supernetting-cidr)

1. What does the `/24` in `192.168.1.0/24` mean?
2. How would you split a `/24` network into 4 equal subnets?
3. What's the difference between subnetting and supernetting?
4. Why did CIDR replace the old class-based addressing system?

- [Routing Algorithms (Distance Vector, Link State)](https://devsunite.com/resources/core-subjects/computer-networks/routing-algorithms)

1. What's the difference between distance vector and link state routing?
2. What is the count-to-infinity problem?
3. Why does link state routing generally converge faster after a topology change?
4. Name a real protocol using each approach.

- [Routing Protocols (RIP, OSPF, BGP)](https://devsunite.com/resources/core-subjects/computer-networks/routing-protocols)

1. What kind of protocol is RIP, and what's its main limitation?
2. Why is OSPF preferred over RIP in most modern networks?
3. What makes BGP different from OSPF?
4. Why can a BGP misconfiguration cause a real internet outage?

- [IP Protocol Concepts (ARP, RARP, ICMP, IGMP)](https://devsunite.com/resources/core-subjects/computer-networks/ip-protocol-concepts)

1. What does ARP actually do?
2. How does the `ping` command actually work?
3. Why might a real, online server not respond to ping?
4. What replaced RARP in modern networks?

- [NAT (Network Address Translation)](https://devsunite.com/resources/core-subjects/computer-networks/nat)

1. What problem does NAT solve?
2. Walk me through how NAT actually works.
3. Why is NAT considered a reason IPv4 hasn't been fully replaced by IPv6 yet?
4. Does NAT provide security?

- [How the Internet Actually Works](https://devsunite.com/resources/core-subjects/computer-networks/how-the-internet-works)

1. Is the internet owned by one company or government?
2. What is an autonomous system?
3. Walk me through what happens when you load a website, at a high level.
4. Why is the internet considered resilient to individual failures?

### OSI Models

- [The OSI Model](https://devsunite.com/resources/core-subjects/computer-networks/osi-model)

1. Name the 7 layers of the OSI model in order.
2. Which layer do IP addresses belong to? Which layer do MAC addresses belong to?
3. What does encapsulation mean in the context of the OSI model?
4. Is the OSI model actually used in real networks?

- [The TCP/IP Model](https://devsunite.com/resources/core-subjects/computer-networks/tcp-ip-model)

1. How many layers does the TCP/IP model have, and what are they?
2. How does the TCP/IP model relate to the OSI model?
3. What's the core difference between TCP and UDP?
4. Would you use TCP or UDP for a live video call, and why?

- [IPv4 Addressing (Classes, Subnet Masks)](https://devsunite.com/resources/core-subjects/computer-networks/ipv4-addressing)

1. What does a subnet mask actually do?
2. Why is the class-based addressing system considered outdated?
3. Why does a /24 network have 254 usable addresses instead of 256?
4. Give an example of a private IP address range.

- [Network Protocols Overview](https://devsunite.com/resources/core-subjects/computer-networks/network-protocols)

1. What is a network protocol, in one sentence?
2. Why are network protocols layered instead of being one big protocol?
3. Name a protocol responsible for naming, and one responsible for reliable delivery.
4. How would you start diagnosing 'the website won't load'?

- [ARP Protocol](https://devsunite.com/resources/core-subjects/computer-networks/arp-protocol)

1. What problem does ARP solve?
2. Walk me through the ARP request/reply process.
3. What is ARP spoofing, and why is it possible?
4. How would you check a device's current ARP cache?

- [ICMP Protocol](https://devsunite.com/resources/core-subjects/computer-networks/icmp-protocol)

1. What does ICMP actually do?
2. How does ping use ICMP?
3. How does traceroute discover each router along a path?
4. Why might a server not respond to ping even though it's actually online?

### Physical Layer

- [Transmission Media (Guided and Unguided)](https://devsunite.com/resources/core-subjects/computer-networks/transmission-media)

1. What's the difference between guided and unguided media?
2. Why is fiber optic cable preferred for long-distance, high-bandwidth connections?
3. What's the tradeoff of using radio waves (like WiFi) instead of a cable?
4. Give a real-world example of where each transmission medium type is used.

- [Throughput, Bandwidth, and Latency](https://devsunite.com/resources/core-subjects/computer-networks/throughput-bandwidth-latency)

1. What's the difference between bandwidth and throughput?
2. Can a connection have high bandwidth and high latency at the same time?
3. Why might real-world throughput be lower than a connection's rated bandwidth?
4. Why do gamers care more about latency than bandwidth?

- [Modulation and Multiplexing](https://devsunite.com/resources/core-subjects/computer-networks/modulation-and-multiplexing)

1. What does modulation actually do?
2. What problem does multiplexing solve?
3. What's the difference between frequency division and time division multiplexing?
4. What multiplexing technique is used in fiber optics, and why?

## Frequently asked questions

### Where do these computer networks interview questions come from?

Each of the 101 questions comes from the "What interviewers actually ask" section of one of 25 Computer Networks topic notes. Every question links to its topic page, where it is answered next to the explanation it tests.

### What does the Computer Networks section cover?

25 topics across 5 categories: How data actually moves across the internet, from physical cabling up through DNS, routing, and application protocols.

### Is it free to read?

Yes. Every article is free to read with no account required. Creating a free DevsUnite account lets you mark topics as read and track your progress across every Core Subjects article.

## Related

- [Operating Systems](https://devsunite.com/resources/core-subjects/operating-systems)
- [DBMS](https://devsunite.com/resources/core-subjects/dbms)
- [OOP](https://devsunite.com/resources/core-subjects/oop)
- [Core Subjects](https://devsunite.com/resources/core-subjects)
