Skip to content

What a network is, and how bandwidth, throughput, latency and jitter differ

PAN, LAN, CAN, MAN and WAN explained at each scale, what bandwidth, throughput, latency and jitter each measure, and what a single real ping run shows.

10 min read

A network is two or more devices connected so they can send data to each other, plus an agreement about what the bits mean when they arrive. That agreement is a protocol, and a network without one is two devices generating noise at each other.

How well a network does that gets described with four words: bandwidth, throughput, latency and jitter. They are not synonyms, they do not measure the same thing, and three of them can be excellent while the connection still feels broken.

The agreement that makes it a network

Both ends have to have decided in advance what the bits mean: where a message starts, where it ends, which part is the address, and what to do when something arrives damaged. That is the protocol, and it is the part of the definition above doing the work.

Nearly everything below is a protocol, an addressing scheme, or a device that reads one to decide where to put the other. Together they make a map, and every tool you will ever point at a network sits somewhere on it: reading a tool's output means knowing which part of that map it can see.

Where the internet came from: ARPANET and TCP/IP

The Advanced Research Projects Agency Network (ARPANET) was the first working packet-switched computer network, funded by the US Department of Defense's Advanced Research Projects Agency. The first host-to-host message was sent on 29 October 1969, from the University of California, Los Angeles (UCLA) to the Stanford Research Institute (SRI). It crashed partway through the word LOGIN. By December 1969 it had four nodes: UCLA, SRI, the University of California, Santa Barbara, and the University of Utah.

ARPANET was one network. The problem that produced the internet was different: by the early 1970s there were several networks, built by different people on different assumptions, and none of them could talk to the others.

The answer was a protocol that sat above all of them and did not care how any individual network worked underneath. Vint Cerf and Robert Kahn published the design in 1974, in a paper called "A Protocol for Packet Network Intercommunication". It later split into the Transmission Control Protocol (TCP) and the Internet Protocol (IP), and on 1 January 1983 ARPANET switched over to them in a single cutover still known as flag day.

That is what the word means. Internet is a contraction of inter-networking: not one big network, but a set of independent networks that agreed on a common way to hand traffic to each other. The word is a description of the architecture, and it is worth keeping in mind every time a packet leaves a network you control.

The five types of network: PAN, LAN, CAN, MAN and WAN

The five types get taught as five different things. They are one thing measured at five distances. Nothing about the technology has to change between them, and in practice a lot of it does not.

The five network types drawn as increasing scale, from a personal area network of a few metres to a wide area network spanning continentsPANa few metresLANa buildingCANa campusMANa cityWANcontinents
Network typeTypical rangeExampleCommon technology
PAN (personal area network)A few metresA phone, a watch and a pair of earbudsBluetooth, USB
LAN (local area network)One building or part of oneHome Wi-Fi, an office floorEthernet, Wi-Fi
CAN (campus area network)One site, one ownerA university, a corporate campusPrivate fibre between buildings
MAN (metropolitan area network)A cityA university with campuses in three districtsCarrier fibre rings
WAN (wide area network)Countries and continentsThe internetLeased circuits, carrier backbones

A personal area network (PAN) connects a few devices within arm's reach of one person, usually over Bluetooth. A phone, a watch and a pair of earbuds are a PAN.

A local area network (LAN) connects devices within one building or part of one. Home Wi-Fi with a laptop, a phone and a printer on it is a LAN, and so is an office floor.

A campus area network (CAN) connects several LANs across a site that one organisation owns, such as a university or a corporate campus. It is a LAN that outgrew a single building without leaving the property.

A metropolitan area network (MAN) connects networks across a city or a large area within one. A university with campuses in three districts of the same city links them over a MAN.

A wide area network (WAN) connects networks over large geographic areas, up to and including the planet. The internet is the largest WAN there is, and what it connects is not individual machines but LANs and MANs.

