Skip to content
InterviewEra
Loading account navigation
InterviewEra

InterviewEra is an AI-powered mock interview platform with adaptive follow-ups, resume-aware scoring, and structured interview preparation for campus placements and early-career hiring.

Start Mock Interview

Product

  • How It Works
  • For Teams
  • Start Mock Interview
  • Campus Placements
  • Campus Workspace
  • Help Center

Tools

  • Interview Question Generator
  • ATS Resume Checker
  • STAR Answer Builder

Resources

  • Interview Questions
  • All Resources
  • Blog
  • Community Hub
  • DSA Topic Map
  • Placement Guide
  • STAR Guide

Company

  • What is InterviewEra
  • About Us
  • Pricing
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Refund Policy

© 2026 InterviewEra. All rights reserved.

Privacy Policy|Terms & Conditions|Refund Policy
|Ranchi, Jharkhand, India
Interview Questions›Topics›Computer Networks

CS Fundamentals · Fresher-relevant

Computer Networks Interview Questions 2026

Computer Networks interview questions on OSI model, TCP/IP, DNS, HTTP/HTTPS, subnetting, and network security fundamentals.

CS FundamentalsFresher-relevant

Computer Networks Interview Questions

Placement-oriented · Updated 2026
  1. 01

    What is the difference between TCP and UDP?

    TechnicalEasy

    Tip: TCP is connection-oriented, reliable, ordered, and flow/congestion-controlled (HTTP, email, file transfer). UDP is connectionless, unreliable, and low-latency with no handshake (DNS, VoIP, gaming, video). Choose TCP when correctness matters, UDP when speed and tolerance to loss matter.

  2. 02

    Explain the TCP three-way handshake.

    TechnicalMedium

    Tip: SYN (client → server with initial seq), SYN-ACK (server acknowledges and sends its seq), ACK (client acknowledges). This synchronises sequence numbers and establishes a reliable connection before data flows. Connection teardown uses a four-way FIN/ACK exchange.

  3. 03

    What happens when you type a URL into a browser and press Enter?

    TechnicalHard

    Tip: DNS resolves the domain to an IP → TCP connection (and TLS handshake for HTTPS) → HTTP request sent → server responds → browser parses HTML, fetches CSS/JS/images, builds the DOM/CSSOM, and renders. Caching (DNS, browser, CDN) short-circuits many steps. Mention each layer to show depth.

  4. 04

    What are the layers of the OSI model?

    TechnicalMedium

    Tip: Physical, Data Link, Network, Transport, Session, Presentation, Application (mnemonic: "Please Do Not Throw Sausage Pizza Away"). Map them to real protocols: IP at Network, TCP/UDP at Transport, HTTP/DNS at Application. The TCP/IP model collapses these into 4 layers.

  5. 05

    How does DNS resolution work?

    TechnicalMedium

    Tip: The resolver checks caches, then queries the root server → TLD server (.com) → authoritative name server for the domain, returning the IP. Records are cached per their TTL. Record types: A (IPv4), AAAA (IPv6), CNAME (alias), MX (mail), NS (name server).

  6. 06

    What is the difference between HTTP and HTTPS, and how does TLS work?

    TechnicalHard

    Tip: HTTPS is HTTP over TLS, providing encryption, integrity, and server authentication. The TLS handshake uses asymmetric crypto to verify the certificate and agree on a shared symmetric session key, then encrypts traffic with that faster symmetric key. It defends against eavesdropping and tampering.

  7. 07

    What is the difference between a switch, a router, and a hub?

    TechnicalEasy

    Tip: A hub blindly repeats signals to all ports (Layer 1). A switch forwards frames to specific ports using MAC addresses (Layer 2). A router connects different networks and forwards packets by IP address, choosing routes (Layer 3).

  8. 08

    Explain how HTTP status codes and methods convey request outcomes.

    TechnicalEasy

    Tip: Methods: GET (read, safe), POST (create), PUT/PATCH (update), DELETE (remove). Status ranges: 2xx success, 3xx redirect, 4xx client error (404, 401, 403, 429), 5xx server error. Together they make HTTP a self-describing, stateless protocol.

Practice CN questions with your own resume

InterviewEra generates role-specific questions using your actual projects and skills. Get scored feedback on technical depth, clarity, and structure — free to start.

Start free mock interviewFree question generator

Roles that need CN

  • Software Engineer questions
  • DevOps Engineer questions
  • Cybersecurity Analyst questions

Related cs-fundamentals topics

  • Data Structures questions
  • Algorithms questions
  • System Design questions
  • Object-Oriented Programming questions
  • Database Management Systems questions

Practice tools

  • Interview question generator
  • ATS resume checker
  • STAR answer builder

Guides and resources

  • All interview questions
  • HR interview answer tips
  • STAR method with examples