TCP/IP is the pair of protocols that carries almost everything on the internet. IP moves individual packets between addresses with no promises; TCP, on top of it, turns that into a reliable, ordered stream between two programs. Understanding them explains most "the network is slow" mysteries.
Key concepts
- IP addressing: IPv4 and IPv6 addresses, subnets, prefixes and the idea of a network versus a host.
- Packets and fragmentation: IP delivers best effort; packets can be lost, duplicated, reordered or too big for a link (MTU).
- TCP connection: a three-way handshake opens it; sequence numbers and acknowledgements make delivery reliable.
- Flow and congestion control: the receiver's window and the sender's congestion window decide how fast data flows.
- UDP: the other transport, with no connection and no guarantees, used when speed or control matters more.
Vocabulary
- Port: a number that tells the host which program gets the data.
- Socket: the programming interface to a connection, defined by addresses and ports.
- NAT: rewriting addresses at a boundary so many hosts share one public address.
- ICMP: the protocol of error and diagnostic messages, behind ping and traceroute.
- RTT: round-trip time, the floor under every request.
What to study, in order
- Binary, subnets and CIDR notation: split a network by hand.
- Use ping, traceroute and
ssornetstaton your own machines, and explain each output line. - Capture a TCP handshake and a close in Wireshark and label every field.
- Write a TCP echo server and client with sockets; then the same with UDP.
- Study slow start, retransmission timers and congestion control, and reproduce loss on a lab link.
Related tags
#protocols #routing #dns #network-administration #protocol-analysis