ICMP means Internet Control Message Protocol and is always coupled with the IP protocol (There are 2 ICMP variants one for IPv4 and one for IPv6.) echo request and echo response are the two operation codes of ICMP used to implement ping.

Here Joystick, Mouse and Scanner are Input devices through which data is given to the computers. But Headphones are output devices through which sound comes as an output from the computer or any devices.