How Data Travels on the Internet: Packets, Routing, and Protocols Explained
Data travels on the internet as small numbered chunks called packets, not as one solid stream. Your message, photo, or web page is split into packets, each is addressed and routed across many networks on its own path, and they are put back in order at the other end. The whole job is handled by the four-layer TCP/IP model, and a single web request makes a quick round trip from your browser to a server and back.
What Does It Mean That Data Travels as Packets?
It means your data is broken into many small pieces that each travel separately and are reassembled at the end, instead of being sent as one large block:
- Split: a file, message, or page is chopped into packets, each carrying a chunk of the data plus a header.
- Addressed: every packet has a source and destination IP address, like a postcard with a from and to.
- Independent: packets from the same message can take different routes if one path is busy, then are ordered correctly on arrival.
What Is the TCP/IP Model?
The TCP/IP model is the four-layer system that prepares, addresses, and delivers your data across the internet. Each layer adds its own part, and the receiving device reads them back in reverse:

Application
Transport
Internet
Link
On the way out, your data moves down the four layers; on the way in, it moves up them. The older OSI model splits the same work into seven layers, but TCP/IP’s four are what real networks use.
How Is a Packet Built and Unwrapped?
A packet is built by each layer wrapping the data in its own header on the way down, called encapsulation, and unwrapped by reversing that on the way up:
- Encapsulation: the transport layer adds a TCP/UDP header, the internet layer adds the IP header, and the link layer wraps it in a frame for the wire.
- De-encapsulation: the receiving device strips each header back off, layer by layer, until the app gets the original data.
- What stays, what changes: the source and destination IP addresses stay the same end to end, while the link-layer frame address changes at every router along the way.
How Do Routers Move Packets Across the Internet?
Routers move packets by reading each packet’s destination IP and forwarding it one hop closer to that address, over and over until it arrives:
- Leave home. Your device sends the packet to your router, which passes it to your ISP’s network.
- Hop by hop. Each router reads the destination IP, checks its routing table, and forwards the packet to the best next router.
- Cross networks. The packet crosses many separate networks (autonomous systems) on the way to the destination’s network.
- TTL guard. A time-to-live (TTL) counter drops by one each hop; if it hits zero the packet is discarded, which stops endless loops.
- Arrive. The destination network delivers the packet to the target server.
How Are Packets Put Back Together at the Destination?
Packets are reassembled by TCP, which uses the sequence number on each packet to restore the original order before handing the data to the app:
- Reorder: packets can arrive out of order, so TCP sorts them by sequence number into the original data.
- Recover loss: if a packet never shows up, TCP asks the sender to retransmit it, so nothing is missing.
- Deliver: once every piece is present and in order, the complete data is passed up to the application (your browser, mail app, and so on).
TCP vs UDP: Two Ways to Send Packets
TCP and UDP are the two transport-layer protocols, where TCP guarantees delivery and order while UDP trades those for speed:
- TCP: connection-oriented (a three-way SYN, SYN-ACK, ACK handshake), ordered, error-checked, and resends lost packets. Used for web pages, email, and file transfers.
- UDP: connectionless and fire-and-forget, with no handshake or resend and only an 8-byte header. Used for DNS, video streaming, gaming, and voice calls.
- Trade-off: choose TCP when every byte must arrive correctly, and UDP when a little loss is fine but speed matters.
The table below compares them across connection type, reliability, ordering, speed, and typical uses:
| Feature | TCP | UDP |
|---|---|---|
| Connection type | Connection-oriented (3-way handshake) | Connectionless |
| Reliability | Guaranteed delivery via ACK and retransmission | No delivery guarantee — fire and forget |
| Ordering | Data delivered in order via sequence numbers | No ordering — packets may arrive out of sequence |
| Error checking | Checksum + retransmission on error | Checksum only — no retransmission |
| Speed | Slower due to overhead of ACK and handshake | Faster — minimal overhead |
| Header size | 20 bytes minimum | 8 bytes |
| Congestion control | Yes (slow start, AIMD) | No built-in congestion control |
| Typical use cases | HTTP/HTTPS, email, FTP, SSH | DNS, video streaming, VoIP, online gaming |
How Does a Web Request Travel from Browser to Server?
A web request travels by looking up the address, opening a connection, sending the request, and downloading the reply – a quick round trip your browser repeats for every resource on a page:

- DNS lookup. Your browser turns the domain name (like example.com) into an IP address, checking caches first, then asking a DNS resolver.
- TCP handshake. The browser and server open a connection with the three-way SYN, SYN-ACK, ACK exchange (HTTPS adds a quick TLS security handshake).
- HTTP request. The browser sends a GET request (the method, the URL, and headers) as packets over that connection.
- Server work. The server reassembles the request, builds the page (HTML, CSS, JS), and starts sending the response back.
- Response download. The reply arrives as packets, the browser reassembles and renders it, then requests any images, styles, and scripts it needs.
A first-time page load needs roughly three round trips (DNS, connection, request and response), which is why the whole journey still finishes in well under a second. A CDN shortens it further by serving the page from a server near you.
Last Thoughts on How Data Travels on the Internet
Every internet action – opening a page, sending a message, streaming a video – starts by splitting your data into packets. The TCP/IP model wraps each packet, IP addresses and routers carry it hop by hop across networks, and TCP puts the pieces back in order at the far end. The reply then retraces the same path back to you.
Key Takeaways:
- Data travels as packets: your message or page is split into small addressed chunks that travel separately and are reassembled at the destination.
- The TCP/IP model has four layers: application, transport, internet, and link – your data goes down them to send and up them to receive.
- Encapsulation wraps each packet: every layer adds a header on the way out and strips it on the way in; the IP addresses stay the same end to end.
- Routers hop packets toward the address: each router reads the destination IP and forwards one hop closer, with TTL preventing endless loops.
- TCP reassembles and recovers: sequence numbers reorder packets and lost ones are resent, while UDP skips that for speed.
- A web request is a fast round trip: DNS lookup, connection, request, and response – about three round trips, usually under a second.
Frequently Asked Questions (FAQs)
What is a network packet?
A network packet is a small unit of data transmitted over a network. Each packet contains a header (source IP, destination IP, TTL, protocol) and a payload (actual data). Ethernet limits packet size to 1,500 bytes (MTU). Large data is split into multiple packets and reassembled at the destination.
What is the difference between TCP and UDP?
TCP is connection-oriented with guaranteed ordered delivery via ACKs and retransmission. UDP is connectionless with no delivery guarantee and 8-byte overhead. TCP is used for web and email; UDP is used for DNS, video streaming, and gaming where speed matters more than reliability.
What does TTL mean in networking?
TTL (Time to Live) is an 8-bit field in the IP header that decrements by 1 at each router hop. When TTL reaches 0, the router discards the packet and sends an ICMP error. TTL prevents packets from circulating indefinitely. Default TTL is 64 on Linux/macOS and 128 on Windows.
What is BGP in networking?
BGP (Border Gateway Protocol) is the routing protocol that exchanges reachability information between Autonomous Systems (AS) across the Internet. BGP selects paths based on AS-path length and policy. It is the only EGP (Exterior Gateway Protocol) used on the public Internet.
What are the 7 layers of the OSI model?
The 7 OSI layers are: Physical (1), Data Link (2), Network (3), Transport (4), Session (5), Presentation (6), and Application (7). Routers operate at Layer 3; switches at Layer 2; HTTP and DNS at Layer 7; TCP and UDP at Layer 4.


