1. What is Computer Networking?

Computer networking is the practice of connecting multiple computing devices (such as computers, servers, mobile devices, or IoT devices) so they can communicate, share data, and use resources efficiently.

At a deeper level, networking involves:

  • Protocols (rules for communication, e.g., TCP/IP)
  • Hardware (routers, switches, cables)
  • Software (network services, operating systems)

Example:
When you open a website, your device sends a request over a network to a server, which responds with data (HTML, images, etc.).

2. What is a Network?

A network is a collection of interconnected devices that can exchange data with each other using communication channels.

A network includes:

  • Devices (nodes)
  • Communication medium (wired/wireless)
  • Protocols (rules of communication)

Example:
Your home Wi-Fi network connects your phone, laptop, smart TV, and router, allowing them to communicate and access the internet.

3. What are Nodes and Links?

  • Node: Any device connected to a network that can send, receive, or process data.
    Examples: computers, printers, routers, servers.
  • Link: The communication pathway that connects nodes.
    It can be:
    • Wired (Ethernet cable, fiber optics)
    • Wireless (Wi-Fi, Bluetooth)

Example:
In a school network:

  • Computers = nodes
  • Ethernet cables = links

4. What is a LAN (Local Area Network)?

A LAN is a network that connects devices within a limited geographical area, such as:

  • Home
  • Office
  • School
  • Campus

Key characteristics:

  • High speed (100 Mbps to multiple Gbps)
  • Low latency
  • Privately owned and managed

Example:
An office network where employees share files, printers, and internet connection.

5. What is a WAN (Wide Area Network)?

A WAN covers a large geographical area, often connecting multiple LANs across cities, countries, or continents.

Key characteristics:

  • Uses public or leased communication infrastructure
  • Lower speed compared to LAN (due to distance)
  • Higher latency

Example:
The internet is the largest WAN, connecting millions of networks worldwide.

6. What is a MAN (Metropolitan Area Network)?

A MAN is a network that spans a city or metropolitan area, larger than a LAN but smaller than a WAN.

Key characteristics:

  • Covers urban areas
  • Often operated by government or large organizations
  • High-speed backbone networks

Example:
City-wide broadband networks or cable TV networks.

7. What is Network Topology?

Network topology refers to the physical or logical arrangement of nodes and links in a network.

It defines:

  • How devices are connected
  • How data flows between devices

Types of topology:

  • Physical topology (actual layout of cables/devices)
  • Logical topology (how data travels)

Example:
Even if devices are physically connected in a star shape, data might flow logically in a different way.

8. What are the Different Types of Network Topologies?

The main types are:

  1. Bus Topology
  2. Star Topology
  3. Ring Topology
  4. Mesh Topology
  5. Tree Topology
  6. Hybrid Topology

Brief insight:

  • Bus: Single backbone cable
  • Star: Central hub connection
  • Ring: Circular connection
  • Mesh: Every node connected to every other node
  • Tree: Hierarchical structure
  • Hybrid: Combination of multiple topologies

9. What is a Star Topology?

In star topology, all devices are connected to a central device (like a switch or hub).

Structure:

  • Each node has a dedicated connection to the central hub

Advantages:

  • Easy to install and manage
  • Failure of one node does not affect others
  • Easy troubleshooting

Disadvantages:

  • If the central hub fails, the entire network goes down
  • Requires more cabling

Example:
Modern office networks use star topology with a switch connecting all computers.

10. What is Mesh Topology?

In mesh topology, every node is connected to multiple or all other nodes.

There are two types:

  • Full Mesh: Every node connects to every other node
  • Partial Mesh: Some nodes connect to multiple nodes

Advantages:

  • High reliability and redundancy
  • No single point of failure
  • Fault tolerance

Disadvantages:

  • Expensive (requires many connections)
  • Complex to maintain

Example:
Used in critical systems like:

  • Military communication networks
  • Data centers
  • Internet backbone networks

11. What is a Hybrid Topology?

A hybrid topology is a combination of two or more different network topologies (such as star, bus, mesh, or ring) within a single network.

Why it is used:
Organizations rarely rely on a single topology. Hybrid topology allows them to optimize performance, scalability, and reliability by combining strengths of multiple designs.

