0% found this document useful (0 votes)
20 views8 pages

Computer Networks Interview Questions

The document provides a comprehensive overview of computer networking, covering essential topics such as types of networks, OSI and TCP/IP models, networking devices, IP addressing, protocols, and common networking terms. It includes over 40 interview questions and answers that address fundamental concepts, troubleshooting commands, and scenario-based inquiries. This resource serves as a guide for understanding networking principles and preparing for interviews in the field.

Uploaded by

22wh1a05d5
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views8 pages

Computer Networks Interview Questions

The document provides a comprehensive overview of computer networking, covering essential topics such as types of networks, OSI and TCP/IP models, networking devices, IP addressing, protocols, and common networking terms. It includes over 40 interview questions and answers that address fundamental concepts, troubleshooting commands, and scenario-based inquiries. This resource serves as a guide for understanding networking principles and preparing for interviews in the field.

Uploaded by

22wh1a05d5
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Complete Computer Networks Interview Q&A (40+ Questions)

1. Basics of Networking

Q1. What is a computer network?


A group of computers/devices connected to share data and resources.
Example: Office computers sharing a printer.

Q2. Why are networks important?

 Share resources (files, printers, internet)

 Communication (email, chat, video calls)

 Data exchange (fast transfer)

 Easy expansion (adding new devices)

Q3. Types of networks:

Type Coverage Example

PAN Few meters Bluetooth devices

LAN Office/Building College Wi-Fi

MAN City-wide City public Wi-Fi

WAN Global Internet

Q4. Difference between LAN and WAN:

Feature LAN WAN

Size Small Large

Speed Fast Slower

Ownership Private Public

Example Office network Internet

Q5. What is network topology?


Layout of devices and how they are connected.

Q6. Types of network topologies:

 Bus: Single cable for all devices

 Star: Devices connect to hub/switch

 Ring: Devices form a loop

 Mesh: All devices connected to all

 Hybrid: Combination of topologies

Q7. Advantages/Disadvantages of topologies:


 Star: Easy to manage, hub failure = problem

 Mesh: Reliable, expensive

 Bus: Cheap, failure of main cable stops network

 Ring: Predictable, one device failure breaks loop

2. OSI & TCP/IP Models

Q8. What is OSI model?


7 layers explaining how data moves between devices.
Mnemonic: All People Seem To Need Data Processing

Layer Function Example

7. Application User services Browser, FTP

6. Presentation Data format & encryption SSL, JPEG

5. Session Session management Login sessions

4. Transport Reliable delivery TCP, UDP

3. Network Routing & addressing IP

2. Data Link Error checking MAC, Ethernet

1. Physical Hardware & transmission NIC, cables

Q9. TCP/IP model (4 layers):

Layer Function OSI Equivalent

Link Physical + Data Link 1+2

Internet Routing 3

Transport Delivery 4

Application User services 5+6+7

Q10. Difference between OSI and TCP/IP:

Feature OSI TCP/IP

Layers 7 4

Concept Theoretical Practical

Example None Internet protocols

3. Networking Devices

Q11. Router vs Switch vs Hub


Device Function Example

Router Connects different networks Home Wi-Fi

Switch Connects devices in LAN Office LAN

Hub Sends data to all devices Old network devices

Q12. Modem – Converts digital ↔ analog signals for internet.


Q13. Access Point – Connects wireless devices to wired network.
Q14. NIC – Network Interface Card connects device to network.

4. IP Addressing

Q15. What is an IP address?


Unique number for a device in a network.

Q16. IPv4 vs IPv6:

Feature IPv4 IPv6

Size 32-bit 128-bit

Format [Link] 2001:0db8::7334

Addresses 4.3 billion Almost unlimited

Q17. What is Subnetting?


Dividing large network into smaller networks for better management and security.

Q18. Difference between Static and Dynamic IP:

 Static IP: Fixed manually

 Dynamic IP: Assigned automatically by DHCP

5. Protocols

Q19. HTTP / HTTPS – For web pages; HTTPS is secure.


Q20. FTP – File transfer protocol.
Q21. SMTP – Sending emails.
Q22. DNS – Converts domain name to IP.
Q23. DHCP – Auto assign IP addresses.

6. TCP vs UDP

Q24. Difference between TCP and UDP:

Feature TCP UDP

Connection Yes No

Reliability Reliable Not reliable


Feature TCP UDP

Speed Slower Faster

Example Web, Email Video call, Gaming

Tip: TCP = Take Care of Packets, UDP = Ultra fast Data

7. Common Networking Terms (Q25–Q34)

Q25. MAC Address

 Definition: A unique hardware ID for every network device (NIC).

 Format: 6 pairs of hex digits: 00:1A:2B:3C:4D:5E.

 Usage: Switches use MAC addresses to forward data to the right device.

 Tip to remember: MAC = Machine Address (device-level ID).

Q26. Gateway

 Definition: A device that connects two different networks.

 Example: Your home router is a gateway to the internet.

 Why important: Without a gateway, local devices can’t reach external networks.

