← Back to Home

Networking Interview Questions — What Senior Engineers Need to Know

Networking fundamentals underpin every distributed system and web application. Senior engineers are expected to understand not just what TCP does, but how the three-way handshake works, why Nagle’s algorithm exists, and what actually happens when you type a URL into a browser.

These 13 questions cover the networking concepts most relevant to backend and full-stack interviews: protocol differences, connection lifecycle, DNS resolution, TLS handshakes, and HTTP/2 improvements. Understanding these deeply helps you debug production issues and make informed architectural decisions.

All 13 Questions

TCP — 3-Way HandshakeMid
Explain the TCP 3-way handshake.

The TCP three-way handshake establishes a reliable, ordered connection between a client and server before any application data is exchanged. It serves two purposes: confirming bidirectional connectivity and synchronizing the initial sequence numbers (ISNs) that TCP uses to order and acknowledge s…

Read full answer →
TLS — Certificate, DH, AESSenior
How does TLS work? Explain certificates, Diffie-Hellman, and AES.

TLS (Transport Layer Security) provides authentication, confidentiality, and integrity for network connections. It layers three distinct mechanisms to solve three distinct problems: certificates for authentication, Diffie-Hellman for key exchange, and AES for bulk encryption.

Read full answer →
TCP vs UDPMid
What is the difference between TCP and UDP?

TCP and UDP are both transport layer protocols that sit on top of IP, but they make fundamentally different trade-offs between reliability and performance.

Read full answer →
HTTP vs HTTPSEntry
What is the difference between HTTP and HTTPS?

HTTP (Hypertext Transfer Protocol) is the application-layer protocol for transferring web resources — HTML, JSON, images, etc. — between clients and servers. HTTPS is HTTP over TLS (Transport Layer Security). The 'S' stands for secure, and it adds three properties that plain HTTP lacks: confident…

Read full answer →
WebSocketsMid
What are WebSockets and when would you use them instead of HTTP?

WebSockets are a protocol (RFC 6455) that provides full-duplex, persistent communication over a single TCP connection. Unlike HTTP's request-response model, where the client initiates every exchange, a WebSocket connection allows both the client and server to send messages independently at any ti…

Read full answer →
REST vs gRPCMid
What is the difference between REST and gRPC?

REST (Representational State Transfer) and gRPC are both approaches for building networked APIs, but they make fundamentally different tradeoffs optimized for different contexts.

Read full answer →
OSI LayersMid
What are the 7 OSI layers and what does each do?

The OSI (Open Systems Interconnection) model is a conceptual framework that divides network communication into 7 ordered layers, each providing services to the layer above and consuming services from the layer below. While real protocols (TCP/IP) don't map cleanly onto OSI, the model remains the …

Read full answer →
CORS + PreflightMid
What is CORS and how does the preflight request work?

CORS (Cross-Origin Resource Sharing) is a browser security mechanism that controls whether JavaScript running on one origin (scheme + host + port) can make HTTP requests to a different origin. Without CORS, the Same-Origin Policy would block all such requests entirely.

Read full answer →
HTTP/1.1 vs HTTP/2 vs HTTP/3Senior
What are the key differences between HTTP/1.1, HTTP/2, and HTTP/3?

HTTP has evolved through three major versions, each addressing the performance limitations of its predecessor.

Read full answer →
HTTP Request StructureEntry
What is the structure of an HTTP request?

An HTTP/1.1 request is a plaintext message with four structural parts:

Read full answer →
HTTP Status CodesMid
What are the main HTTP status code categories and key codes?

HTTP status codes are three-digit integers grouped into five classes by their leading digit. Understanding the distinction between classes, and the semantics of individual codes, is essential for building correct APIs and debugging client-server interactions.

Read full answer →
HTTP Methods — IdempotencyMid
Which HTTP methods are idempotent and why does it matter?

An HTTP method is **idempotent** if making the same request N times produces the same server state as making it once. It is **safe** if it does not modify server state at all. These properties are not just academic—they directly determine whether a client or proxy can safely retry a request after…

Read full answer →
GraphQL vs RESTSenior
What are the differences between GraphQL and REST?

REST and GraphQL are both API paradigms, but they optimise for different constraints. The right choice depends on client diversity, data shape variability, team structure, and caching requirements.

Read full answer →

How to Prepare

Focus on understanding concepts deeply enough to explain them in your own words. For each topic, practice articulating the trade-offs and real-world applications — interviewers care about practical judgment, not textbook definitions.

Related Topics

  • System Design Interview Questions
  • Security Interview Questions
  • Infrastructure Interview Questions

Test Your Knowledge

Take a free AI-graded assessment across multiple domains. No signup required.

Start Free Assessment
GrindQuestionsAITechnical interview assessment
TermsPrivacyAbout