sentences:  The Internet Control Message Protocol (ICMP) is primarily used for error and diagnostic functions.Different implementations exist for IPv4 and IPv6.The Internet Group Management Protocol (IGMP) is used by IPv4 hosts and adjacent IP multicast routers to establish multicast group memberships.