IPv4
IPv4 is the network-layer protocol that addresses devices and carries packets across interconnected networks. It gives each packet a source and destination address so routers can move it toward the right host.
itNetworking | OpenSkills.info
Course pathWalk it in order
Look it upDip in anytime
Go furtherLeaves this page
Intro
IPv4
IPv4 moves packets across interconnected networks. It does not promise delivery, preserve order, or recover lost data. Its job is narrower: label each packet with addresses and give routers enough information to forward that packet toward a destination.
That narrow job is why IPv4 sits at the center of many network designs. Applications use transport protocols such as TCP or UDP. Those transport messages become IPv4 payloads. A local network then carries each IPv4 packet to either the destination or the next router.
The packet is the unit of work
IPv4 is connectionless. Each packet, also called a datagram, is handled as an independent unit. A packet contains a header followed by its payload.
The header includes:
- A version value that identifies IPv4
- A source address and destination address
- A protocol value that identifies the next-layer payload
- A time to live value that limits how long the packet can circulate
- Length, checksum, and fragmentation fields
The header checksum protects the IPv4 header, not the payload. IPv4 itself does not acknowledge packets or retransmit missing ones. Higher-layer protocols add reliability when an application needs it.
Addresses identify interfaces
Continue the course
This section is part of the paid course.
See pricing to subscribe, or log in if you already have access.
Where this skill leads
Relevant careers
See how this topic contributes to broader role-level skill maps.
Sources
- https://www.rfc-editor.org/rfc/rfc791.html
Supports
- IPv4's best-effort, connectionless datagram service and protocol layering
- 32-bit addressing and the IPv4 header fields
- Routing, time to live, header checksum, and fragmentation behavior
- Absence of delivery guarantees, acknowledgments, retransmission, sequencing, and flow control
- https://www.rfc-editor.org/rfc/rfc4632.html
Supports
- CIDR prefix-length notation and classless address blocks
- Address-block sizing from the 32-bit address width
- Route aggregation and longest-prefix forwarding
- https://www.rfc-editor.org/rfc/rfc1812.html
Supports
- Router forwarding requirements
- Longest-prefix matching and default-route behavior
- TTL processing during forwarding
- https://www.rfc-editor.org/rfc/rfc1122.html
Supports
- Host on-link and next-hop routing decisions
- Loopback behavior and ICMP host requirements
- IPv4 multihoming and address assignment to interfaces
- https://www.rfc-editor.org/rfc/rfc826.html
Supports
- Mapping protocol addresses to Ethernet addresses on a local network
- ARP's role in local next-hop delivery
- https://www.rfc-editor.org/rfc/rfc792.html
Supports
- ICMP error reports and control information
- Time Exceeded and Destination Unreachable messages
- https://www.rfc-editor.org/rfc/rfc1918.html
Supports
- The three private-use IPv4 blocks
- Reuse, routing scope, and renumbering considerations for private address space
- https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
Supports
- Current special-purpose IPv4 blocks and their defining RFCs
- Source, destination, forwarding, and global-reachability properties
- Loopback, link-local, shared, documentation, and limited-broadcast assignments
- https://www.rfc-editor.org/rfc/rfc5737.html
Supports
- TEST-NET-1, TEST-NET-2, and TEST-NET-3 documentation blocks
- Non-forwarding expectations for documentation addresses
- https://www.rfc-editor.org/rfc/rfc3022.html
Supports
- Basic NAT and NAPT mappings
- Translation state, checksums, and packet-field changes
- Outbound session direction and inbound mapping limitations
- https://www.rfc-editor.org/rfc/rfc1191.html
Supports
- Don't Fragment behavior with smaller next-hop MTUs
- ICMP feedback and sender packet-size adjustment
- https://www.rfc-editor.org/rfc/rfc8200.html
Supports
- IPv6 as the successor IP version
- 128-bit IPv6 source and destination addresses
- https://github.com/sindresorhus/awesome
Supports
- Discovery of the PCAPTools and Scapy networking lists
- https://github.com/caesar0301/awesome-pcaptools
Supports
- Discovery of Wireshark, Scapy, and Ostinato as packet-analysis or packet-crafting tools
- https://www.wireshark.org/docs/wsug_html_chunked/
Supports
- Live capture and capture-file workflows
- Packet details, packet bytes, display filters, and IPv4 statistics
- https://scapy.readthedocs.io/en/latest/usage.html
Supports
- Interactive packet construction, sending, capture, and protocol-layer manipulation
- https://ostinato.org/docs/
Supports
- Graphical packet crafting and traffic-stream generation for network labs
