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.

HardSystem Design
0 practiced
Design a globally distributed messaging service supporting 10 million concurrent long-lived TCP connections (WebSockets). Explain transport-layer concerns: per-node TCP connection limits, load balancer session affinity, NAT timeouts, connection draining during deployments, TLS termination options, and strategies to minimize the impact of cross-region latency and packet loss on user experience.
EasyTechnical
0 practiced
Give concrete real-world examples where you'd choose TCP and where you'd choose UDP for a cloud service. For each example justify the choice in terms of reliability, latency, head-of-line blocking, deployment complexity, monitoring implications, and client compatibility.
MediumTechnical
0 practiced
Compare TCP congestion control algorithms relevant for cloud and data center deployments: Reno, Cubic, and BBR. From an SRE standpoint, what are their advantages and drawbacks, when might you prefer one over another, and which metrics should you monitor after changing the default algorithm?
HardTechnical
0 practiced
Define service-level objectives (SLOs) for transport-layer reliability for an internal RPC API that serves both HTTP/2 over TCP clients and experimental gRPC over QUIC clients. Propose specific SLOs (e.g., connection success rate, P99 RTT, session stability), how to treat transient packet loss versus sustained loss in error budgets, which transport metrics to collect, and how transport-layer incidents should feed into SLO burn and escalation.
MediumSystem Design
0 practiced
Design how to expose a UDP-based service (example: DNS or RTP) in Kubernetes. Discuss Service types (ClusterIP, NodePort, LoadBalancer), kube-proxy modes (iptables vs ipvs), conntrack implications, health checks for UDP endpoints, and how to ensure low-latency packet forwarding.

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.