Example:

  • An office may use star topology within departments (each connected to a switch)
  • And connect departments using a bus or backbone network

Advantages:

  • Flexible and scalable
  • Fault isolation (failure in one part doesn’t affect entire network)
  • Customizable based on requirements

Disadvantages:

  • Complex design and maintenance
  • Higher cost

12. What is a Node in Networking?

A node is any device that participates in a network and can send, receive, or forward data.

Types of nodes:

  • End devices: computers, smartphones, printers
  • Intermediate devices: routers, switches

Key point:
Every device with an IP address in a network is typically considered a node.

Example:
In a home network:

  • Laptop, phone, router → all are nodes

13. What is a Link?

A link is the communication medium that connects two or more nodes and allows data transfer between them.

Types of links:

  • Wired: Ethernet cables, fiber optics
  • Wireless: Wi-Fi, Bluetooth, satellite

Example:

  • A LAN cable connecting a computer to a switch
  • A Wi-Fi signal connecting your phone to a router

14. What is a Router?

A router is a networking device that connects multiple networks and routes data packets between them using IP addresses.

Working concept:

  • Operates at Layer 3 (Network Layer) of the OSI model
  • Uses routing tables to determine the best path for data

Key functions:

  • Connect LAN to WAN (internet)
  • Packet forwarding
  • Network address translation (NAT)

Example:
Your home router:

  • Connects your internal network to the internet
  • Assigns IP addresses
  • Directs traffic to correct devices

15. What is a Switch?

A switch is a device that connects multiple devices within the same network (LAN) and forwards data based on MAC addresses.

Working concept:

  • Operates at Layer 2 (Data Link Layer)
  • Maintains a MAC address table

Key functions:

  • Sends data only to the intended device (unlike hub)
  • Reduces network collisions
  • Improves efficiency

Example:
In an office:

  • All computers connect to a switch
  • Switch ensures data reaches the correct system

16. What is a Hub?

A hub is a basic networking device that connects multiple devices but broadcasts data to all connected nodes, regardless of the destination.

Working concept:

  • Operates at Layer 1 (Physical Layer)
  • No intelligence or filtering

Key characteristics:

  • Data is sent to all ports
  • Causes network congestion
  • Mostly obsolete now

Example:
If one computer sends data:

  • All devices receive it, but only the intended one processes it

17. What is a Gateway?

A gateway is a device or system that connects two different networks that use different protocols.

Role:

  • Acts as a translator between networks

Example scenarios:

  • Connecting a local network to the internet
  • Translating between IPv4 and IPv6
  • Communication between different architectures

Real-world example:
Your router often acts as a default gateway, allowing devices in your network to communicate with external networks.

18. What is a Modem?

A modem (Modulator-Demodulator) is a device that converts digital signals into analog signals and vice versa for transmission over communication lines.

Why needed:
Internet service providers often use analog signals over telephone or cable lines.

Functions:

  • Modulation: Digital → Analog
  • Demodulation: Analog → Digital

Example:

  • Broadband modem converts ISP signals into usable internet for your router

19. What is a NIC (Network Interface Card)?

A NIC is a hardware component that allows a device to connect to a network.

Types:

  • Wired NIC (Ethernet port)
  • Wireless NIC (Wi-Fi adapter)

Functions:

  • Provides a physical interface to the network
  • Assigns a unique MAC address
  • Handles data transmission and reception

Example:

  • Laptop Wi-Fi card
  • Ethernet port in a desktop

20. What is a MAC Address?

A MAC (Media Access Control) address is a unique hardware identifier assigned to a NIC.

Characteristics:

  • 48-bit hexadecimal address
  • Example: 00:1A:2B:3C:4D:5E
  • Assigned by manufacturer

Purpose:

  • Identifies devices within a local network
  • Used by switches to forward data

Difference from IP:

  • MAC → physical address (permanent)
  • IP → logical address (can change)

Example:
When a switch sends data:

  • It uses MAC address to deliver to the correct device

21. What is an IP Address?

An IP (Internet Protocol) address is a unique logical identifier assigned to each device on a network, used to identify and communicate with that device.

