watch> ip — 6 packets

IP · Protocol

Internet Protocol

CoreL3
STEPS
  1. 1LOCAL OR NOT?Compare the address with the subnet
  2. 2FIND THE ROUTERARP turns an IP into a MAC
  3. 3SEND THE PACKETAddresses, TTL and protocol
  4. 4NAT, THEN HOP BY HOPThe router rewrites and forwards
  5. 5THE REPLY COMES BACKNAT translates it for the laptop
NETWORK VIEW
Client192.168.1.10Router192.168.1.1InternetWeb Server203.0.113.10
STEP 1/5 · 0/6
PACKET FLOWARPTCP
STEPTIMESOURCEDESTPROTOINFOSIZE
10.s00:00:5e:00:53:10BroadcastARPWho has 192.168.1.1? Tell 192.168.1.1060 B
20.001s00:00:5e:00:53:0100:00:5e:00:53:10ARP192.168.1.1 is at 00:00:5e:00:53:0160 B
30.002s192.168.1.10203.0.113.10TCPTTL 128 · 52344 → 443 [SYN]66 B
40.003s198.51.100.7203.0.113.10TCPTTL 127 · 40112 → 443 [SYN] (after NAT)66 B
50.019s203.0.113.10198.51.100.7TCPTTL 64 · 443 → 40112 [SYN, ACK]66 B
60.035s203.0.113.10192.168.1.10TCPTTL 52 · 443 → 52344 [SYN, ACK] (after NAT)66 B

Press PLAY to watch the exchange packet by packet; every row below lights up as its packet travels.

LAYERNetwork (Layer 3)
ADDRESS32 bits (IPv4), 128 (IPv6)
HEADER20–60 bytes (IPv4)
TTLLowered by 1 at each router
DELIVERYBest effort
DEFINED INRFC 791, RFC 8200 (IPv6)

What is IP?

IP is the postal system of the internet: every packet carries source and destination addresses, a TTL, and a best-effort promise. Routers forward it hop by hop, rewriting addresses at NAT along the way.

Steps

  1. 1. LOCAL OR NOT?Compare the address with the subnet
  2. 2. FIND THE ROUTERARP turns an IP into a MAC
  3. 3. SEND THE PACKETAddresses, TTL and protocol
  4. 4. NAT, THEN HOP BY HOPThe router rewrites and forwards
  5. 5. THE REPLY COMES BACKNAT translates it for the laptop

Which port does IP use?

IP does not use a fixed port number.

Which layer does IP run at?

IP sits at Network (Layer 3).

Where is IP defined?

RFC 791, RFC 8200 (IPv6).

Related protocols

About This Tool

This page provides original, human-reviewed information about internet protocols such as IP (Internet Protocol), the Protocol Explorer and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.

If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.