applets.

Phantom Jam

← All apps

About Phantom Jam

Some traffic jams have no cause you could point to: no crash, no roadworks, no lane closing. The traffic simply gets dense enough that small wobbles in people's driving grow instead of dying away, until cars at one spot are stopped while the cars around them are moving. The stopped part then travels backwards, against the traffic, while every car in it goes forwards. This page lets you watch that happen and see what helps.

THE RING is the famous experiment: cars on a circular road with nothing to stop them. Press RUN. The overhead camera shows each car coloured by its speed; the pen recorder plots every car's place round the ring against time, so a jam shows as a red stripe running down the paper. Click or tap a car to make it brake hard for a moment. The sliders change the number of cars, the gap drivers keep, how much they wobble and the speed they would like to do. CALM DRIVERS runs two identical rings side by side: in one, everyone follows closely; in the other, one to three drivers switch to driving calmly. MOTORWAY is an open road where a slip road joins. WHY shows a queue of 30 cars passing one brake light back, so you can see a dip grow or die out depending on the gap. COPY LINK copies the settings.

THE STORY

Researchers have known since the 1950s that a line of drivers following one another can pass a slowdown back down the line bigger than it arrived. In 1959 Robert Herman and colleagues at General Motors' research laboratories worked out when this happens for a simple model of car following. In 1995 Masako Bando, Yuki Sugiyama and colleagues in Japan published the optimal velocity model, in which a smooth flow of cars on a ring breaks up into stop-and-go waves by itself once the cars are close enough together.

In 2008 Sugiyama and colleagues tested it with real cars (New Journal of Physics, "Traffic jams without bottlenecks"). They put 22 cars on a circular road 230 metres round, on flat ground, with a 360-degree camera in the middle. The drivers were asked to cruise at about 30 km/h and to follow the car ahead safely. For a while the flow held; then small differences in the gaps grew, and within a few minutes several cars had to stop completely. A jam of about five cars formed and travelled backwards round the ring at roughly 20 km/h, the same speed at which jams are measured moving back along real motorways. Cars outside the jam were doing about 40 km/h.

In a later experiment published in 2018 (Transportation Research Part C), Raphael Stern, Daniel Work and colleagues ran more than 20 cars on a ring track in the United States, saw the same waves, then switched one car to automatic speed control. Driving smoothly instead of chasing the car in front, that one car damped the waves, and braking and fuel use fell for the traffic as a whole. The CALM DRIVERS tab is the same idea, with a simpler rule of the page's own.

HOW IT WORKS

Each car is driven by the Intelligent Driver Model of Martin Treiber, Ansgar Hennecke and Dirk Helbing (2000). Each tenth of a second a driver accelerates towards the speed they would like, less an amount that grows as the gap to the car in front shrinks below the gap they want. The gap they want is a standstill gap (2 m here) plus their own speed times their time gap (0.6 s by default), plus more when they are closing on the car in front. Each driver also has a small random wobble in their acceleration that drifts over a couple of seconds, like a foot that isn't perfectly steady. Cars are 4 m long and the ring has one lane.

The settings were chosen so the ring behaves like the 2008 experiment: an even 25 km/h to start, jams within a few minutes, stopped cars in the jam and about 40 km/h outside it. In this model the jam usually moves back at 15 to 17 km/h, a little slower than the roughly 20 km/h seen in the experiment. With a wobble of NONE the even flow lasts until something disturbs it: tap a car.

Whether a ripple grows is a property of the drivers, the gap and the speed. For any model where acceleration depends on the gap, your speed and the speed of the car in front, there is a standard test for whether a small slowdown grows as it passes back down a long line. The WHY tab works it out for the current settings, and shows the line of 30 cars. On the ring the same thing happens over and over, because the cars go round and meet the wave again. With fewer than about 20 cars the default drivers are calm enough that nothing grows.

A calm driver here aims at the average speed of the car in front over the last half minute, rather than its speed right now, keeps a 1.8 s gap, accelerates and brakes more gently, and has no wobble. It still brakes as hard as it must if the gap gets too small. This is the page's own rule; the 2018 experiment used its own controllers.

Flow is cars per hour past one point, worked out as cars per kilometre times average speed. A stop is counted each time a car drops below 0.3 m/s (about 1 km/h, close enough to standing still); it can count again only once the car has picked up past 1.5 m/s (5.4 km/h), and a hard brake each time a car slows at more than 2 m/s². The wave speed is measured from the recorder: the page tracks the middle of the slowest cars and fits a straight line through its place over the last minute. Fuel is a rough model of a small petrol car (1,200 kg, an engine turning a quarter of the fuel's energy into motion, plus tick-over at 0.7 litres an hour; braking gives nothing back), good for comparing two runs, not for quoting.

The MOTORWAY tab uses the same model with motorway drivers (a 1.2 s gap by default, wanting 70 mph, the UK limit) on one lane 5 km long. Cars arrive at the left end; a slip road joins from the nearside (the top of the picture: UK traffic keeps left) at 4 km, and its cars squeeze into the best gap they can find in a 250 m merge section, at no more than about 85 km/h (about 50 mph). When more cars arrive than the stretch past the junction can take, a queue grows back from the merge, and stop-and-go waves run back through it. Real motorways have several lanes and lane changes, which add to this; one lane keeps the picture clear. For lanes, keeping left, joining and leaving, see the Motorway app.

The useful lesson, with its limit: leaving a bigger gap and easing off early, instead of closing up and braking late, soaks up the ripples and smooths the traffic behind you. It cannot make room that isn't there. On a road that is simply full, the flow is limited by the road, and a bigger gap everywhere can even mean a lower steady speed, as THE RING shows if you set a long gap for everyone.

FURTHER WATCHING AND READING

CAM 1 · TEST RING · 230 m0:00
PEN RECORDERplace round the ring (up) against time (across)
AVERAGE SPEED-
FLOW-
STOPS0
JAM MOVESNO JAM

WOBBLE

ClickTap a car to make it brake.