IP

Internet ProtocolInternet layer · OSI 3

Addressing devices and forwarding packets hop by hop

Step 1 of 5: Check if local or remote. Your laptop compares 203.0.113.10 with its home subnet 192.168.1.0/24. The server is outside the home network, so the packet must go to the default-gateway.
0.0 s / 12.5 s
Your laptop192.168.1.10
LookupResponseRequest

Overview

gives devices addresses and guides packets from network to network. Each router checks the destination address and forwards the packet one hop closer.

Internet Protocol version 4 (RFC 791) provides best-effort packet delivery using 32-bit addresses and a hop limit. Local delivery relies on (RFC 826) to learn hardware , while home routers apply (RFC 3022) at the boundary.

Key facts

Layer
Internet (OSI Layer 3)
Address size
32 bits (IPv4), 128 bits (IPv6)
Header size
20 to 60 bytes (IPv4)
Hop limit
TTL decremented by 1 per router
Defined in
RFC 791, RFC 8200

Delivered across 12 routers

ARP found the home router on the local network, NAT swapped in a public address, and twelve routers forwarded the packet and reply by destination address alone.

IPv4 routing moved the packet across 12 router hops in each direction while NAT translated between `192.168.1.10:52344` and `198.51.100.7:40112`.

Hops each way
12 routers (1 home + 11)
Outbound TTL
128 -> 116
Return TTL
64 -> 52
NAT rewrite
Source out, destination back

Try it yourself

Check your IP address and ARP table

Inspect your device's local IP address, subnet mask, default gateway, and cached neighbor MAC addresses.

ipconfig /all && arp -a

Inspect your routing table

See the default route (`0.0.0.0/0`) that sends off-subnet traffic to your gateway.

route print