Cisco Interview Question

How does ping work internally?