Node Latency Measures a Single HTTP Request
Clash clients typically show node latency in milliseconds. The core selects a node, sends an HTTP or HTTPS request to a test URL, and records the elapsed time according to the implementation. This is not an ICMP probe sent by the system’s ping command, nor is it a TCP port check to the proxy server’s IP address. The result reflects how the node reaches a specific destination; it does not, on its own, represent the round-trip time between your device and the node.
- Establish a proxy connection. The client connects to the node. A new connection may involve resolving the node’s hostname, establishing a transport connection, and completing the proxy protocol handshake. The exact steps depend on the node protocol and whether an existing connection can be reused.
- Reach the test destination. The node connects to the test site through its egress network. If the test URL uses HTTPS, it must also establish a TLS session with the destination site. Encryption for the connection to the node and HTTPS to the destination are two separate steps.
- Read the response. The test site returns an HTTP response. For example,
204 No Contenthas no response body, making it suitable for lightweight checks without placing a sustained download load on the connection.
DNS caching, connection reuse, TLS session resumption, and server processing time can all affect results between tests. mihomo’s unified-delay is a top-level setting. When enabled, it uses two probes to reduce the effect of the initial connection handshake on the latency reading. It does not convert HTTP request time into bandwidth. When comparing results across devices or clients, make sure the core, test URL, and this setting match; don’t compare readings taken under different conditions.
Test URLs and Timeout Settings
The Test URL Determines Which Part of the Route Is Measured
A test request covers two legs: your device to the proxy node, and the node’s egress to the test destination. The second leg can vary depending on the service the same node accesses. Results may change based on the IP address the destination hostname resolves to, how the egress network peers with the destination’s CDN, and whether the destination accepts requests from that egress. A test URL close to the node’s egress can produce a low reading even when traffic to a service takes a longer route or fails altogether.
To compare nodes, use the same HTTPS URL for each test. Choose an endpoint that returns a predictable, small response, such as https://www.gstatic.com/generate_204. The result shows how the node reaches that service. To troubleshoot a specific website, also test a request that actually fails on that site. Don’t compare URLs with login redirects, dynamic rendering, or large response bodies against a 204 probe as if they were equivalent.
Automatic Tests and Manual Checks May Use Different Settings
The following snippet contains fields for an existing mihomo url-test policy group. Add them to that group’s configuration; do not import them as a standalone config. timeout is in milliseconds, while interval is in seconds. This example sets the per-probe timeout to 5 seconds and the group’s scheduled test interval to 5 minutes.
url: https://www.gstatic.com/generate_204
timeout: 5000
interval: 300
Automatic policy-group tests, proxy-provider health checks, and manual tests in the client are configured in different places. After changing policy-group fields, reload the config and check the automatic test results. For manual tests, check the URL and timeout the client actually passes in; it may still be using its own defaults.
Why Low Latency Can Come with Slow Downloads
A short request transfers very little data; a download needs to keep sending data over time. During peak hours, a small request may slip through an idle queue while a long-lived connection gets repeatedly queued, drops packets, and retransmits them. Egress rate limits, bandwidth shared across multiple connections, or per-connection limits on the file server can also reduce throughput. These issues may have little effect on a single 204 probe.
| Metric | What It Measures | What to Keep Consistent |
|---|---|---|
| HTTP Probe Latency | Response time for a lightweight request, in ms | Same URL, timeout, and test method |
| Sustained Download Speed | Data received over a set period, in MB/s or Mbps | Same file source, sampling duration, and number of concurrent connections |
| Latency Variation | Distribution of repeated latency readings and number of timeouts | Same node and network; record results both idle and under load |
Example: Node A returns a probe result of 85 ms and downloads 20 MB in 10 seconds. Node B returns a probe result of 180 ms and downloads 100 MB in 10 seconds. Using decimal units, their average throughputs are about 16 Mbps and 80 Mbps, respectively. A responds faster to a lightweight request; B transfers more data during the sample. These figures answer different questions. This is a unit-conversion example, not a ranking based on real node tests.
Low Node Latency but Websites Won’t Load: Check the Actual Connection
- Check whether the request reaches the client. In Clash Verge Rev 2.x, for example, expand the manual selection group under “Proxies” and select a node. Then open “Connections” and revisit the page. Look for a connection to the destination hostname. If the page came from cache, or the connection disappeared too quickly to show up, reload the page with the browser’s Developer Tools “Network” panel open and compare the timing with the client’s “Logs.”
- Check the matched rule and actual egress. A latency test can target a specific node, but browser connections are routed according to the active rules. Check which policy group handled the failed request and whether it ultimately used the tested node,
DIRECT, another node, orREJECT. The main page loading successfully doesn’t mean its scripts, images, and API requests follow the same rules. - Distinguish traffic-capture failures from proxy failures. If a request was sent but the client shows no corresponding connection, first check whether the application follows the system proxy settings. With TUN enabled, check that the virtual network interface and routes are capturing the connection. Probes are usually sent by the core, so a node can still show low latency even when application traffic never reaches the client.
- Narrow down the failure by stage. If the hostname doesn’t resolve, check DNS. If the connection to the destination times out, note the hostname, selected egress, and time of day. For certificate errors, check the system clock and certificate chain. If the browser receives an HTTP
403or429, focus on the destination’s access restrictions or request rate instead of increasing the test timeout.
If a page loads only its layout, use the browser’s “Network” panel to find the first failed critical resource, such as an API request returning an error. Check the client’s rules and egress for that request’s hostname. This is more useful for diagnosing the problem than repeatedly refreshing the node’s latency reading.
Retest in Order: Latency, Destination Site, Sustained Throughput
- Test latency. Keep the network, test URL, and timeout fixed. Test each candidate node five times, a few seconds apart. Record the median and highest successful reading, along with the number of timeouts. If only a few probes succeed, mark the node as unstable even if those successful readings are fast.
- Test the destination site. Keep the node unchanged and visit the page that has the problem. Check which rule handled the request. Record the status codes for the main document and critical resources. If no response arrives, note the stage where it failed rather than simply writing “won’t load.”
- Test download speed. Use the same large file source that permits speed testing. Run only one download at a time, close other high-bandwidth tasks, and record the data received over a continuous 10-second period during steady transfer. Test candidate nodes one at a time; don’t start multiple downloads simultaneously. To check for peak-hour congestion, repeat a round during both off-peak and problem periods.
Choose a node based on what you need it for: for interactive requests, focus on response time, variation, and failures for the target service; for large downloads, focus on sustained throughput; for website issues, check traffic capture and routing rules first. The millisecond reading in a client can help narrow down candidates, but it is not a speed ranking for every website.