Cisco Interview Question

What happens when you ping a device? explain at the layering level..