modified protocol for ping