Explain how traceroute, ping, and tcpdump work and what they are used for?