ICMP is used for diagnostics and error reporting in IP networks. Protocols like ping and traceroute rely on ICMP. Its operation alongside IP makes it a network layer protocol.