Key points:

  • Works at the Network Layer (Layer 3)
  • Used for routing packets across networks
  • Can be static or dynamic

Example:

  • 192.168.1.10 (IPv4)
  • 2001:db8::1 (IPv6)

22. What is IPv4?

IPv4 (Internet Protocol version 4) is the most widely used version of IP addressing, using a 32-bit address.

Format:

  • Four octets (8 bits each)
  • Decimal format: 192.168.1.1

Total addresses:

  • ~4.3 billion (2³²)

Limitations:

  • Address exhaustion due to limited space
  • Security features not built-in

Example:
Your home network likely uses IPv4 internally.

23. What is IPv6?

IPv6 (Internet Protocol version 6) is the next-generation IP addressing system, designed to overcome IPv4 limitations.

Format:

  • 128-bit address
  • Hexadecimal format: 2001:0db8:85a3::8a2e:0370:7334

Advantages:

  • Massive address space (2¹²⁸)
  • Built-in security (IPsec)
  • Better routing efficiency
  • No need for NAT

Example:
Modern systems and ISPs increasingly support IPv6.

24. What are the Classes of IPv4 Addresses?

IPv4 addresses are divided into five classes based on network size and usage:

ClassRangeDefault Subnet MaskUsage
A1.0.0.0 – 126.255.255.255255.0.0.0Large networks
B128.0.0.0 – 191.255.255.255255.255.0.0Medium networks
C192.0.0.0 – 223.255.255.255255.255.255.0Small networks
D224.0.0.0 – 239.255.255.255N/AMulticast
E240.0.0.0 – 255.255.255.255N/AExperimental

Example:

  • Class C (192.168.x.x) is commonly used in home networks

25. What is a Private IP Address?

A private IP address is used within a local network and is not routable on the internet.

Ranges:

  • Class A: 10.0.0.0 – 10.255.255.255
  • Class B: 172.16.0.0 – 172.31.255.255
  • Class C: 192.168.0.0 – 192.168.255.255

Purpose:

  • Internal communication
  • Conserves public IP addresses (used with NAT)

26. What is a Public IP Address?

A public IP address is globally unique and assigned by an ISP, allowing a device to be accessible over the internet.

Characteristics:

  • Routable on the internet
  • Unique worldwide
  • Assigned dynamically or statically

Example:
When you visit a website, your public IP is used to identify your network.

27. What is a Subnet Mask?

A subnet mask is used to divide an IP address into network and host portions.

Purpose:

  • Identifies which part is network and which part is host
  • Helps in routing decisions

Example:
IP: 192.168.1.10
Subnet mask: 255.255.255.0

  • Network part: 192.168.1
  • Host part: .10

Common masks:

  • /24 → 255.255.255.0
  • /16 → 255.255.0.0

28. What is a Subnet?

A subnet is a logical subdivision of a larger network, created to improve performance and security.

Why subnetting is used:

  • Reduces network congestion
  • Improves security
  • Efficient IP address utilization

Example:
A company network:

  • IT department → one subnet
  • HR department → another subnet

29. What is DHCP?

DHCP (Dynamic Host Configuration Protocol) is a protocol that automatically assigns IP addresses and network configuration to devices.

What it provides:

  • IP address
  • Subnet mask
  • Default gateway
  • DNS server

Process (DORA):

  1. Discover
  2. Offer
  3. Request
  4. Acknowledge

Example:
When you connect to Wi-Fi:

  • You automatically get an IP address via DHCP

30. What is DNS?

DNS (Domain Name System) is a system that translates human-readable domain names into IP addresses.

Why needed:
Humans remember names (like google.com), but networks use IP addresses.

Working:

  • User enters domain → DNS query → returns IP → connection established

Example:
Typing google.com → resolves to an IP like 142.250.x.x

31. What is ARP?

ARP (Address Resolution Protocol) is used to map an IP address to a MAC address within a local network.

Why it is needed:

  • Communication inside a LAN happens using MAC addresses
  • But devices know each other using IP addresses
  • ARP bridges this gap

How it works:

  1. Device broadcasts: “Who has IP 192.168.1.1?”
  2. Target device replies with its MAC address
  3. Sender stores it in ARP cache

