What you're seeing
A single lane of road bent into a loop, so traffic never reaches an end — the same cars circulate forever. The thin strip at the top is that loop cut open and laid flat: each colored mark is a car, tinted by how fast it is moving, from red (stopped) through amber to teal (full speed).
The large panel below is the iconic view: a space–time diagram. Every simulation tick, the current state of the road is painted as a new row at the bottom and everything above scrolls up, so you are looking at a strip of history with the present at the bottom and the past receding upward. A car moving smoothly traces a clean diagonal. But where cars pile up, you see a dense dark band that leans the "wrong" way — down and to the left — meaning the jam itself travels backward through the cars even as every car edges forward. No car crashes; no car stops on purpose for long; nothing blocks the road. The jam is a thing made entirely of the spacing between cars.
The rule
This is the Nagel–Schreckenberg model (1992), a cellular automaton for freeway
traffic. The road is a ring of cells; each cell is empty or holds one car, and each car carries an
integer speed v between 0 and vmax. Every timestep, all cars update at once
by four steps:
- Accelerate.
v ← min(v+1, vmax). Drivers always want to go a little faster. - Brake to avoid collision. Let
gapbe the number of empty cells to the next car ahead;v ← min(v, gap). No one drives into the car in front. - Dawdle. With probability
p,v ← max(v−1, 0)— a random tap of the brakes, a moment's inattention, an overreaction. - Move. The car advances
vcells, wrapping around the ring.
Steps 1, 2, and 4 alone are perfectly orderly: with p = 0 the traffic settles into a
steady stream and stays there. Step 3 is the whole story. That single grain of
randomness — one driver who brakes a touch too hard — forces the car behind to brake harder, and the
car behind that one harder still. At low density the slack absorbs it. Above a critical density there
is no slack, and the tiny perturbation freezes into a self-sustaining wall of stopped cars. Random
dawdling is what turns dense-but-flowing traffic unstable.
Why it matters
The lesson is that a traffic jam can be an emergent phase of the whole system, not the fault of any driver or any obstacle. Plot the road's flow (cars passing a point per unit time, here shown as mean speed × density) against density and you get the famous fundamental diagram: flow rises with density as more cars use the road, peaks at a critical density, and then collapses as the road jams. The system undergoes a phase transition from free flow to congested flow at that critical point, exactly the way water passes from one phase to another.
This reframes a familiar frustration. Because the jam is a collective state, removing bottlenecks does not remove jams: even on a flawless, uniform, accident-free road, pushing the density past the critical point summons stop-and-go waves out of the dynamics themselves. The jam has no cause you can point to and tow away.
In the wild
Anyone who has crawled toward a phantom obstruction that never appears has met this directly: the "jam out of nowhere" is the everyday name for a backward-propagating density wave on a busy highway. Field measurements on real freeways show these stop-and-go waves traveling upstream at a remarkably steady speed (roughly 15–20 km/h against traffic), independent of how fast the cars themselves move.
The cleanest demonstration is an experiment by Sugiyama and colleagues (2008). They put about 22 cars on a single-lane circular track and asked the drivers simply to circulate at a steady ~30 km/h, keeping a safe distance. For a short while the flow was uniform — then, with no obstacle, no lane change, and no signal, a cluster of braking cars spontaneously formed and a jam emerged that moved backward around the loop, precisely as the model predicts. The cause was the collective dynamics, not any individual.
This is also why adaptive cruise control and autonomous vehicles are studied as a remedy: a small fraction of cars programmed to keep smooth, even gaps can damp the waves before they grow, raising the road's stable capacity. A 2017 field experiment by Stern and colleagues reproduced the Sugiyama ring jam and showed that a single autonomously controlled car among twenty-odd human-driven ones could substantially smooth the flow. The promise is real but bounded — it works by breaking the instability chain, not by adding lanes.
One honest caveat: single-lane Nagel–Schreckenberg is a minimal model. Real traffic has lane changes, trucks and motorcycles, on-ramps, and wildly varied drivers. The model captures the mechanism by which phantom jams form; it is not a quantitative predictor of any particular highway.
Try this
- Set dawdle p = 0 and watch the diagram: the slanting dark bands stop appearing and the traffic relaxes into clean parallel diagonals. The jams need the randomness.
- Restore p and raise the density past about 30–40%. Watch the first backward-leaning stripe nucleate and then spawn a whole washboard of stop-and-go waves.
- Hunt for the peak of the fundamental diagram: nudge density up while watching the flow readout. Find the density where flow is largest — then push past it and watch flow collapse even though there are more cars on the road.
References
- Nagel, K. & Schreckenberg, M. (1992). "A cellular automaton model for freeway traffic." Journal de Physique I 2(12), 2221–2229.
- Sugiyama, Y., Fukui, M., Kikuchi, M., Hasebe, K., Nakayama, A., Nishinari, K., Tadaki, S. & Yukawa, S. (2008). "Traffic jams without bottlenecks — experimental evidence for the physical mechanism of the formation of a jam." New Journal of Physics 10, 033001.
- Stern, R. E. et al. (2018). "Dissipation of stop-and-go waves via control of autonomous vehicles: Field experiments." Transportation Research Part C 89, 205–221. (arXiv:1705.01693, 2017.)
- Treiber, M. & Kesting, A. (2013). Traffic Flow Dynamics: Data, Models and Simulation. Springer. (Fundamental diagram; cellular-automaton models.)