Prepare for your next networking job interview with this comprehensive guide featuring 30 essential networking interview questions and detailed answers. Whether you’re a fresher, have 1-3 years of experience, or are a seasoned professional with 3-6 years, these questions cover conceptual, practical, and scenario-based topics in progressive difficulty. Perfect for roles at companies like Zoho, Paytm, Salesforce, SAP, Oracle, Atlassian, Adobe, Swiggy, and Flipkart.
Basic Networking Interview Questions (1-10)
1. What is a computer network?
A computer network is a collection of interconnected devices that communicate and share resources like files, printers, and internet access through wired or wireless media.[1][4]
2. What are the main differences between LAN and WAN?
LAN (Local Area Network) covers a small geographic area like an office and has high speed with low latency. WAN (Wide Area Network) spans large areas like cities or countries, with lower speed and higher latency due to multiple interconnected networks.[2][4]
3. What are the different types of network topologies?
Common network topologies include bus (single cable connects all devices), star (devices connect to central hub), ring (devices form a circle), mesh (all devices connect to each other), and hybrid (combination of topologies).[1][2]
4. What is the OSI model?
The OSI (Open Systems Interconnection) model is a 7-layer framework for understanding network interactions: Physical, Data Link, Network, Transport, Session, Presentation, and Application layers.[1][4]
5. Name the layers of the OSI model and their primary functions.
Layer 1 (Physical): Transmits bits. Layer 2 (Data Link): Handles framing and error detection. Layer 3 (Network): Routing and logical addressing. Layer 4 (Transport): End-to-end delivery. Layer 5 (Session): Manages sessions. Layer 6 (Presentation): Data translation. Layer 7 (Application): User interface.[1][4]
6. What is the difference between a hub, switch, and router?
A hub broadcasts data to all ports. A switch learns MAC addresses and forwards data only to the destination port. A router connects different networks and routes packets based on IP addresses.[2][4]
7. What is an IP address?
An IP address is a unique numerical identifier assigned to each device on a network, enabling communication. IPv4 uses 32-bit addresses (e.g., 192.168.1.1), while IPv6 uses 128-bit.[2][4]
8. What is DHCP?
DHCP (Dynamic Host Configuration Protocol) automatically assigns IP addresses, subnet masks, default gateways, and DNS servers to devices on a network.[1][2]
9. What is DNS?
DNS (Domain Name System) translates human-readable domain names (e.g., example.com) into IP addresses, enabling easy access to websites and services. It uses UDP/TCP port 53.[1][4]
10. What is a subnet mask?
A subnet mask divides an IP address into network and host portions, determining which part identifies the network and which identifies the device.[2][4]
Intermediate Networking Interview Questions (11-20)
11. Explain TCP vs UDP.
TCP (Transmission Control Protocol) is connection-oriented, reliable, with error-checking and ordering. UDP (User Datagram Protocol) is connectionless, faster, but unreliable, used for streaming.[1][2]
12. What is a VLAN?
A VLAN (Virtual Local Area Network) logically segments a physical network into separate broadcast domains without additional hardware, improving security and performance.[2][5]
13. What are the advantages of a star topology?
Star topology offers easy troubleshooting (isolate faulty devices), scalability (add devices via central hub), and fault isolation (one node failure doesn’t affect others).[1][4]
14. How does a switch learn MAC addresses?
A switch builds a MAC address table by examining the source MAC address of incoming frames and associating it with the port, then forwards future frames accordingly.[4][5]
15. What is NAT?
NAT (Network Address Translation) maps private IP addresses to a public IP, allowing multiple devices to share one public IP for internet access.[2][4]
16. What are private IP addresses?
Private IP addresses (e.g., 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) are not routable on the public internet and used within local networks.[2]
17. Explain the three-way handshake in TCP.
TCP establishes a connection with SYN (client requests), SYN-ACK (server acknowledges and requests), and ACK (client confirms), ensuring reliable communication.[1][2]
18. What is a default gateway?
The default gateway is the IP address of the router that handles traffic destined outside the local subnet.[1][2]
19. What protocols are used at the Network layer?
Key Network layer protocols include IP (Internet Protocol), ICMP (for diagnostics like ping), and routing protocols like OSPF and BGP.[4][5]
20. What is the purpose of ARP?
ARP (Address Resolution Protocol) resolves IP addresses to MAC addresses within the same local network.[2][4]
Advanced Networking Interview Questions (21-30)
21. What happens if you leave the default gateway blank in TCP/IP configuration?
Devices cannot communicate outside their local subnet, as there’s no route for traffic destined to other networks.[1]
22. Scenario: At Atlassian, servers in VLAN 10 cannot ping servers in VLAN 20. What do you check?
Verify inter-VLAN routing on Layer 3 switch/router, trunk port VLAN tagging, ACLs/firewall rules, correct subnet masks, default gateways, and port VLAN assignments.[2]
23. What is a crosslink cable and when is it used?
A crossover cable swaps transmit/receive pairs to connect similar devices (e.g., switch-to-switch) directly without an intermediary.[1]
24. Explain OSPF and its areas.
OSPF (Open Shortest Path First) is a link-state routing protocol using Dijkstra’s algorithm. Areas (e.g., backbone Area 0) reduce routing table size and LSDB complexity.[4][5]
25. Scenario: Application at SAP works internally but fails externally. Troubleshoot steps?
Check DNS resolution, firewall/NAT rules, proxy settings, MTU issues, TCP retransmissions, server rate limits, and QoS policies.[2]
26. What is BGP and when is it used?
BGP (Border Gateway Protocol) is an external routing protocol for exchanging routes between autonomous systems on the internet, handling policy-based routing.[4][5]
27. Scenario: Ping to IP succeeds but port test (telnet port 80) fails at Oracle. Next steps?
Confirm service listening on port (ss -lntp), check firewalls/security groups, verify binding, and test internal vs external access for NAT issues.[2]
28. What is QoS and why implement it?
QoS (Quality of Service) prioritizes network traffic (e.g., voice over data) to ensure performance for critical applications during congestion.[2][5]
29. Differentiate between trunk and access ports on a switch.
Access ports carry traffic for one VLAN (untagged). Trunk ports carry multiple VLANs (tagged with 802.1Q) for inter-switch/VLAN communication.[2][5]
30. Scenario: High latency in Paytm’s network despite good bandwidth. Troubleshooting approach?
Check for packet loss/retransmissions, routing loops, MTU mismatches, QoS misconfiguration, application-specific issues, and firewall inspection delays.[2]
## Related Reading: