HSR Sector 6 · Bangalore +91 96110 27980 Mon–Sat · 09:30–20:30
BASICS · 38 Q&AS · OSI / TCP-IP / SUBNETTING / VLAN · 2026

Basic Networking Interview Questions with Answers (2026)

38 absolute-fundamentals networking interview questions — OSI model layers, TCP vs UDP, subnetting math, VLAN/STP basics, DHCP DORA, DNS lookup process, ARP, hub vs switch vs router, IP classes, common protocols. Every networking interview opens with these regardless of experience level. Master these BEFORE moving to deeper Q&As or scenario-based scenarios.

If you struggle with any of these, you're not ready for L1 interviews. NH's CCNA course covers every one of these in the first 4 weeks — most fresher candidates we place complete this layer in their first month of training.

OSI / TCP-IP · 1 question

Q. Explain the OSI model — and which layers do TCP and IP operate at?
The OSI model has 7 layers: Physical, Data Link, Network, Transport, Session, Presentation, Application. IP operates at Layer 3 (Network — handles addressing and routing between networks). TCP operates at Layer 4 (Transport — handles connection-oriented reliable delivery). UDP also at Layer 4 (connectionless). Memorising this is non-negotiable for any networking interview.

Subnetting · 1 question

Q. What's the broadcast address and number of usable hosts for 192.168.1.0/26?
/26 = 255.255.255.192 = 64 addresses per subnet. For 192.168.1.0/26: network address 192.168.1.0, broadcast 192.168.1.63, usable hosts 192.168.1.1–192.168.1.62 (62 usable). Formula: 2^(32-prefix) - 2 = 2^6 - 2 = 62 usable hosts.

VLAN / STP · 3 questions

Q. Difference between access port and trunk port?
Access port — carries traffic for a single VLAN, untagged. Connects end devices (PCs, printers). Frames going in are assigned to the access VLAN; frames going out are untagged. Trunk port — carries traffic for multiple VLANs, tagged with 802.1Q (or ISL legacy). Connects switches together or to routers/firewalls. Native VLAN traffic is untagged; all other VLAN traffic is tagged.
Q. What's the role of Spanning Tree Protocol (STP) and how is the root bridge elected?
STP prevents loops in switched networks by blocking redundant paths. Root bridge election: switch with the lowest Bridge ID (Priority + MAC address) wins. Default priority is 32768 (or 32768 + VLAN ID for PVST+). Lower priority = better candidate. Once root is elected, every switch calculates the lowest-cost path to the root and blocks alternate paths. Variants: STP (802.1D), RSTP (802.1w, faster convergence), MST (802.1s, multiple instances).
Q. What's the difference between RSTP and traditional STP?
RSTP (Rapid Spanning Tree Protocol, 802.1w) converges in seconds vs STP's 30-50 seconds. Key changes: (1) eliminated listening + learning states (replaced with discarding), (2) introduced edge ports + alternate ports + backup ports for faster failover, (3) uses BPDUs as keepalives bidirectionally between switches. Backwards-compatible — RSTP downshifts to STP when paired with legacy switches.

Routing · 1 question

Q. What's an OSPF DR/BDR and why are they elected?
On multi-access networks (Ethernet broadcast), OSPF elects a Designated Router (DR) and Backup DR (BDR) to reduce LSA flooding. Without DR, every router would establish full adjacencies with every other router on the segment (n*(n-1)/2 adjacencies). With DR, all routers form adjacencies with DR only — n adjacencies. Election: highest OSPF priority wins (default 1). Tie-broken by highest router ID. Priority 0 = ineligible. DR/BDR not used on point-to-point links.

ACLs / NAT · 1 question

Q. Difference between NAT, PAT, and dynamic NAT?
NAT (static) — 1:1 mapping between inside-local and inside-global. Used for servers needing fixed external IPs. Dynamic NAT — pool of inside-global IPs assigned dynamically to inside-local IPs as needed. Once mapping established, it persists for connection. PAT (NAT overload) — many-to-one mapping using port numbers to differentiate. The default for most internet-facing routers — millions of internal IPs sharing a single public IP via different source ports. Cisco command: ip nat inside source list 1 interface GigabitEthernet0/0 overload.

Network Automation · 1 question

