Internet Protocol: What IP Does for Every Packet
Internet Protocol, or IP, supplies the addressing and packet format that lets data cross networks. It handles delivery rules, while other protocols handle jobs such as recovering missing data or protecting a connection.
A protocol is a set of communication rules. A packet is a unit of network data, with control information attached to help equipment process and deliver it.
IP works on private networks as well as the public internet.
- Get five gigabit ports and a fast ARM processor for the price of a basic home router.
- Practice real routing at your desk on gear that network pros also deploy.
- Tuck it beside your modem: it takes up almost no room.
Follow a packet toward a server
Suppose your laptop needs to contact a server on another network. A server is a system that provides a service, such as storing files or answering website requests.
The simplified journey looks like this:
- Prepare the packet. Your device's network software adds an IP header, the control section containing details such as the source and destination addresses.
- Reach a router. A router forwards traffic between networks, using the destination address and its routing information to choose a next step.
- Continue toward the destination. Other routers make their own forwarding decisions along the way; a router doesn't have to read the application message to decide where to send the packet.
- Pass the contents onward. At the destination, IP hands the packet's contents to the appropriate next protocol for further processing.
These addressing and delivery responsibilities are described in the IP version 4 specification.
The header travels with the packet, so delivery information doesn't have to be guessed from the contents of your photograph or document.
IPv4 and IPv6 use different address sizes
IPv4 means Internet Protocol version 4; IPv6 means version 6. They use different packet formats, including different amounts of space for addresses.
IPv4 addresses contain 32 bits, while IPv6 addresses contain 128 bits. A bit is a single binary digit, either 0 or 1, so adding address bits enormously increases the number of possible combinations.
The IPv6 specification describes that expansion as one reason for the newer version. Its address space is much larger, but it's still finite.
Why the Internet Is Running Out of Addresses
IP doesn't promise every packet will arrive
Packets can be lost, duplicated, or arrive out of order. IP alone doesn't supply the complete recovery and ordering service an application may need.
Transmission Control Protocol, or TCP, adds a reliable, ordered stream of data over IP. It detects losses and retransmits data as needed, according to the TCP specification.
This is why “TCP/IP” names cooperating protocols rather than two names for the same thing. TCP's recovery work still can't make a permanently unavailable destination respond.
What an address identifies
An IP address serves network delivery; it isn't a permanent identity for a person. Multiple devices can also share an outward-facing address.
For example, network address translation, or NAT, can rewrite addressing information as traffic crosses a network boundary. A form of NAT lets several home devices use one public address when reaching outside services, as the address-translation specification explains.
That shared address alone can't tell you which household member used a service.
IP also doesn't automatically encrypt the data it carries. Encryption makes data unreadable without the right key and requires additional mechanisms such as Internet Protocol Security, or IPsec.
A route and an address make communication possible; verifying who's communicating and protecting what they send remain separate responsibilities.
IP Addresses: Why Your Device Can Have More Than One

What Does a Router Do? Follow a Packet to Its Next Stop

IP Fragmentation: When a Packet Is Too Big for the Route

QUOTE:
"Amateurs hack systems, professionals hack people."
