Skip to main content
Technology|Network Engineer / Performance Engineer

Global Network Performance Testing

Compare reachability and routing from available measurement locations

Compare reachability and routing from available measurement locations. Use the API workflow below to collect dated findings, review their scope, and decide which follow-up checks your team needs.

Implementation example by the EdgeDNS team · Updated

The Challenge

Local measurements can miss a regional reachability or routing problem.

The Solution

Use network ping and traceroute with supported zone or geography filters. Inspect the actual measurement location and provider in results; available probes can vary. Poll the documented job-status route when a check is asynchronous, and account for per-zone request units.

Endpoints Used

Combine these EdgeDNS endpoints to build this solution.

GET
/v1/network/pingAPI reference

Global Ping: Real ICMP ping from 18 global cloud regions

GET
/v1/network/tracerouteAPI reference

Global Traceroute: Real ICMP traceroute from 18 global cloud regions

GET
/v1/domain/response-timeAPI reference

Response Time: Measure server response latency

GET
/v1/dns/propagationAPI reference

DNS Propagation: Check DNS consistency across resolvers

GET
/v1/domain/cdnAPI reference

CDN Detection: Detect CDN provider from headers

What this workflow helps you do

Choose measurement locations

Use supported filters and inspect actual result provenance.

Compare latency and paths

Keep ping, traceroute, and HTTP timing as distinct measurements.

Budget multi-zone checks

Uncached ping and traceroute consume units per requested zone.

Code Example

Compare reachability and routing from available measurement locations

javascript
const headers = { Authorization: 'Bearer YOUR_API_KEY' };
const checks = [
  {
    "path": "/v1/network/ping",
    "params": {
      "host": "example.com"
    }
  },
  {
    "path": "/v1/network/traceroute",
    "params": {
      "host": "example.com"
    }
  },
  {
    "path": "/v1/domain/response-time",
    "params": {
      "domain": "https://example.com"
    }
  }
];

// Run sequentially to keep concurrency bounded. API tier restrictions apply.
for (const { path, params } of checks) {
  const url = new URL(path, 'https://api.edgedns.dev');
  url.search = new URLSearchParams(params).toString();
  const response = await fetch(url, { headers });
  const result = await response.json();
  if (!response.ok) {
    throw new Error(`${path}: ${response.status} ${result.error?.message ?? 'Request failed'}`);
  }
  // Keep the response metadata and any partial/unknown findings for review.
  console.log(path, result);
}

Learn More

Explore industry standards and best practices related to this use case.

Ready to build Global Network Performance Testing?

Get started with 200 free API requests per month. No credit card required.

Other Use Cases

Global Network Performance Testing | EdgeDNS