There are many tools available based on the requirement.
but most commonly used one you mentioned ping and traceroute
PING - It is a utility that helps one to check if a particular IP address is accessible or not. Ping works by sending a packet to the specified address and waits for the reply. It also measures round trip time and reports errors.
TRACEROUTE – It is a utility that traces a packet from your source device to the other device or host, and will also show the number of steps (hops) required to reach there, along with the time by each step.