InterviewStack.io LogoInterviewStack.io

Transport Layer Protocols Questions

Comprehensive understanding of transport layer protocols, primarily Transmission Control Protocol (TCP) and User Datagram Protocol (UDP), and related protocols used for diagnostics such as Internet Control Message Protocol (ICMP). Candidates should be able to explain TCP as a connection oriented, reliable, ordered, and flow controlled protocol including the three way handshake for connection establishment, the four step connection teardown, retransmission and timeout behavior, and high level congestion control and flow control mechanisms. Describe TCP header structure and key fields used for reliability and ordering. Explain UDP as a connectionless, best effort, lower latency protocol, its datagram model, simple header structure, and trade offs for reliability and ordering. Give real world use cases and justify protocol choice, for example reliable file transfer and web traffic versus low latency streaming, real time voice, and many DNS queries. Discuss port numbers and common service ports such as HTTP port 80, HTTPS port 443, DNS port 53, SSH port 22, and SMTP port 25, and how sockets and ports map to endpoints. Cover practical topics such as when UDP may fall back to TCP, how fragmentation and packet loss affect each protocol, and the role of ICMP for network diagnostics and error reporting.

EasyTechnical
0 practiced
Explain UDP's datagram, connectionless model and its trade-offs compared to TCP from an SRE perspective. Discuss header simplicity, lack of built-in retransmission or ordering, typical use cases (DNS, RTP, telemetry), and operational implications for monitoring, error handling, and capacity planning.
MediumSystem Design
0 practiced
You operate a busy iptables NAT load balancer and hit conntrack limits, causing dropped or rejected new connections. Explain how nf_conntrack table exhaustion causes outages, how to diagnose 'nf_conntrack_full' events and conntrack table pressure, and design changes (conntrack tuning, stateless load balancing with ipvs, adjusting timeouts, or using hardware LB) to handle millions of connections.
MediumTechnical
0 practiced
Your authoritative DNS servers are seeing increased latency because many clients now use DNS-over-TLS (DoT) and DoH over TCP/TLS rather than UDP. Explain the impact on server connection capacity, TLS handshake CPU and memory usage versus UDP, and describe how you would scale and instrument name servers to handle mixed UDP/TCP workloads while minimizing latency.
EasyTechnical
0 practiced
Explain the role of ICMP in network diagnostics and error reporting. Describe common ICMP message types (Echo Request/Reply, Destination Unreachable with fragmentation-needed, Time Exceeded) and illustrate scenarios where ICMP is necessary for operations such as path MTU discovery and traceroute.
EasyTechnical
0 practiced
Explain TCP TIME_WAIT: why it exists, what role it serves on the active closer, and implications for SRE tasks such as port reuse, server restarts, and ephemeral port exhaustion. Mention safe kernel knobs to consider and why options like tcp_tw_recycle were deprecated or problematic in NATed environments.

Unlock Full Question Bank

Get access to hundreds of Transport Layer Protocols interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.