NETWORKING / A CONCEPT NOTE
TCP/IP
the foundation all internet communication rides on
Overview · mechanism
pitfall · examples
01 / THE SHORT VERSION
The idea in a few sentences.
Data is split into packets, each tagged with source and destination IP and port. TCP guarantees delivery by numbering packets and retransmitting lost ones. IP handles routing — hopping across routers until the destination network is reached.
02 / FOLLOW THE MECHANISM
How a packet travels
Sender
breaks data into segments, assigns sequence numbers, and sends them to the local gateway.
Routers
examine the destination IP, consult routing tables, and forward each packet hop by hop.
Receiver
reassembles segments in order and sends ACKs back. Lost packets trigger automatic retransmission.
Sender
adjusts send rate based on congestion signals (TCP slow start / congestion avoidance).
04 / COMMAND NOTES
Read the command, then the result.
Inspect the flags and arguments before trying an example. Snippets can need local setup, replacement values, or resources in your own environment.
check latency and packet loss
ping -c 5 supraj.devsee every hop packets take
traceroute supraj.dev05 / CHECK YOURSELF
Could you explain TCP/IP to a teammate?
Try it out loud in two sentences: what it is, and the one detail that changes the picture. If you stall, the gap is the part to reread.
Up next in NetworkingLoad Balancersdistributing traffic across servers to keep things fast and reliable