A ping can be described as a ‘virtual handshake’ which sends a very small amount of data to the device.
If the SIM is contactable it will send a small message back showing it is online.
Did you know that not all devices are configured to send a response to a ping? Please check your device settings or consult your manufacturer.