Example:
When your laptop sends data to a router:

  • It first finds the router’s MAC address using ARP

32. What is ICMP?

ICMP (Internet Control Message Protocol) is used for error reporting and network diagnostics.

Functions:

  • Reports unreachable hosts
  • Time exceeded messages
  • Network troubleshooting

Common tools using ICMP:

  • ping → checks connectivity
  • traceroute → tracks packet path

Example:
When you run ping google.com:

  • ICMP echo request is sent
  • Echo reply confirms connectivity

33. What is FTP?

FTP (File Transfer Protocol) is used to transfer files between a client and a server over a network.

Characteristics:

  • Uses TCP
  • Works on port 21
  • Requires authentication (username/password)

Types:

  • Active FTP
  • Passive FTP

Example:
Uploading website files from your computer to a hosting server

Limitation:

  • Not secure (data sent in plain text)

34. What is HTTP?

HTTP (HyperText Transfer Protocol) is used for communication between web browsers and web servers.

Characteristics:

  • Stateless protocol
  • Works on port 80
  • Transfers HTML, images, videos, etc.

How it works:

  1. Client sends request
  2. Server sends response

Example:
Opening a website:

  • Browser sends HTTP request
  • Server returns webpage content

35. What is HTTPS?

HTTPS (HyperText Transfer Protocol Secure) is the secure version of HTTP, using encryption.

Key features:

  • Uses SSL/TLS encryption
  • Works on port 443
  • Ensures:
    • Data confidentiality
    • Data integrity
    • Authentication

Example:
Online banking, login pages, payment gateways

Difference from HTTP:

  • HTTP → plain text
  • HTTPS → encrypted

36. What is SMTP?

SMTP (Simple Mail Transfer Protocol) is used to send emails between servers.

Characteristics:

  • Works on ports 25, 465, or 587
  • Used for outgoing mail

Process:

  • Sender → SMTP server → recipient mail server

Example:
When you send an email via Gmail:

  • SMTP handles sending the message

Related protocols:

  • POP3 / IMAP → used for receiving emails

37. What is TCP?

TCP (Transmission Control Protocol) is a connection-oriented protocol that ensures reliable and ordered data delivery.

Key features:

  • Connection establishment (3-way handshake)
  • Error detection and correction
  • Flow control
  • Congestion control

Example:

  • Web browsing
  • File downloads
  • Email transfer

38. What is UDP?

UDP (User Datagram Protocol) is a connectionless protocol that provides fast but unreliable data transmission.

Key features:

  • No connection setup
  • No error correction
  • Low latency

Example:

  • Video streaming
  • Online gaming
  • VoIP calls

Interview insight:
UDP = fast but no guarantee of delivery

39. What is the Difference Between TCP and UDP?

FeatureTCPUDP
ConnectionConnection-orientedConnectionless
ReliabilityReliableUnreliable
SpeedSlowerFaster
Error handlingYesNo
OrderMaintains orderNo guarantee
Use casesWeb, email, file transferStreaming, gaming

Simple explanation:

  • TCP is like a phone call (reliable, confirmed)
  • UDP is like a broadcast (fast, no confirmation)

Interview insight:
Use TCP when accuracy matters, UDP when speed matters

40. What is the OSI Model?

The OSI (Open Systems Interconnection) model is a 7-layer framework used to understand how data travels across a network.

Layers (Top to Bottom):

  1. Application Layer
    • User interaction
    • Examples: HTTP, FTP
  2. Presentation Layer
    • Data formatting, encryption
  3. Session Layer
    • Manages sessions/communication
  4. Transport Layer
    • End-to-end communication
    • Protocols: TCP, UDP
  5. Network Layer
    • Routing and IP addressing
  6. Data Link Layer
    • MAC addressing, switching
  7. Physical Layer
    • Transmission of raw bits

Example Flow:

When you open a website:

  • Application → HTTP request
  • Transport → TCP segments
  • Network → IP routing
  • Data Link → MAC delivery
  • Physical → signals transmitted 

41. What are the Layers of the OSI Model?

The OSI model has 7 layers, each responsible for a specific function in data communication.

