send the icmp pakcet and receive the packet in the while(true) loop