{"id":38107516,"url":"https://github.com/wxiaoguang/echoping","last_synced_at":"2026-01-16T21:43:35.224Z","repository":{"id":57622682,"uuid":"324400045","full_name":"wxiaoguang/echoping","owner":"wxiaoguang","description":"A golang network utility using TCP \u0026 UDP messages to detect network stability.","archived":false,"fork":false,"pushed_at":"2022-11-14T13:52:29.000Z","size":47,"stargazers_count":17,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-25T11:04:08.674Z","etag":null,"topics":["echo","golang","network","network-monitoring","ping","quic","tcp","udp","utility"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wxiaoguang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-25T16:55:45.000Z","updated_at":"2025-05-23T10:49:39.000Z","dependencies_parsed_at":"2023-01-23T16:30:36.160Z","dependency_job_id":null,"html_url":"https://github.com/wxiaoguang/echoping","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/wxiaoguang/echoping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxiaoguang%2Fechoping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxiaoguang%2Fechoping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxiaoguang%2Fechoping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxiaoguang%2Fechoping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wxiaoguang","download_url":"https://codeload.github.com/wxiaoguang/echoping/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxiaoguang%2Fechoping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28483727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["echo","golang","network","network-monitoring","ping","quic","tcp","udp","utility"],"created_at":"2026-01-16T21:43:34.600Z","updated_at":"2026-01-16T21:43:35.213Z","avatar_url":"https://github.com/wxiaoguang.png","language":"Go","readme":"# echoping\n\nA golang network utility using TCP/UDP-Datagram/QUIC messages to detect network stability.\n\n## Why to write this network utility\n\nIt's difficult to detect network problems in real life. \n\n`echoping` uses TCP and UDP(Datagram or QUIC) protocols instead of ICMP used by traditional `ping`, and send messages more frequently.\n\n`echoping` works more like a real network application, and reports network problems as the real one.\n\n\n## How it works\n\n1. Start a `echoping` server by `./echoping -listen IP:PORT`\n2. Start `echoping` clients to use the `echoping` server: `./echoping -connect SERVER_IP:SERVER_PORT`\n3. Every `echoping` client sends TCP/UDP-Datagram/QUIC requests to the server\n4. The server sends every request as a response back to the client\n5. The client collects the responses and calculates the packet loss ratio (UDP only) and round-trip time\n6. If any network error occurs, the client will retry to connect and send requests forever. \n7. Every connection (ping session) has a unique session id which is generated by the connection time, it helps to distinguish different client connections, eg: if a network error occurs and a client re-connects, then there will be a new session id in logs.\n\n⚠️ The server and client versions must match, otherwise the protocol may not work ⚠️\n\nUsage:\n\n```\n  -connect string\n    \tConnect to 'tcp://ip:port/,udp://ip:port/,quic://ip:port/' (can be repeated, use comma as delimiter), or use 'ip:port' for all TCP/UDP/QUIC\n  -listen string\n    \tListen both TCP and UDP on ip:port (UDP also works for QUIC)\n  -listen-tcp string\n    \tListen TCP on ip:port\n  -listen-udp string\n    \tListen UDP on ip:port (UDP also works for QUIC)\n  -loss-ratio string\n    \tThe simulated UDP loss ratio on client side (must be used with \"-connect\"). \"0.1\"\" means 10% packet loss, \"0.1,0.2\" means 0.1 for sending and 0.2 for receiving\n  -payload-size int\n    \tThe payload size of ping request (default 1300)\n  -ping-interval duration\n    \tThe interval between ping requests sent by client (default 20ms)\n```\n\nServer output:\n```\n2020/12/26 01:24:54 server stat udp:127.0.0.1:52032 (20201226-012449.458182): pps=10.0, tmperr=0\n2020/12/26 01:24:54 server stat tcp:127.0.0.1:56524 (20201226-012449.458231): pps=10.0, tmperr=0\n```\n\nClient output:\n```\n2020/12/26 01:24:54 client stat udp:127.0.0.1:12345 (20201226-012449.458182): pps=11.0, recv=0.01MB/s, loss=0.0%, round-trip time (ms): avg=0.4, min=0.2, max=0.6, stddev=0.1\n2020/12/26 01:24:54 client stat tcp:127.0.0.1:12345 (20201226-012449.458231): pps=11.0, recv=0.01MB/s, loss=0.0%, round-trip time (ms): avg=0.3, min=0.2, max=0.4, stddev=0.1\n```\n\n* \"20201226-012449.458182\" is the ping session id, which is generated by the time of the client starts the ping session.\n* `pps` means \"ping per second\"\n* The `loss` of TCP and QUIC is always 0% (of course)\n\n## Develop and debug locally\n\n```\n./echoping -listen :12345 -connect 127.0.0.1:12345\n```\n\nSimulate delayed and dropped packets on Linux: https://stackoverflow.com/questions/614795/simulate-delayed-and-dropped-packets-on-linux\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwxiaoguang%2Fechoping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwxiaoguang%2Fechoping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwxiaoguang%2Fechoping/lists"}