Qualcomm interview question

Ping/Traceroute how does it work?