awesome-everything RU
↑ Back to the climb

Networking & Protocols

TCP handshake: free-recall review

Crux Free-recall prompts across the TCP-handshake unit. Answer each in your own words first, then reveal the model answer and compare.
Your altitude — climbing toward senior
ZeroJuniorMiddleSenior
You are at senior altitude — in orbit
◷ 13 min

Retrieval beats re-reading. For each prompt, say or write a full answer from memory before you open the model answer — the effort of recall is what makes the mechanism stick.

Goal

Reconstruct the unit’s core mechanisms — why three steps, why random ISNs, how SYN cookies and TIME-WAIT behave at scale, when BBR beats CUBIC, and how TCP relates to QUIC — without looking back at the lessons.

Recall before you leave
  1. 01
    Why does TCP need three messages and not two, and what does each step accomplish?
  2. 02
    Why are Initial Sequence Numbers randomised per connection, and how does RFC 6528 do it?
  3. 03
    What is TIME-WAIT, why does it exist, and what are the production fixes when it causes EADDRNOTAVAIL?
  4. 04
    Explain how a SYN cookie works, and what legitimate connections lose during a flood.
  5. 05
    Why does BBR sustain throughput on a path with ~1% random loss where CUBIC collapses?
  6. 06
    What is TCP's relationship to QUIC, and why did QUIC reinvent TCP's mechanisms over UDP instead of extending TCP?
Recap

If you could reconstruct each answer from memory, you hold the unit’s spine: three steps because both directions must acknowledge an ISN; randomised ISNs to stop injection; TIME-WAIT to absorb stragglers (fixed at scale with pooling and tcp_tw_reuse, never tw_recycle or a shorter MSL); SYN cookies to survive floods at the cost of dropped options; BBR over CUBIC where loss is random not congestive; and QUIC as the same ideas moved above UDP to escape protocol ossification.

Continue the climb ↑TCP handshake: trace and code reading
shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.