$ ping 192.168.20.36 PING 192.168.20.36 (192.168.20.36) 56(84) bytes of data. 64 bytes from 192.168.20.36: icmp_req=1 ttl=64 time=0.165 ms 64 bytes from 192.168.20.36: icmp_req=2 ttl=64 time=0.164 ms ^C --- 192.168.20.36 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.164/0.164/0.165/0.012 ms $
While we ping to a particular remote host, the ICMP echo-request is sent to that host and echo-replay is arrived if the host is available. In source if we execute the command, the RAW socket is created, and using that ping program send the packet. Here, the destination IP is 192.168.20.36. But, what is the destination port no. For ping, there should be a reserved port no. Without this, how the remote user able to send the echo-request to the remote host.
So, what is the port used by the ping program ? And what is the name of the program which runs in our system to handle ping echo-request ?