Q27. Firewall

 Definition: A security system that monitors and blocks unsafe network traffic.

 Types: Software firewall (on PC) or hardware firewall (on router).

 Example: Blocking suspicious websites at office networks.

Q28. Proxy Server

 Definition: A middleman server that forwards requests from clients to the internet.

 Uses: Caching, privacy, content filtering.

 Example: Office proxy to prevent access to social media.

Q29. VPN (Virtual Private Network)

 Definition: Creates a secure encrypted tunnel over the internet.

 Uses: Remote access, secure browsing on public Wi-Fi.

 Example: Working from home with corporate VPN.

Q30. Bandwidth

 Definition: Maximum amount of data that can be transmitted in a network per second.

 Unit: bits per second (bps), Mbps, Gbps.

 Example: Video streaming requires higher bandwidth than emails.

Q31. Latency
 Definition: Time delay between sending and receiving data.

 Example: Lag in online gaming or video calls.

 Tip: Low latency = smooth experience.

Q32. Ping

 Definition: A command to check connectivity between devices.

 Example: ping [Link] tests if Google is reachable.

 Returns: Time in milliseconds (ms) → lower is better.

Q33. Port Number

 Definition: Identifies a specific service on a device.

 Common ports:

o HTTP → 80

o HTTPS → 443

o FTP → 21

o SMTP → 25

 Tip: Think of port as a “door” to the service.

Q34. Packet

 Definition: Small unit of data sent over a network.

 Contains: Header (control info) + Payload (actual data).

 Example: Sending an email → broken into packets → transmitted → reassembled.

8. Communication Types (Q35)

Q35. Unicast / Multicast / Broadcast

Type Definition Example

Unicast One-to-one Sending a file to a friend

Multicast One-to-many (specific group) Zoom meeting for 5 people

Broadcast One-to-all Office network announcement

Tip: Think “Uni = 1, Multi = group, Broad = all”.

9. Security & Network Tools (Q36–Q40)

Q36. ARP (Address Resolution Protocol)

 Maps IP address → MAC address in a LAN.

 Example: Computer wants to send data to [Link] → uses ARP to find MAC 00:1A:2B:3C:4D:5E.
Q37. NAT (Network Address Translation)

 Converts private IP addresses → public IP address to access the internet.

 Example: Your home network uses private IPs like 192.168.1.x → router translates them to public IP
assigned by ISP.

Q38. Firewall – (security system for traffic control).

Q39. Proxy Server – (middleman for requests).

Q40. VPN – (secure tunnel over public network).

10. Troubleshooting & Commands (Q41–Q43)

Q41. Ping Command

 Tests if a device is reachable.

 Returns: Round-trip time.

 Example: Ping Google → see if your internet works.

Q42. Traceroute Command

 Shows path packets take from source to destination.

 Use: Troubleshooting network delays or failures.

 Example: tracert [Link] on Windows.

Q43. nslookup

 Checks DNS resolution: converts domain name → IP.

 Example: nslookup [Link] → shows IP addresses of Google servers.

11. Switching & Routing (Q44–Q47)

Q44. Hub vs Switch

 Hub: Broadcasts data to all devices → inefficient.

 Switch: Sends only to intended device using MAC → efficient.

 Layer: Hub → Layer 1, Switch → Layer 2

Q45. Router vs Layer 3 Switch

 Router: Connects different networks, performs IP routing.

 Layer 3 Switch: Performs routing inside LAN, faster but limited.

Q46. Circuit Switching vs Packet Switching

 Circuit: Dedicated path for whole communication (Phone call).

 Packet: Data split into packets, sent via best path (Internet).

 Packet switching is used by the Internet for efficiency.


Q47. Encapsulation / Decapsulation

 Encapsulation: Adding headers when sending data down the layers.

 Decapsulation: Removing headers when receiving data up the layers.

 Example: HTTP data → TCP header → IP header → Frame → sent.

12. Scenario-Based / Interview-Favorite Questions (Q48–Q54)

Q48. What happens when you type a URL in browser?

1. Browser checks cache.

2. DNS resolves domain → IP.

3. TCP establishes connection.

4. HTTP request sent.

5. Server responds → Browser renders page.

Q49. TCP 3-way handshake vs UDP

 TCP: SYN → SYN-ACK → ACK → connection established. Reliable.

 UDP: No handshake → faster, connectionless.

Q50. Subnetting example

 Network: [Link]/24 → divide into 2 subnets:

o [Link]/25

o [Link]/25

 Helps in IP management and security.

Q51. Collision Domain vs Broadcast Domain

 Collision: Area where packets can collide (Hub).

 Broadcast: Area where broadcast is received (Switch boundaries).

Q52. Common Ports to remember

 HTTP → 80

 HTTPS → 443

 FTP → 21

 SFTP → 22

 SMTP → 25

 DNS → 53

Q53. ICMP (Internet Control Message Protocol)

 Used for Ping and network error messages.


 Helps in troubleshooting network problems.

Q54. QoS (Quality of Service)

 Prioritizes important traffic on the network.

 Example: VoIP or video calls get higher priority than downloads.

You might also like