Skip to content

Computer Networks Interview Questions for Freshers: The Ones That Keep Coming Back

Computer networks interview questions freshers face: OSI vs TCP/IP, TCP vs UDP, what happens when you type a URL, IP basics, and the protocols and ports to memorize.

4 min read
Illustration of a desk with a laptop, a small router with antennae and coiled network cables, representing computer networks interview questions

Computer networks interview questions appear in most technical rounds for software, support and system roles - and like operating systems, the fresher-level question pool is stable. Interviewers return to the OSI and TCP/IP models, TCP vs UDP, what happens when you type a URL, IP addressing, and common protocols and ports. This guide covers those questions with answers you can actually say in a room, plus the follow-ups that separate prepared candidates from memorizers.

The models: OSI and TCP/IP

What is the OSI model? A seven-layer reference model describing how data moves across a network: Physical, Data Link, Network, Transport, Session, Presentation, Application. In interviews, know each layer's one-line job and one example - Network layer routes packets between networks (IP), Transport gives end-to-end delivery (TCP/UDP).

OSI vs TCP/IP model? TCP/IP is the practical four-layer model the internet actually runs on: Network Access (or Link), Internet, Transport, Application. OSI is a teaching reference; TCP/IP is what protocols are built to. Map them in one breath: OSI's bottom two layers merge into TCP/IP's Link layer, and the top three merge into its Application layer.

TCP vs UDP - the most-asked question

TCPUDP
ConnectionConnection-oriented (3-way handshake)Connectionless
ReliabilityGuaranteed, ordered delivery with retransmissionNo guarantee - packets can drop or reorder
Speed/overheadSlower, more overheadFaster, minimal overhead
Used forWeb (HTTP/HTTPS), email, file transferVideo calls, live streaming, DNS, gaming

The follow-up is always "why does video calling use UDP?" - because a late packet is worthless; the call prefers losing a frame over stalling the stream to retransmit it.

What is the three-way handshake? SYN, SYN-ACK, ACK - client sends SYN, server replies SYN-ACK, client confirms with ACK, and the connection opens. Know it in this exact order.

What happens when you type a URL in a browser?

The single best question for showing real understanding. A solid 45-second answer: the browser looks up the domain via DNS to get an IP address, opens a TCP connection to that IP (three-way handshake), does a TLS handshake for HTTPS, sends an HTTP request, receives the response, and renders the page - closing or reusing the connection. Mention DNS caching (browser, OS, resolver) for extra credit.

IP addressing and subnetting basics

IPv4 vs IPv6? IPv4 is 32-bit (about 4.3 billion addresses, written as 192.168.1.1) and is exhausted; IPv6 is 128-bit, written in hex, created to solve that exhaustion.

Public vs private IP? Private ranges (like 192.168.x.x, 10.x.x.x) work only inside local networks; NAT on the router translates them to the public IP the internet sees.

What is a subnet mask? It splits an IP address into network and host portions - 255.255.255.0 means the first three octets identify the network. Know that /24 = 255.255.255.0.

What is a MAC address vs an IP address? MAC is the hardware address burned into the network card, used for delivery within the local network; IP is the logical address used for routing across networks. ARP maps IP to MAC.

Protocols and ports worth memorizing

ProtocolPortPurpose
HTTP / HTTPS80 / 443Web traffic; HTTPS adds TLS encryption
DNS53Domain name to IP resolution
FTP21File transfer
SSH22Secure remote login
SMTP25Sending email
DHCP67/68Automatic IP assignment

The classic rapid-fire set

  • Hub vs switch vs router? Hub broadcasts to everyone (dumb); switch forwards only to the intended device; router connects different networks together.
  • What is a firewall? A filter that allows or blocks traffic by rules - network or application level.
  • Ping uses which protocol? ICMP - it tests reachability and round-trip time.
  • Default gateway? The router address your device sends all outside-network traffic to.
  • Bandwidth vs latency? Bandwidth is how much data per second; latency is the delay before data starts moving. A fat pipe can still be slow to respond.

Networks questions usually arrive alongside operating system interview questions and DBMS interview questions in the same core-subjects round - prepare them as a set.

Frequently asked questions

How deep do networks questions go for freshers?

Definitions, differences, and one applied question like the URL walkthrough. You will not be asked to configure anything or derive subnet ranges under pressure at most fresher interviews, though product companies occasionally ask basic subnetting.

Which networks topics are asked most?

TCP vs UDP, the OSI layers, what happens when you type a URL, and IP basics (public/private, IPv4 vs IPv6) cover most fresher-level questions in Indian placement interviews.

Do I need to memorize port numbers?

The common six or seven, yes - HTTP, HTTPS, DNS, FTP, SSH, SMTP and DHCP come up as one-mark checks. Nobody expects the full registry.

Are networking questions asked in non-networking roles?

Yes - general software roles ask the basics because every application touches the network. Deeper questions appear mainly for system, cloud, DevOps and support roles.

How long does networks interview prep take?

Two focused weekends cover the fresher-level syllabus if you studied networks in college. Spend the time practising spoken answers - especially the URL walkthrough - rather than re-reading textbooks.

Found this useful? Send it on.

WhatsAppLinkedIn

Keep reading