NETWORKING / A CONCEPT NOTE

TCP/IP

the foundation all internet communication rides on

~70 sec read

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

  1. Sender

    breaks data into segments, assigns sequence numbers, and sends them to the local gateway.

  2. Routers

    examine the destination IP, consult routing tables, and forward each packet hop by hop.

  3. Receiver

    reassembles segments in order and sends ACKs back. Lost packets trigger automatic retransmission.

  4. 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.

EXAMPLE 01 · REFERENCE

check latency and packet loss

ping -c 5 supraj.dev

EXAMPLE 02 · REFERENCE

see every hop packets take

traceroute supraj.dev

Explore command anatomy in the CLI lab