The internet control message protocol (ICMP) is a supporting protocol in the internet protocol suite.
It is used by network device like routers to send error message and operational information.
ICMP is an error reporting protocol network device.
Router use to generate error message to the source address.
When network problem prevent delivery of IP packets.
ICMP creates and sends messages to the source IP address indicating that a gateway.