Layers (Top → Bottom):

  1. Application Layer
    • Interface for users and applications
    • Protocols: HTTP, FTP, SMTP
  2. Presentation Layer
    • Data formatting, encryption, compression
  3. Session Layer
    • Establishes, manages, and terminates sessions
  4. Transport Layer
    • Reliable or fast delivery
    • Protocols: TCP, UDP
  5. Network Layer
    • Routing and IP addressing
  6. Data Link Layer
    • MAC addressing, error detection
  7. Physical Layer
    • Transmission of raw bits (cables, signals)

42. What is the TCP/IP Model?

The TCP/IP model is a practical networking model used in real-world internet communication. It is simpler than OSI and focuses on protocol implementation.

Key idea:

  • It defines how data moves from one device to another over the internet

Difference from OSI:

  • OSI is conceptual
  • TCP/IP is practical and implemented

43. What are the Layers of the TCP/IP Model?

The TCP/IP model has 4 layers:

  1. Application Layer
    • Combines OSI’s top 3 layers
    • Protocols: HTTP, FTP, DNS
  2. Transport Layer
    • End-to-end communication
    • Protocols: TCP, UDP
  3. Internet Layer
    • Logical addressing and routing
    • Protocols: IP, ICMP
  4. Network Access Layer
    • Physical transmission and MAC addressing

Mapping with OSI:

TCP/IPOSI
ApplicationApplication + Presentation + Session
TransportTransport
InternetNetwork
Network AccessData Link + Physical

44. What is Data Encapsulation?

Data encapsulation is the process of adding protocol-specific headers (and sometimes trailers) to data as it moves down the layers of a network model.

Process:

  • Application → data
  • Transport → segment (adds TCP/UDP header)
  • Network → packet (adds IP header)
  • Data Link → frame (adds MAC header)
  • Physical → bits

Example:
Sending a message:

  • Each layer wraps data with its own information
  • At the receiver, layers unwrap (decapsulation)

45. What is a Backbone Network?

A backbone network is a high-speed central network that connects multiple smaller networks.

Purpose:

  • Carries large volumes of data
  • Connects different LANs, WANs, or data centers

Example:

  • Internet backbone connecting continents
  • Corporate backbone connecting branches

Characteristics:

  • High bandwidth
  • High reliability

46. What is a VPN (Virtual Private Network)?

A VPN is a technology that creates a secure, encrypted connection over a public network (like the internet).

Key features:

  • Data encryption
  • Privacy protection
  • Remote access

Use cases:

  • Access office network remotely
  • Secure browsing on public Wi-Fi

Example:
An employee working from home connects to company servers via VPN.

47. What is NAT (Network Address Translation)?

NAT is a technique used by routers to convert private IP addresses into a public IP address and vice versa.

Why needed:

  • Conserves public IP addresses
  • Enables multiple devices to share one public IP

Types:

  • Static NAT
  • Dynamic NAT
  • PAT (Port Address Translation)

Example:

  • Multiple devices in your home use private IPs
  • Router uses one public IP to access the internet

48. What is a Firewall?

A firewall is a security system that monitors and controls incoming and outgoing network traffic based on rules.

Types:

  • Hardware firewall
  • Software firewall

Functions:

  • Blocks unauthorized access
  • Allows safe communication
  • Filters traffic

Example:

  • Blocking unknown IP addresses
  • Allowing only specific ports

49. What is Bandwidth?

Bandwidth is the maximum amount of data that can be transmitted over a network in a given time.

Measured in:

  • bps (bits per second)
  • Mbps, Gbps

Key idea:

  • Higher bandwidth → more data can be transferred

Example:

  • 100 Mbps connection downloads faster than 10 Mbps

50. What is Jitter in Networking?

Jitter is the variation in packet arrival time in a network.

Why it matters:

  • Affects real-time communication

Impact:

  • Voice/video calls become choppy
  • Streaming interruptions

Example:
In a video call:

  • If packets arrive at uneven intervals → audio breaks

Causes:

  • Network congestion
  • Poor routing
  • Low bandwidth

Interview insight:
Jitter = inconsistency in data delivery timing