test_network_connectivity
Benchmark outbound network connectivity and latency by measuring DNS resolution, TCP handshake, and TLS handshake times via direct Python sockets, without relying on shell ping.
Instructions
Benchmark outbound network connectivity and latency using direct Python sockets.
Measures DNS resolution latency, TCP handshake time, and TLS handshake latency without shell ping.
Args: target_host: Destination hostname or IP address (e.g. 'api.github.com' or '8.8.8.8'). port: Destination port (1-65535, default 443). timeout_seconds: Network socket timeout (0.5 to 30.0 seconds, default 5.0).
Returns: JSON string with stage latency breakdown, resolved IP addresses, and TLS session details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| target_host | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |