How shit works: TCP/IP
summary
Explains how TCP creates a point-to-point bi-directional byte stream on top of IP using a three-way handshake, measures RTT for adaptive timers, and enforces flow control with sliding windows and advertised receive window sizes. Describes retransmission via per-segment RTO (historically 3s then ~1s) and the optimization TCP fast retransmission (retransmit after three duplicate ACKs). Covers orderly teardown with FIN/ACK, TIME_WAIT and why disabling SO_LINGER causes “connection reset by peer.”
AI-written summary · about
chapters (9)
- 0:00The ideal communication
- 2:12Communication challenges
- 4:05Infrastructure abstractions
- 7:53The need for protocols
- 11:08TCP design requirements
- 16:46TCP mechanisms
- 24:08Flow and retransmission
- 35:05Adaptive network dynamics
- 41:51Connection termination
related talks
53mHow shit works: TCP/IP
23mACK to the Future: TCP in 2025
23mThe Short and Happy Lives of TCP and HTTP Requests
15mHA/TCP: A Reliable and Scalable Framework for TCP Network Functions
43mHow internet congestion control actually works in the bufferbloat age
16mPowerTCP: Pushing the Performance Limits of Datacenter Networks
31mwww.yougottalovefrontend.com
16mR-TCP: A Framework to Optimize TCP Performance Over Rate-Limiting Networks
