The ping command is a very common debugging tool used to test the accessibility of devices. It uses a series of Internet Control Message Protocol (ICMP) Echo messages to check the following:
Whether the remote device is available
Round-trip delay in communicating with the remote host
Packet loss
The tracert command is used to test the path that packets pass between a source host and a destination host.
If a device is faulty, use the ping and tracert commands to check network connectivity.
The ping command is used to test network connectivity and host accessibility. This command instructs the source host to send an ICMP Request message to a destination host and waits for an ICMP Reply message.
The tracert command is used to check the network connectivity and locate faulty nodes.