The boundaries are soft, and people argue about where CAN stops and MAN starts. That argument is not worth having. The reason the categories exist is that distance changes what is achievable, which is the next section.

Bandwidth, throughput, latency and jitter

TermWhat it measuresUnit
LatencyHow long one piece of data takes to reach the other endMilliseconds (ms)
BandwidthThe maximum rate the link could carryMegabits or gigabits per second (Mbps, Gbps)
ThroughputThe rate the link actually carries in practiceMegabits or gigabits per second (Mbps, Gbps)
JitterHow much the latency varies between packetsMilliseconds (ms)

Bandwidth is the maximum rate a link is capable of carrying, stated by whoever sold it to you. It is a capacity rather than a speed, and nothing about it guarantees you will ever see that rate.

Throughput is the rate the link carries in practice, once everything real has been taken out of it: protocol overhead, retransmissions, congestion somewhere you cannot see, a device in the path that cannot keep up. Throughput is always lower than bandwidth, and the gap between the two is where most interesting network problems live.

Latency is how long a single piece of data takes to reach the other end, and it is the one you feel. Adding bandwidth does not reduce it. A gigabit link to a server on another continent still has to wait for the packet to physically cross the distance, and that floor is set by physics rather than by your plan.

That floor is worth working out once, because it explains a lot of arguments. Light in single-mode fibre travels at roughly 200,000 km/s, about two thirds of its speed in a vacuum, because the glass slows it down. London to New York is about 5,570 km in a straight line. That is 27.9 ms one way and just under 56 ms for a round trip, before a single router, switch or firewall touches the packet. No amount of bandwidth moves that number.

Jitter is how much the latency varies from packet to packet. If packets leave evenly spaced and arrive unevenly spaced, that difference is jitter. It is the reason a call breaks up on a connection whose speed test looks fine: a voice stream needs packets to arrive predictably, and one that averages 40 ms but swings between 20 and 200 is unusable while averaging something respectable.

Measuring bandwidth against throughput

The two are easiest to tell apart by measuring them on the same link, minutes apart.

The link rate is what the two interfaces negotiated, and a wireless card will tell you directly.

bash
iw dev wlp0s20f3 station dump | grep -E 'bitrate|signal:|tx retries|connected time'
output
Selected lines from a wireless station dump: tx retries 27011, signal -43 dBm, tx bitrate 144.4 MBit/s MCS 15 short GI, rx bitrate 130.0 MBit/s MCS 15, connected time 5377 seconds
What the link negotiated: 144.4 Mbit/s out, 130.0 Mbit/s in. This is the ceiling, and it is the number a speed claim is usually quoting

Then move a known quantity of data across it and time the result.

bash
curl -4 -s -o /dev/null -w 'size %{size_download} bytes\ntime %{time_total} s\nthroughput %{speed_download} bytes/sec\n' 'https://speed.cloudflare.com/__down?bytes=25000000'
output
curl reporting a completed download: size 25000000 bytes, time 16.435944 s, throughput 1521057 bytes per second
What the link delivered: 25 MB in 16.4 seconds, which is 1,521,057 bytes per second

Put the two numbers in the same unit and the gap is the whole point of this section.

The card negotiated 144.4 Mbit/s. The transfer sustained 1,521,057 bytes per second, and a byte is eight bits, so that is about 12.2 Mbit/s. The link delivered roughly a twelfth of the rate it advertised, and nothing was broken while it did.

Most of that gap is ordinary. A wireless bitrate is a modulation rate for one radio, shared with every other device on the channel and with the neighbours' networks on it; tx retries: 27011 in the first capture is the card having resent frames that were not acknowledged, each retry costing airtime that carried nothing. The rest is the path beyond the link: the connection to the internet service provider (ISP), whatever congestion sits between here and Cloudflare, and the protocol overhead on every packet.

That is why "how fast is your connection" has no single answer. The ceiling and the delivery are different measurements, and quoting one when you mean the other is most of what makes speed arguments unresolvable.