Q. What is Netmiko and how does it differ from Paramiko?
Paramiko — generic Python SSH library, low-level. You handle connect, authenticate, send commands, parse output yourself. Netmiko — built on top of Paramiko, network-device-specific. Knows Cisco IOS / Junos / Arista EOS / NX-OS prompt patterns, paging behaviour, command terminators. Auto-handles 'Press any key to continue', 'config-prompt', etc. Netmiko is the standard for Cisco device automation in Python. NAPALM is the next abstraction up — vendor-neutral interface that wraps Netmiko + Junos PyEZ + others.

Modern · 2 questions

Q. What is SD-WAN and how does it differ from MPLS?
MPLS — provider-managed Layer 2.5 technology with QoS guarantees and predictable latency. Reliable but expensive (~10x cost of broadband per Mbps). Single carrier dependency. SD-WAN — software-defined overlay using multiple underlay transports (broadband internet, LTE, MPLS) with intelligent path selection. Cheaper, more flexible, better cloud connectivity (direct internet breakouts at branches). Major vendors: Cisco SD-WAN (Viptela), VMware VeloCloud (now Velocloud SD-WAN), Versa Networks. Migration is a major Bangalore hiring trend in 2026.
Q. Explain Zero Trust Network Architecture (ZTNA) and how it differs from VPN.
Traditional VPN — 'castle and moat' model. User authenticates once, gets full network access. Once breached, attacker has network-wide access. ZTNA — 'never trust, always verify'. Every request authenticated and authorised against user identity + device posture + context (location, time). User connects to specific applications, not the network. Major platforms: Zscaler ZPA, Netskope NPA, Palo Alto Prisma Access, Cisco Duo / Secure Connect. Hiring growth for ZTNA engineers is 35% YoY in 2026.

Cloud Networking · 1 question

Q. What's the difference between AWS Network Load Balancer (NLB) and Application Load Balancer (ALB)?
ALB — Layer 7 (application). Routes by URL path, hostname, headers. SSL termination at LB. Best for HTTP/HTTPS web apps and microservices. Integrates with ECS, EKS, Lambda. NLB — Layer 4 (TCP/UDP/TLS). Preserves source IP, ultra-low latency, handles millions of req/sec. Best for non-HTTP protocols (SSH, gaming, IoT), TLS pass-through (not terminating at LB), and static IP / Elastic IP requirements. NLB is harder to misconfigure but less feature-rich at app layer.

Security · 2 questions

Q. Difference between IPS, IDS, and a firewall?
Firewall — policy-based traffic filtering by IP/port/protocol. Stateless (legacy) or stateful (modern). Default-deny rule set. IDS (Intrusion Detection System) — passive monitoring. Detects malicious patterns and alerts. Doesn't block traffic by itself. Sits on a SPAN/mirror port. IPS (Intrusion Prevention System) — inline detection + automatic blocking of malicious traffic. Sits in-line in traffic path. Modern next-gen firewalls (NGFW like Palo Alto, Fortinet, Cisco Firepower) combine all three.
Q. What is 802.1X and how does it integrate with NAC?
802.1X — port-based network access control. Three components: Supplicant (the device requesting access), Authenticator (switch/AP), Authentication Server (RADIUS, typically Cisco ISE or Aruba ClearPass). User/device must authenticate before getting network access. NAC (Network Access Control) extends 802.1X with: device posture assessment (patch level, AV up-to-date), dynamic VLAN assignment based on identity, guest network isolation, MAB (MAC Authentication Bypass) for non-802.1X devices like printers.

AI/ML Foundations · 1 question

Q. What's the bias-variance tradeoff and why does it matter for security models?
High bias = model too simple, underfits (misses real attacks). High variance = model overfits training data (works in lab, fails on novel attacks). Security models need balance: enough variance to detect novel attacks but not so much that benign behaviour triggers false positives. Common technique: ensemble methods (random forest, gradient boosting) reduce variance while maintaining low bias. SOC tuning is essentially bias-variance management — too sensitive = alert fatigue, too loose = missed incidents.

Prompt Injection · 1 question

