The ping and traceroute endpoints are rate limited and intended for troubleshooting, not regular monitoring.
Use cases
These diagnostics help you troubleshoot network connectivity issues by testing reachability and path visibility from the NAT Gateway itself. Common use cases include:- Verifying connectivity to cloud provider endpoints before configuring BGP sessions
- Testing reachability to on-premises networks connected via VXCs
- Diagnosing routing issues by confirming whether the NAT Gateway can reach specific destinations
- Validating network paths and measuring round-trip latency
- Identifying routing hops and potential bottlenecks using traceroute
- Troubleshooting asymmetric routing or path issues
Prerequisites
The NAT Gateway must have at least one active VXC attached. Running a diagnostic on an NAT Gateway with no VXCs returns a 400 Bad Request error with the message: “NAT Gateway has no VXCs attached. Ping/traceroute requires at least one active VXC.”Ping
Use the ping diagnostic to test basic connectivity and measure round-trip latency to a destination IP address.Initiating a ping request
To start a ping diagnostic from your NAT Gateway, send a GET request to the ping endpoint with the destination IP address and optional parameters. Endpoint
Query Parameters
Example Request
operationId that you use to retrieve the ping results.
Retrieving ping results
After initiating a ping request, use the diagnostics operation endpoint to retrieve the results. The operation runs asynchronously, so you might need to poll until the results are ready. Endpoint
Query Parameters
Response Codes
Example Request
rawOutput containing the raw ping command output, and statistics with detailed packet and timing metrics. If the ping fails, an error field contains the error message.
Traceroute
Use the traceroute diagnostic to discover the network path between your NAT Gateway and a destination IP address, showing each hop along the route.Initiating a traceroute request
To start a traceroute diagnostic from your NAT Gateway, send a GET request to the traceroute endpoint with the destination IP address. Endpoint
Query Parameters
Example Request
operationId that you use to retrieve the traceroute results.
Retrieving traceroute results
After initiating a traceroute request, use the diagnostics operation endpoint to retrieve the results. The operation runs asynchronously, so you might need to poll until the results are ready. Endpoint
Query Parameters
Response Codes
Example Request
hops, where each hop contains a hop number and an array of probes. Each probe shows the responding host (IP address or hostname) and the rttMs (round-trip time in milliseconds). If a probe receives no response, host may be null. The rawOutput field contains the raw traceroute command output.