The nerve ring is located in the 3rd and 4th segments, encircling the pharynx. Segmental ganglia are swellings on the nerve cord starting from the 5th segment and are not part of the nerve ring. [cite: 11271]