What a Network Is: Packets, Bandwidth and Latency
Learn what LANs, WANs and the internet are, why data travels in packets, and how bandwidth and latency together decide how fast things feel.
Welcome back!
Step 1 of 12Learn
What happens in one click
Maya, in Chicago, clicks a video link. Within about a second, a server hundreds of miles away has received her request, found the file and started sending it back, broken into thousands of small pieces that travel through a dozen or more devices, possibly by different routes, and are reassembled in the right order on her laptop. Nobody planned that route in advance, and none of the devices in the middle know what a "video" is.
A network is two or more devices connected so they can exchange data. That simple idea scales enormously:
- A LAN (local area network) covers one home, office or building: your laptop, phone, printer and smart TV on the same Wi-Fi.
- A WAN (wide area network) connects sites across cities or countries, such as a company linking its offices.
- The internet is a network of networks: tens of thousands of independently run networks that agree to carry each other's traffic using shared rules called protocols.
Devices that request things are usually called clients (your browser), and devices that provide them are servers (the video site). The same machine can be both. This course follows data on its trip: how devices are addressed, how data finds its way, which services make the internet usable, and how to fix things when they break.
Step 2 of 12Learn
Why data travels in packets
Old telephone networks used circuit switching: a call reserved a dedicated path end to end for its whole duration, even during silences. Computer networks use packet switching instead. Data is chopped into small chunks called packets, typically up to about 1,500 bytes each on Ethernet and Wi-Fi. Each packet carries a header with its source and destination addresses, like an envelope, and is forwarded independently.
Packet switching has big advantages:
- Sharing. Thousands of conversations can use the same links, taking turns packet by packet, so expensive links never sit idle.
- Resilience. If a link fails, packets are sent around the problem. The early internet was designed with this in mind.
- Fairness. A huge download doesn't block a small web page; their packets interleave.
The cost is extra work at the ends. Packets can arrive out of order, be delayed or get lost when a link is congested. Protocols you will meet later, especially TCP, number the packets, reorder them and resend missing ones, so applications see a clean, complete stream.
A useful mental model: sending a 10 MB file is like mailing a book one page per envelope. Every envelope has the full address and a page number, and the recipient puts the book back together.
Step 3 of 12Practice · True or false
In a packet-switched network, all packets of a file must follow exactly the same path and arrive in order.
Step 4 of 12Diagram
A file's trip as packets
Tap a shape with to see more.
- Split into packets
A video chunk becomes many packets of up to about 1,500 bytes each.
- Label each packet
Every packet carries source and destination addresses and a sequence number.
- Routers forward each one
Each router picks the best next hop at that moment, so packets may take different paths.
- Arrive, maybe out of order
Some may be delayed or lost along the way.
- Reassembled
The receiver puts them back in order and asks again for missing ones.
Step 5 of 12Learn
Bandwidth vs. latency
Two numbers describe how "fast" a connection is, and they measure different things.
Bandwidth is how much data can flow per second, measured in bits per second: Mbps (megabits) or Gbps (gigabits). Think of it as the width of a highway. More lanes move more cars per hour.
Latency is how long a single piece of data takes to get from one end to the other, measured in milliseconds (ms). It is the length of the highway plus any traffic jams. A round trip from New York to London takes roughly 70–80 ms because light in fiber covers only about 200 km per millisecond, no matter how much bandwidth you buy.
Watch the units. Internet plans are sold in megabits per second, while file sizes are shown in megabytes. One byte is 8 bits, so a 100 Mbps connection moves at most about 12.5 MB per second.
Different tasks care about different numbers:
- Downloading a large file or streaming 4K video mostly needs bandwidth.
- Online games, video calls and loading pages with many small requests mostly need low latency.
A satellite link in geostationary orbit might offer 100 Mbps but 600 ms of latency, great for downloads and frustrating for gaming. Throughput, the speed you actually get, is usually below the advertised bandwidth because of protocol overhead, Wi-Fi conditions and congestion.
Step 6 of 12Explore
Download time explorer
The chart shows how long a download takes (seconds) as the file size grows (MB). Time = size × 8 ÷ bandwidth, plus the latency to get started. Change the bandwidth and latency and see which one matters for big and small files.
- Time for a 2 GB movie (2,000 MB)
- 160 s
- Time for a 50 KB web request (0.05 MB)
- 0.034 s
- Maximum speed in megabytes per second
- 12.5 MB/s
Step 7 of 12Practice · Work it out
Ignoring latency and overhead, how many seconds does it take to download a 600 MB file over a 200 Mbps connection?
Step 8 of 12Practice · Sort into groups
Sort each activity by what mostly limits how good it feels.
Tap an item, then tap its group (or drag it there).
Step 9 of 12Practice · Diagram
Typical round-trip latency
Which connection would make an online game feel laggy even with a huge bandwidth plan?
Tap the shape that answers the question, then press Check.
- Same home network
Under about 1 ms on a wired LAN.
- Server in your region
Roughly 5 to 20 ms.
- Across the U.S.
Coast to coast is roughly 60 to 80 ms.
- U.S. to Australia
Light in fiber cannot go faster; distance sets a floor.
- Geostationary satellite
The signal climbs about 36,000 km up and back down, twice.
Step 10 of 12Note
Step 11 of 12Practice · True or false
A 1 Gbps internet plan can move at most about 125 megabytes per second.
Step 12 of 12Practice · Choose one
An internet plan is advertised as 300 Mbps. What is the best realistic download speed a browser could show, in megabytes per second?
Lesson complete!