Ping Test|Ping 延迟测试

Ping Test|Ping 延迟测试

Ping Test Ping 延迟测试

在浏览器中测试目标主机的连通性延迟(RTT),并统计最小/平均/最大值与丢包率。
Test reachability and round-trip time (RTT) in the browser, with min/avg/max and packet loss statistics.

1. 输入参数 · Test Settings
建议输入完整 URL(含 https://),结果更稳定。若只填域名/IPv4/IPv6,工具会自动补全为 https://。
Prefer a full URL (with https://) for stable results. If you enter only a host, it will be normalized to https://.
Image Beacon:通过加载图片(或任意资源)来测量往返时间,跨域一般可用;但本质是“HTTP 请求耗时”,并非 ICMP。
Fetch:更可控,可读状态码,但多数站点跨域会阻止(CORS),可能导致失败或只能得到“失败但耗时”。
Image Beacon measures load time without CORS in most cases; Fetch is stricter but often blocked by CORS.
建议 5–20 次用于快速判断;想更稳可 30–60 次。次数越多越接近真实波动,但耗时更长。
Use 5–20 for quick checks; 30–60 for steadier stats. More samples mean better stability but longer runtime.
两次测试之间的等待时间。间隔太短会被浏览器并发/缓存策略影响,也可能触发站点限流。
Delay between probes. Very short intervals may be affected by browser concurrency/caching or rate limiting.
单次请求超过该时间会判定为超时(记为丢包/失败)。网络较差或目标较远时可适当调大。
If one probe exceeds this time, it’s marked as timeout (loss/failure). Increase it for distant or slow targets.
⏹️ 未运行 · Idle
3. 使用说明 · Notes
  • 这是什么?What is this?
    这是一个浏览器版 Ping 延迟测试工具,用于快速判断“我到目标站点/服务”的网络连接是否顺畅,以及大致的往返延迟(RTT)。
    This is a browser-based ping-like tool to quickly judge connectivity and estimate RTT between your browser and a target.
  • 重要限制(务必读)Important limitations (please read):
    由于浏览器安全模型限制,本工具不能发送真正的 ICMP Ping(不像系统自带 ping 命令)。我们测量的是 HTTP/资源请求的耗时,因此包含:DNS 解析、TCP/TLS 握手、HTTP 响应与浏览器处理等。
    Browsers cannot send real ICMP ping. We measure HTTP/resource timing, which includes DNS, TCP/TLS handshake, HTTP response, and browser processing.
  • 如何填“目标地址”?How to choose a target?
    ✅ 推荐填:你要测试的站点 URL(例如 https://yourdomain.com/ )或某个稳定的公共地址。
    ✅ If you only have a domain/IP, it will be normalized to https://<host>/.
    ⚠️ 如果目标不支持 HTTPS、或被浏览器拦截混合内容/证书问题,结果会失败。
    ⚠️ If the target doesn’t support HTTPS or has certificate issues, probes may fail.
  • 两种方式怎么选?Which method should I use?
    Image Beacon(推荐):通常不需要 CORS 许可,适合做“连通性 + 延迟粗测”。但它依赖资源加载完成事件,若目标返回很大内容或被重定向/拦截,耗时会变大。
    Image Beacon (recommended): usually works without CORS. Great for quick connectivity + rough latency checks. It measures resource load completion; large responses or redirects can increase time.
    Fetch:更像“HTTP 延迟测量”,能拿到 status(若同源或允许 CORS)。但大部分网站不允许跨域,因此可能频繁失败。
    Fetch: closer to HTTP latency testing and can read status when allowed. But many sites block cross-origin requests, causing failures.
  • 如何解读结果?How to interpret results?
    Avg RTT:成功样本的平均耗时。越低越好;同时要看是否稳定。
    Jitter:抖动(波动)大小,数值越大越不稳定;对实时业务(语音/游戏/交易)更敏感。
    Loss:超时/失败比例。若持续高丢包,建议检查 DNS、路由、运营商、代理/VPN、站点限流与防火墙。
    Avg RTT is the mean of successful probes. Jitter reflects stability. Loss indicates timeouts/failures (which may also be caused by CORS/HTTPS blocking).
  • 常见排错建议 Quick troubleshooting tips:
    1)把“间隔”调到 300–800ms,避免太密集触发限制;2)把“超时”调到 5000–10000ms 观察是否只是慢;3)切换方法(Fetch ↔ Image);4)换一个更具体的测试 URL(例如站点的 /favicon.ico 或某个小文件)。
    1) Increase interval; 2) Increase timeout; 3) Switch methods; 4) Use a small resource path like /favicon.ico.
  • 隐私与安全 Privacy & safety:
    本工具完全在本地浏览器运行,不会把你的输入上传到服务器(除非你自己访问的目标 URL 在远端记录访问日志,这是正常的 Web 行为)。
    This tool runs locally in your browser; it doesn’t upload your input anywhere, except that the target URL may log incoming requests as normal web traffic.

说明:统计结果仅供排错与参考,不构成任何 SLA 或网络质量承诺。若需要“真正的 ICMP Ping/Traceroute”,请使用系统命令(Windows: ping/tracert,macOS/Linux: ping/traceroute),或在服务器侧实现探测。
Note: Results are for troubleshooting/estimation only and not an SLA guarantee. For real ICMP ping/traceroute, use OS tools or server-side probes.