This is an intelligent binary-search implementation of ping utility.