A combination of sensors and radio signals determine the precise location and speed of the trains. Then, it dictates the safest distance for trains to be from each other. This information is then fed to the trackside signals. The way that the system works is to always default to a red signal to be as safe as possible.