Measuring latency and jitter with ping

ping sends an Internet Control Message Protocol (ICMP) echo request and times how long the reply takes. That is a latency measurement, and running enough of them gets you the variance too.

bash
ping -c 30 -i 0.3 1.1.1.1

This run is thirty packets from an ordinary home wireless connection to Cloudflare's public resolver.

output
The tail of a thirty-packet ping run to 1.1.1.1: replies between 22.9 and 26.1 ms, then a summary reading 30 packets transmitted, 29 received, 3.33333% packet loss, and rtt min/avg/max/mdev = 22.935/27.344/74.408/9.371 ms
Thirty packets to 1.1.1.1. The last two lines carry more than the twenty-nine replies above them

Read the last two lines rather than the individual replies. rtt is the round-trip time, the total for a request and its reply, and mdev is the mean deviation of those round trips.

min/avg/max is 22.9 / 27.3 / 74.4 ms. The average is the number people quote, and it is the least useful of the three. The slowest packet took more than three times as long as the fastest, and the average absorbs that quietly: 27.3 ms reads as a steady connection, and one packet in this run took 74 ms.

mdev is 9.4 ms, and that is the jitter. It is saying the delay is not stable. For loading a page that does not matter, because no page is waiting on one particular packet. For a call it is the difference between working and not, because audio has to arrive at a fixed rate and a packet that turns up 50 ms late has missed its slot.

The loss figure is the third number worth reading, and this run has one: 3.33333% packet loss, one packet of thirty that never came back. Nothing in the output says why, which is normal for wireless and is the point at which you stop reading ping and start capturing packets.

Notice what the output does not contain. There is no bandwidth figure and no throughput figure. ping sends 64-byte packets and never tries to fill the link, so it can tell you nothing about capacity. A connection can return excellent ping figures and still be unable to sustain a video stream, and that is not a contradiction: they are different measurements.

Where the delay accumulates

ping gives one number for the whole trip. tracepath shows the trip.

bash
tracepath -4 -m 6 1.1.1.1
output
tracepath to 1.1.1.1: hop 1 is _gateway at 1.456 ms and again at 17.608 ms, hop 2 is _gateway again at 2.874 ms and reports pmtu 1492, then a second row for hop 2 and every row to hop 6 is question marks with times between 3.4 and 76 ms, ending with Too many hops: pmtu 1492 and Resume: pmtu 1492
The first hop is the router on this desk. Everything after it belongs to somebody else

Two things in that output are worth naming.

The ??? rows are not failures. A router is not obliged to send back the message tracepath needs to identify it, and most carrier routers are configured not to, so they forward the packet and stay anonymous. The timings still arrive, because the timing comes from the far end of the probe rather than from the hop.

pmtu 1492 is the maximum transmission unit (MTU), the largest frame that fits on the link, and it drops from 1500 to 1492 at the second hop. Eight bytes go missing there because the link to the internet service provider (ISP) wraps every frame in an extra header, and every packet on this connection has been eight bytes smaller than the local network allows ever since. That is a layer 1 and 2 decision, made by somebody else, that every layer above it lives with.

How this affects the tools you run

Every tool that touches a network is limited by where it sits on the map above.

A tool that reads media access control (MAC) addresses cannot see past the first router, because a MAC address identifies a device on one local link and is rewritten at every hop. A tool that reads IP addresses cannot tell you which physical port a host is plugged into. A scanner with a 100 ms timeout will find nothing on a path whose honest round trip is 200 ms, and it will report those hosts as down rather than as far away.

That last one is not hypothetical, and it is the most common way a scan lies. The tool is working correctly. The number you gave it was wrong for the distance involved.

Knowing which layer a tool reads, and what the physical link underneath it can actually do, is the difference between reading output and trusting it. The rest of that map is built from the cable upwards, starting with how a network is physically arranged and why the shape decides what happens when one link fails.