adding a minimalistic ping function to estimate communication delay