Ping and traceroute are commonly used network tools that help diagnose connectivity issues. They both serve the purpose of understanding how your network is functioning.
A ping is a network tool used to test the reachability of a device on a network and measure the round-trip time (RTT) it takes for data packets to travel to the device and back. It's like sending a quick message to another computer on the network and waiting for a response to see if it's "online" and how long it takes to communicate with it. Ping checks if the target device is turned on and connected to the network. If the device is reachable, you'll receive a response message indicating successful communication and measures the time it takes for a data packet to travel from your device to the target device and back. This provides insights into the speed and potential delays in your network connection. Lower RTT generally indicates a faster and more responsive connection, while higher RTT implies slower communication or network congestion. I did a ping for google.com and rtl.de ( rtl.de is the RTL website, a TV channel broadcasted in Germany). Both google.com and rtl.de are reachable since you received a response for both pings. google.com: With an average time of 28ms, your connection to Google is considered fast and indicative of low latency. This means there's minimal delay in communication, which translates to a smooth and responsive experience when accessing Google services or websites. rtl.de. The average time of 206ms suggests a slower connection than Google. This higher latency can be noticeable in delays and less responsiveness when accessing the website, especially for activities requiring real-time interaction. Streaming platforms like Netflix might not allow ping on their servers to optimize resource usage for delivering high-quality video streams. I tried to ping netflix.com, and all the packets were lost. Disabling ping responses can help mitigate denial-of-service (DoS) attacks by preventing malicious actors from easily identifying and overwhelming servers with ping requests. (Kaur et al., 2017) We will discuss this in another article with more details.
Traceroute, also known as tracert on Windows systems, is a network diagnostic tool that helps visualize the path that data packets take when traveling from your device to a specific destination on the internet. It works by sending out a series of packets with a limited lifespan (Time To Live or TTL) and recording the network devices (hops) the packets encounter before reaching their destination or timing out. Traceroute is a useful tool for diagnosing and resolving network issues. It works by sending packets of data to a destination and recording the time and route taken by each packet. By doing this, traceroute can help identify bottlenecks or congested points along the path, pinpointing where potential network problems might be occurring.
Additionally, traceroute can reveal the number and location of intermediate devices involved in the connection, such as routers, switches, and firewalls, providing insights into the overall network structure. This can help users understand how their data travels across the network and what factors might affect its performance. Furthermore, traceroute can help troubleshoot connectivity problems like slow loading, timeouts, or errors. If a user is experiencing difficulties connecting to a specific website or service, traceroute can help identify where the connection might be failing, whether it is on the user's end, the destination's end, or somewhere in between. Using traceroute, users can isolate the source of the problem and take appropriate steps to fix it. I tested three websites: yandex.com, rtl.de, and google.com. These were the results:
All three traces start from your local network (10.0.0.1) and travel through Comcast network devices until reaching Level 3 (4.68.37.129) for google.com and rtl.de. For yandex.com, the path diverges earlier, reaching Comcast's be-36141-cs04 router (68.86.93.13) before transitioning to the Ibone network and ultimately reaching yandex.ru.
The number of hops (network devices) varies:
- google.com: 8 hops (excluding timeouts)
- rtl.de: 17 hops (excluding timeouts)
- yandex.com: 14 hops (excluding timeouts
All three traces experience timeouts at some point, indicated by asterisks (*). This means the request to the next hop in the path didn't receive a response within the allotted time.
One of the common problems that users might encounter when using traceroute is timeouts. A timeout means that the traceroute request did not receive a response from the next hop device within a specified time limit. Timeouts can occur due to various reasons, including:
Device overload: The next hop device might be busy and unable to respond promptly. This could happen if the device is handling a lot of traffic or performing other tasks.
Congestion: Heavy traffic on the network segment might delay or drop packets. This could happen if there are too many users or devices competing for bandwidth or if there is a faulty link or device.
Firewall restrictions: Firewalls might be configured to block certain types of traffic, including traceroute requests. This could happen if the network administrator or the service provider has set up rules to prevent unauthorized or malicious access.
References
Kaur, P., Kumar, M., & Bhandari, A. (2017). A review of detection approaches for distributed denial of service attacks. Systems Science & Control Engineering, 5(1), 301–320. https://doi.org/10.1080/21642583.2017.1331768


No comments:
Post a Comment