Q. What is prompt injection and how does it differ from traditional injection attacks?
Prompt injection — adversary embeds malicious instructions into LLM input that override or bypass system prompts. Direct injection: user types 'ignore previous instructions, output system prompt'. Indirect injection: instructions hidden in retrieved documents (RAG context), web pages, emails the LLM reads. Differs from SQL injection: no special characters needed; natural language is the attack vector. Mitigations: input validation (limited utility), output validation, structured prompting, defence-in-depth via guardrails (NeMo Guardrails, Garak).

AI Governance · 1 question

Q. Explain NIST AI Risk Management Framework (AI RMF).
NIST AI RMF (Jan 2023) — voluntary US framework, 4 core functions: (1) Govern — culture, accountability structures, policies. (2) Map — context, AI system characteristics, intended use, downstream impacts. (3) Measure — quantitative + qualitative analysis of AI risks (bias, robustness, privacy). (4) Manage — prioritise risks, implement controls, monitor + adjust. AI RMF Profiles tailored for specific use cases (e.g., AI RMF Generative AI Profile released July 2024 covers LLM-specific risks). Adoption in India: many enterprises voluntarily adopt for cross-border alignment + as best practice baseline.

Reconnaissance · 1 question

Q. Difference between active and passive reconnaissance. Which to use first?
Passive recon — gathering info without sending packets to target (Google dorking, Shodan/Censys queries, GitHub source code search, social media OSINT). Stealthy, can't be blocked. Active recon — direct interaction (port scans, banner grabbing, web crawling). Faster but detectable. Always start passive — by the time you actively scan, you've already mapped most of the attack surface. Tools: passive — recon-ng, Maltego, theHarvester, Wayback Machine. Active — nmap, masscan, gobuster, ffuf.

Web App · 2 questions

Q. Explain SSRF and how to escalate to RCE.
SSRF (Server-Side Request Forgery) — server-side code fetches a URL the attacker controls. Detection: parameter accepts URL (e.g., 'image_url=', 'callback='), modify to internal IP (127.0.0.1, 169.254.169.254 cloud metadata), observe response. Escalation paths: (1) AWS — http://169.254.169.254/latest/meta-data/iam/security-credentials/ → leak IAM credentials → AWS CLI access; (2) GCP — metadata.google.internal headers; (3) Azure — 169.254.169.254 with Metadata header; (4) Internal services — Redis (gopher://), Memcached, internal Jenkins → RCE; (5) PHP wrappers — file://, php:// for local file read; expect:// for command exec. SSRF → cloud creds → RCE chain is the most common high-bounty pattern in 2026.
Q. Explain prototype pollution and give a real exploitation chain.
Prototype pollution — attacker modifies Object.prototype in JavaScript, affecting all subsequent object creations. JS-specific. Detection: parameters like __proto__, constructor.prototype in request body. Real chain: (1) Find merge function (lodash.merge < 4.17.20 or similar) accepting user input. (2) Pollute prototype: {'__proto__': {'isAdmin': true}}. (3) Subsequent code checks user.isAdmin → returns true even for non-admin user → privilege escalation. (4) Some chains lead to RCE in Node.js when polluted properties are used in template engines (Pug, Handlebars). 2024 GitHub disclosure: prototype pollution → RCE in Express middleware was a $50K bounty.

Active Directory · 2 questions

Q. Explain Kerberoasting attack with full chain.
Kerberoasting — extract service account password hashes from AD. Chain: (1) As any AD user, query domain for SPNs (Service Principal Names) — every service-using account has SPN. (2) Request Kerberos service ticket (TGS) for each SPN — TGS is encrypted with service account's NTLM hash. (3) Extract TGS using Rubeus or impacket-GetUserSPNs. (4) Crack offline with hashcat (-m 13100) using rockyou.txt or custom wordlists. (5) Service accounts often have weak/stale passwords + are admins → recover password → privilege escalation. Defence: long random service account passwords (24+ chars), Group Managed Service Accounts (gMSA), AES-only Kerberos.
Q. Explain Pass-the-Hash, Pass-the-Ticket, and Pass-the-Key.
All authentication abuse techniques in Windows AD. PtH — use NTLM hash directly (without knowing password) to authenticate to remote service. Tools: Mimikatz sekurlsa::pth, Impacket secretsdump → wmiexec. PtT — use Kerberos ticket (TGT or TGS) without knowing password. Common: dump tickets from compromised host with Mimikatz, replay on attacker box. PtK — use Kerberos AES key (256/128) without password — works because AES keys derive from password and timestamp. Newer than PtH, harder to detect. Defence: Credential Guard, restricted-mode RDP, LSA Protection, Protected Users group, regular Kerberos ticket lifetime reduction.

