Segment identification in water distribution systems