Special sensors in the vehicle detect the speed it is going with. Then, this information is sent to the electronic control unit (ECU). When the set speed is reached, the ECU restricts the flow of air and fuel to the engine. That way, the top speed of your vehicle is limited and you are not able to exceed it.