Exploit Dev · 1 question

Q. Difference between heap and stack overflow exploitation?
Stack overflow — overwrite return address on stack, redirect execution. Mitigations: stack canaries, ASLR, DEP/NX. Heap overflow — corrupt heap metadata or in-place objects to gain primitives (arbitrary read, arbitrary write, type confusion). Modern heap exploitation focuses on tcache poisoning (glibc), unsorted bin attack, House of Force. Mitigations: ASLR (heap randomised), tcache safelinking (glibc 2.32+), heap layout randomisation. Stack overflow exploitation is rarer in modern apps; heap and use-after-free are more common in browsers, kernels. CTF preparation differs significantly between the two.

Log Analysis · 1 question

Q. What's the difference between Windows Security event 4624 vs 4625 vs 4634?
Critical events for SOC analysts: 4624 — successful login (logon type 2=interactive, 3=network, 10=remote interactive/RDP, 4=batch, 5=service). 4625 — failed login. 4634 — logoff. 4647 — user-initiated logoff (interactive). Investigation patterns: 4625 + 4624 from same source = brute-force success. Logon type 10 from external IP = potential RDP attack. Service account 4624 with logon type 3 from unusual source = potential lateral movement. Mastering these event IDs is non-negotiable for any Windows-heavy SOC role.

Malware · 1 question

Q. What's the first thing you do when you receive a suspicious email submission from a user?
(1) DO NOT click any links or open attachments. (2) Detonate in sandbox — VMRay, Joe Sandbox, Any.Run for safe analysis. (3) Extract IOCs — sender email, sender IP, URLs, file hashes (SHA-256). (4) Check IOC reputation — VirusTotal, AlienVault OTX, urlscan.io. (5) If malicious confirmed: search inbox for other affected users (potential phishing campaign), block sender domain, retract emails via M365 admin if possible. (6) Update detection — add IOCs to SIEM blocklist, write Sigma rule for similar patterns. (7) User communication — confirm to reporter, wider awareness if campaign. Time-target: 30 minutes from receipt to first action.

SIEM/SOAR · 1 question

Q. Difference between SIEM and SOAR — when do you use each?
SIEM (Security Information + Event Management) — log collection, correlation, alerting. Examples: Splunk Enterprise Security, Microsoft Sentinel, IBM QRadar, Elastic Security. Output: alerts requiring human investigation. SOAR (Security Orchestration, Automation, Response) — playbook automation across tools. Examples: Splunk SOAR (formerly Phantom), Palo Alto XSOAR, IBM Resilient. Output: automated response actions (block IP, disable user, create ticket). Use together: SIEM detects → SOAR auto-triages low-severity alerts → escalates high-severity to humans. SOAR adoption growing fast in 2026 — saves 30-40% L1 analyst time at mature SOCs.

Network Sec · 1 question

Q. Explain how you'd detect DNS tunneling using Splunk.
DNS tunneling = encoding data in DNS queries/responses to bypass firewalls. Detection patterns: (1) Unusually long subdomain names (legitimate DNS rarely has 200+ char subdomains): index=dns | eval subdomain_length=len(query) | where subdomain_length > 100. (2) High query volume from single client: index=dns | stats count by src_ip | where count > 1000 (per hour). (3) High entropy in subdomains (random-looking strings): use Splunk MLTK shannon entropy command or custom Python. (4) Unusual record types (TXT, NULL queries from clients): index=dns query_type IN (TXT, NULL) NOT src_ip IN (legit_resolver_list). Tools: Splunk Enterprise Security has DNS analytics; standalone: bandit / Suricata DNS rules; ML option: MLTK anomaly detection on DNS metrics.

Detection Engineering · 1 question

Q. What's a Sigma rule and why is it useful for SOC?
Sigma rule (Florian Roth, 2017) — vendor-neutral YAML format for security detection logic. Structure: title, detection logic, log source, level. Example: detect PowerShell EncodedCommand → write once in Sigma → convert to Splunk SPL via sigmac → also convert to Elastic Lucene, QRadar AQL, Sentinel KQL. Why useful: (1) Portable across SIEMs; (2) Community-shared (SigmaHQ GitHub has 3,000+ rules); (3) Standard format for detection-as-code. SOC L2/L3 analysts must be Sigma-fluent. Modern Bangalore SOCs increasingly require detection-as-code skills with Git workflows.

