Irregular traffic flow on a ring road