network measurement using thread