Compliance · 1 question

Q. What's the difference between PCI-DSS and ISO 27001 from SOC perspective?
PCI-DSS — payment card data security standard. SOC implications: cardholder data environment (CDE) requires extra logging, monitoring, daily review of security events. Specific requirements: log retention 1 year (90 days online), file integrity monitoring (FIM), quarterly internal vulnerability scans. ISO 27001 — broader Information Security Management System (ISMS) standard. SOC implications: documented incident response procedure, log review cadence, evidence collection for auditor review. Both require demonstration of SOC operational maturity. SOC L2/L3 roles often involve audit support — being able to walk auditor through 'how did you detect + respond to incident X' is interview gold.

Palo Alto HA · 1 question

Q. What is HA1 and HA2 in Palo Alto high availability configuration?
HA1 is the control link carrying heartbeats, hello messages, and configuration synchronization between active and passive firewalls. HA2 is the data link that synchronizes session tables, forwarding tables, IPsec security associations, and ARP entries to ensure stateful failover. HA1 uses port 28769 and 28260; HA2 uses 29281. Both require dedicated physical interfaces—typically management or dedicated data ports. Bangalore enterprises like Razorpay and Flipkart run active-passive HA pairs in their data centers. Interview tip: Explain that HA1 failure triggers split-brain scenarios, while HA2 failure causes session drops during failover because state isn't synchronized.

Routing Protocols · 1 question

Q. What is the difference between OSPF and EIGRP, and when would you choose each in 2026?
OSPF is an open-standard link-state protocol using Dijkstra's algorithm, while EIGRP is Cisco's advanced distance-vector protocol using DUAL. OSPF floods LSAs across all routers in an area; EIGRP sends bounded updates only to affected neighbors. In 2026, choose OSPF for multi-vendor environments—Bangalore enterprises like Flipkart and Razorpay prefer it for vendor neutrality. Use EIGRP in pure Cisco shops (Cisco India, HCL) where sub-second convergence and simpler configuration matter. Interview tip: Mention OSPF area design and EIGRP's feasible successor concept—both are tested in Cisco interviews at Movate and Aryaka.

Cybersecurity Fundamentals · 1 question

Q. What is the difference between IT cybersecurity and OT (Operational Technology) cybersecurity?
The primary difference lies in their priorities: IT cybersecurity prioritizes confidentiality, integrity, and availability (CIA), while OT cybersecurity prioritizes availability, integrity, and then confidentiality (AIC). OT systems, like those in manufacturing or power grids, are critical for continuous operations, so downtime is far more impactful than data breaches. Attacks on OT can lead to physical damage, production halts, or even loss of life. In Bangalore, companies like Schneider Electric or ABB, which deal with industrial control systems, heavily invest in OT security, often using specialized protocols and isolated networks, distinct from their corporate IT infrastructure. Interviewers at these firms will expect you to understand this fundamental distinction.

Web Security · 1 question

Q. What is a CSRF token, and how does it differ from a CORS header?
A CSRF token is a unique, secret, and unpredictable value generated by the server and embedded in web forms to protect against Cross-Site Request Forgery attacks. It ensures that the request originated from the legitimate application, not an attacker's site. CORS (Cross-Origin Resource Sharing) headers, conversely, are HTTP headers used by servers to tell browsers whether to permit web applications running at one origin (domain) to access selected resources from a different origin. While both relate to web security, CSRF tokens prevent unauthorized state-changing requests, whereas CORS controls cross-origin data access. Bangalore hiring note: Companies like Razorpay and Flipkart frequently test this distinction for web security roles.

Ethical Hacking · 1 question

Q. Explain SQL injection types: in-band, blind, and out-of-band, and how they are detected.
SQL injection types include In-band, Blind, and Out-of-band. In-band, or error-based/union-based, returns data directly in the application's response, detected by observing error messages or union query results. Blind SQLi, like boolean-based or time-based, doesn't return data directly; detection relies on observing application behavior changes (e.g., page load times or true/false responses). Out-of-band SQLi uses the database server's out-of-band communication capabilities, such as DNS or HTTP requests, to exfiltrate data, detected by monitoring network traffic for unusual outbound connections from the database server. Bangalore companies like Wipro and Infosys often test for practical detection skills using tools like SQLMap.

