Networking
Basic Networking Concepts (Interview Ready)
1. What is Computer Networking?
• Connecting multiple devices (computers, mobiles, servers) so they can share data
and resources.
Example: Internet, LAN in offices, WiFi at home.
2. Types of Networks
• LAN (Local Area Network) → Small area like office, home.
• WAN (Wide Area Network) → Large area like Internet.
• MAN (Metropolitan Area Network) → City-wide networks.
3. IP Address
• Unique address for each device on the network.
• Two versions:
o IPv4: [Link] (32-bit, older)
o IPv6: 2001:0db8::1 (128-bit, newer, bigger space)
Difference Between IPv4 and IPv6
Feature IPv4 IPv6
Full Form Internet Protocol version 4 Internet Protocol version 6
Address Size 32-bit 128-bit
Address Dotted decimal Hexadecimal with colons
Format ([Link]) (2001:0db8:85a3::8a2e:0370:7334)
No. of
~4.3 billion ~340 undecillion (almost infinite)
Addresses
Header Size 20–60 bytes (complex) Fixed 40 bytes (simpler, faster)
Feature IPv4 IPv6
No built-in security (IPSec
Security IPSec is mandatory (more secure)
optional)
Configuration Manual or DHCP required Auto-configuration (plug-and-play)
Usage Still widely used Slowly replacing IPv4
Broadcast Supports Broadcast No Broadcast (uses Multicast & Anycast)
4. TCP vs UDP
• TCP (Transmission Control Protocol)
o Connection-oriented
o Reliable (ensures data delivery)
o Example: Web browsing, email.
• UDP (User Datagram Protocol)
o Connectionless
o Faster but not guaranteed
o Example: Video streaming, online games.
5. Switch vs Router
• Switch → Connects devices inside one LAN (like PCs in office).
• Router → Connects different networks (LAN to Internet).
6. DNS (Domain Name System)
• Converts website names into IP addresses.
Example: [Link] → [Link]
7. Firewall
• A security system that controls incoming and outgoing traffic.
Like a security guard for your network
8. NAT (Network Address Translation)
• Converts private IPs (used inside home/office) to a public IP (used on Internet).
Example: Your mobile and laptop use same WiFi public IP on Internet.
•
Quick Interview One-Liners
• Networking = Connecting devices to share data.
• IP Address = Unique identifier for a device.
• TCP = Reliable, slower. UDP = Fast, less reliable.
• Router connects networks; Switch connects devices inside a network.
• DNS = Phonebook of the Internet.
Top 10 Networking Interview Questions & Answers
1. What is Networking?
Networking is the process of connecting devices (computers, mobiles, servers) to share
data and resources. Example: Internet, LAN.
2. What is an IP Address?
An IP address is a unique identifier assigned to a device on a network. It allows devices
to communicate with each other.
3. Difference between IPv4 and IPv6?
IPv4 is 32-bit with ~4.3 billion addresses, written like [Link]. IPv6 is 128-bit with
huge address space, written like 2001:0db8::1, and has built-in security.
4. What is DNS?
DNS (Domain Name System) converts domain names (like [Link]) into IP addresses
so that computers can understand them.
5. What is TCP vs UDP?
TCP is connection-oriented, reliable but slower (used in web browsing, email).
UDP is connectionless, faster but less reliable (used in streaming, gaming).
6. What is NAT?
NAT (Network Address Translation) converts private IP addresses into a public IP address
so multiple devices can use the Internet with one IP.
7. What is the difference between Switch and Router?
A Switch connects multiple devices inside a LAN.
A Router connects different networks (LAN to Internet).
8. What is a Firewall?
A firewall is a network security system that monitors and controls incoming and
outgoing traffic, like a security guard for your network.
9. What is the difference between Hub, Switch, and Router?
Hub: Sends data to all devices (less efficient).
Switch: Sends data only to the correct device (faster).
Router: Connects different networks.
10. What is DHCP?
DHCP (Dynamic Host Configuration Protocol) automatically assigns IP addresses to
devices in a network, making configuration easier.
Pro Tip for Interview:
Keep answers short (2–3 lines), give one real-world example, and smile confidently