Highway traffic simulation

hi anyone can help me about how to create highway traffic like TRAFFIC RACER mobile game?

cars going strait in a line and brake when see a car ahead then changing their line when necessary. though the interesting part is: in that game the cars are not actual cars but simple meshes moving around. its very effective on performance optimization. so how to do that?
thanks in advanced.