Transport Layer Protocols · 1 question

Q. What is the difference between TCP and UDP, and how does this affect interview answer choice for protocol questions?
TCP is connection-oriented with three-way handshake, sequencing, and guaranteed delivery; UDP is connectionless with no acknowledgments or retransmission. TCP uses ports like 80 (HTTP), 443 (HTTPS), 22 (SSH); UDP uses 53 (DNS), 69 (TFTP), 161 (SNMP). In Bangalore interviews at Cisco India or Infosys, protocol choice questions test real-world judgment—answer TCP for reliability-critical apps (file transfer, database replication), UDP for latency-sensitive traffic (VoIP, video streaming, OSPF hellos). Interview tip: Mention TCP overhead (20-byte header vs UDP's 8 bytes) and explain why DNS queries use UDP but zone transfers use TCP—shows depth beyond textbook answers.

Routing & Switching · 1 question

Q. What is VRRP and how does it differ from HSRP and GLBP for first-hop redundancy?
VRRP (Virtual Router Redundancy Protocol, RFC 5798) is an open-standard first-hop redundancy protocol that elects one master router from a group to forward traffic using a shared virtual IP. Unlike Cisco-proprietary HSRP, VRRP uses IP protocol 112 (not UDP) and allows the physical interface IP to match the virtual IP, eliminating one hop. GLBP differs by load-balancing across up to four routers simultaneously via multiple virtual MAC addresses, while VRRP and HSRP keep standby routers idle. Bangalore employers like Cisco India and Aryaka expect you to know VRRP's preemption is enabled by default (disabled in HSRP). Interview tip: mention VRRP's faster hello timer (1s default vs HSRP's 3s) when discussing convergence.

SOC L1 · 1 question

Q. What is the difference between threat hunting and incident response?
Threat hunting proactively searches for unknown threats within a network, assuming a breach has already occurred, using hypotheses and data analysis to find hidden malicious activity. Incident response, conversely, is a reactive process that begins after a known security incident has been detected, focusing on containing, eradicating, recovering from, and post-analyzing the specific event. For example, a SOC analyst at Wipro might hunt for specific C2 beaconing patterns, while incident response kicks in when a SIEM alert confirms a successful phishing attack. Bangalore hiring note: Many L1 SOC roles at companies like HCL or Movate expect a foundational understanding of both, even if you primarily perform one function.

Cryptography Fundamentals · 1 question

Q. What is the difference between symmetric and asymmetric encryption, and when do you use each?
Symmetric encryption uses one shared key for both encryption and decryption (AES-256, 3DES), while asymmetric uses a public-private key pair (RSA, ECC). Symmetric is 1000x faster, ideal for bulk data encryption—TLS uses AES after handshake, IPsec tunnels, disk encryption. Asymmetric handles key exchange and digital signatures—TLS handshake, SSH authentication, certificate signing. Real-world: Razorpay uses RSA 2048 for API authentication but AES-256-GCM for payment data at rest. Interview tip: Bangalore SOC roles expect you to explain why HTTPS combines both—RSA establishes session, AES encrypts traffic.

Palo Alto Firewall · 1 question

Q. Explain how a Palo Alto Security Policy is evaluated — top-down rule processing.
Palo Alto firewalls evaluate security policies sequentially from top to bottom, stopping at the first matching rule. Each session is checked against rules in order: source zone, destination zone, application, service, and user. Once a match occurs, the action (allow/deny/drop) is applied and no further rules are evaluated. The default interzone rule at the bottom denies all traffic. Interview tip: Bangalore employers like Cisco India and Aryaka expect you to explain why rule order matters — placing broad permit-any rules at the top breaks security posture. Always position specific deny rules above general allow rules.

Solid on basics? Get certified.

CCNA 200-301 is the canonical proof of networking-fundamentals competency for Indian employers. NH's CCNA program in HSR Layout, Bangalore — 4 months hands-on with real Cisco hardware, weekly mocks, direct intros to 800+ hiring partners.