Skip to content
ExamRizzInterview readingReading
Leave

STEM · Computer Science · Foundational Concepts/Principles

Save

Networking and Protocols

Significance: Networks enable distributed systems. Layered architecture: physical, data link, network (IP), transport (TCP/UDP), application (HTTP, DNS, SMTP). TCP provides reliable, ordered delivery; UDP provides fast, unreliable delivery. Understanding protocols essential for web development, distributed systems, cybersecurity.

Questions to think through

  1. Explain TCP handshake: Establish connection via 3-way handshake: (1) Client sends SYN (synchronize sequence number) (2) Server responds SYN-ACK (acknowledge + synchronize own sequence) (3) Client sends ACK. Now connected. Why 3-way (not 2-way)? Two-way is vulnerable to replayed packets. Sequence numbers prevent duplicates/replays. What happens if SYN is lost? Client retransmits after timeout. Explain how TCP ensures reliability: acknowledgments, retransmission, flow control (sliding window).

    explain
  2. Compare TCP vs UDP: TCP: connection-oriented, reliable, ordered, slower overhead. UDP: connectionless, unreliable, fast. When to use each? TCP: web (HTTP), email (SMTP), file transfer (FTP)—correctness matters. UDP: video streaming (loss tolerable, latency critical), DNS queries (short, retransmit if no response), gaming (real-time, old data useless). Explain how video streaming tolerates packet loss but web browsing cannot (corrupted HTML breaks page, but dropped video frame barely noticeable).

    explain

Networking · TCP/IP · Protocols · Network Architecture · TCP vs UDP · Distributed Systems