Skip to main content
acvaldez
Staff
Staff
Jul 1, 2024 5:32 AM UTC

Technical Tip: Using Ping with Timestamp for Packet Loss Analysis

Description This article describes that for a deeper analysis, use the ping command with timestamps. This technique provides precise timing information for each packet sent and received, allowing to identify of patterns and potential issues in the network.
Scope Windows machine, FortiGate.
Solution

To identify the exact time packet loss,  use the ping command with timestamps. This method is particularly useful in scenarios where tools like PRTG are generating packet loss notifications.

For example, if receiving a packet loss alert from PRTG, set up a machine behind a FortiGate or connect it directly to it, and perform a ping test with timestamps. By comparing the timestamp of the packet loss notification in PRTG with the timestamped results from the ping test, verify if the packet loss coincides in both cases.

This approach helps to accurately pinpoint when and where packet loss is happening, making troubleshooting more efficient.

 

Command: 

 

ping.exe -t 8.8.8.8 | Foreach {"{0}-{1}" -f (Get-Date),$_}>> ping_test.txt

ping test with timestamp -1.PNG
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024