Basic Networking Interview Questions for Cybersecurity Freshers
Cybersecurity fresher interviews usually test networking basics: the OSI and TCP/IP models, TCP versus UDP and the three-way handshake, IPv4 and IPv6 addressing, subnetting and private ranges, DNS, DHCP and ARP, common port numbers, NAT, and what firewalls, IDS and VPNs do.
Topic: Networking in IT Infrastructure · Interview preparation
Quick answer: Cybersecurity fresher interviews usually test networking basics: the OSI and TCP/IP models, TCP versus UDP and the three-way handshake, IPv4 and IPv6 addressing, subnetting and private ranges, DNS, DHCP and ARP, common port numbers, NAT, and what firewalls, IDS and VPNs do. Interviewers want short, correct answers and the ability to link each concept to security, for example why ARP can be spoofed or why Telnet is unsafe. This guide groups the most common questions with model answers you can explain in your own words.
Key takeaways
- Know the OSI layers and where common protocols and attacks sit.
- Explain TCP versus UDP and the SYN, SYN-ACK, ACK handshake clearly.
- Practise subnetting until /24, /26 and /30 are quick.
- Memorise core ports and whether each service is encrypted.
- Always add a security angle to a networking answer.
Table of Contents
- What Questions Come Up on the OSI and TCP/IP Models?
- What Should You Know About TCP and UDP?
- Which IP Addressing and Subnetting Questions Are Common?
- What Do Interviewers Ask About DNS, DHCP and ARP?
- Which Port Numbers Should You Memorise?
- Which Network Security Questions Are Asked?
- References
What Questions Come Up on the OSI and TCP/IP Models?
Q: Name the OSI layers. Physical, Data Link, Network, Transport, Session, Presentation, Application. The TCP/IP model groups them into Link, Internet, Transport and Application.
| OSI layer | Example protocols or devices | Example threat |
|---|---|---|
| 2 Data Link | Ethernet, switches, ARP | ARP spoofing, MAC flooding |
| 3 Network | IP, ICMP, routers | IP spoofing |
| 4 Transport | TCP, UDP | SYN flood |
| 7 Application | HTTP, DNS, SMTP | SQL injection, phishing |
What Should You Know About TCP and UDP?
Q: Difference between TCP and UDP? TCP (RFC 9293) is connection-oriented, with ordering, acknowledgements and retransmission. UDP (RFC 768) is connectionless with no delivery guarantee, so it suits DNS queries, VoIP and streaming.
Q: Explain the three-way handshake. The client sends SYN, the server replies SYN-ACK, the client sends ACK. A SYN flood sends many SYNs without completing the handshake to exhaust server resources; SYN cookies are one defence.
Which IP Addressing and Subnetting Questions Are Common?
Q: What are the private IPv4 ranges? 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16, defined in RFC 1918. They are not routed on the internet and reach it through NAT.
Q: How many usable hosts in a /26? 64 addresses minus network and broadcast gives 62. A /30 gives 2 usable hosts, used for point-to-point links.
Q: IPv4 versus IPv6? IPv4 uses 32-bit addresses; IPv6 (RFC 8200) uses 128-bit addresses, has no broadcast, and uses Neighbor Discovery instead of ARP.
Q: What is NAT? Network Address Translation rewrites private addresses to a public address at the edge. It saves addresses but is not a security control on its own.
What Do Interviewers Ask About DNS, DHCP and ARP?
Q: What does DNS do? It resolves names to IP addresses (RFC 1035). It uses UDP 53 for most queries and TCP 53 for large responses and zone transfers. Know record types A, AAAA, MX, CNAME, TXT and NS.
Q: Explain DHCP. DHCP (RFC 2131) assigns IP settings through Discover, Offer, Request and Acknowledge (DORA). A rogue DHCP server is blocked by DHCP snooping.
Q: What is ARP and why is it risky? ARP (RFC 826) maps IPv4 addresses to MAC addresses on a LAN. It has no authentication, so forged replies can redirect traffic; Dynamic ARP Inspection defends against this.
Which Port Numbers Should You Memorise?
| Port | Service | Encrypted? |
|---|---|---|
| 22 | SSH | Yes |
| 23 | Telnet | No, avoid |
| 25 | SMTP | Only with STARTTLS |
| 53 | DNS | No, unless DoH or DoT |
| 80 / 443 | HTTP / HTTPS | No / Yes |
| 445 | SMB | Optional in SMB 3 |
| 3389 | RDP | Yes, but never expose to the internet |
The official list is the IANA port registry.
Which Network Security Questions Are Asked?
Q: Firewall versus IDS versus IPS? A firewall allows or blocks traffic by rules (NIST SP 800-41); an IDS detects and alerts; an IPS sits inline and blocks.
Q: Stateful versus stateless firewall? A stateful firewall tracks connections and allows return traffic automatically; a stateless filter checks each packet alone.
Q: What is a VLAN? A logical segment on a switch that limits broadcasts and separates groups of devices.
Practise more with our networking interview questions and cybersecurity interview questions for freshers. WebAsha's networking and cybersecurity training includes mock interviews and labs.
References
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0