The nerve cord is ventral in position and runs from the fourth segment all the way to the last segment of the worm. In cockroach, the ventral nerve cord runs along the ventral wall of thorax and abdomen and possesses nine fused ganglia, out of which three are thoracic and six are abdominal in position.