{"id":50405272,"url":"https://github.com/simonpainter/echo_test","last_synced_at":"2026-05-31T01:04:25.347Z","repository":{"id":282979957,"uuid":"950294167","full_name":"simonpainter/echo_test","owner":"simonpainter","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-09T13:34:42.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-09T15:34:55.977Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","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/simonpainter.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-18T00:00:02.000Z","updated_at":"2026-05-09T13:28:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"febe2f0e-8c21-41a0-8bcd-f48e6fe76001","html_url":"https://github.com/simonpainter/echo_test","commit_stats":null,"previous_names":["simonpainter/echo_test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simonpainter/echo_test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonpainter%2Fecho_test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonpainter%2Fecho_test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonpainter%2Fecho_test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonpainter%2Fecho_test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonpainter","download_url":"https://codeload.github.com/simonpainter/echo_test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonpainter%2Fecho_test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33715214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-05-31T01:04:24.568Z","updated_at":"2026-05-31T01:04:25.342Z","avatar_url":"https://github.com/simonpainter.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Echo Test\n\nA tool for measuring TCP connection latency between hosts.\n\n## Purpose\n\nThis repository contains a simple client-server setup for testing TCP connection latency between different hosts in cloud environments. It's designed to evaluate performance of long-lived TCP connections across various network scenarios.\n\n## Components\n\n- `client/echo_client.py`: Python client for sending test data and measuring response times\n- `server/setup-echo-server.sh`: Script to set up and run the echo server\n\n## Usage\n\n### Server Setup\n\nThe echo server uses xinetd to provide a simple TCP echo service on port 7.\n\n1. SSH into the target host and clone this repository\n2. Run the setup script with root privileges:\n\n```bash\ncd server\nsudo ./setup-echo-server.sh\n```\n\nThe script will:\n- Install xinetd\n- Configure the echo service\n- Update the services file if needed\n- Configure the firewall (optional)\n- Start and enable the xinetd service\n\n### Client Usage\n\nThe client connects to the echo server and measures round-trip time (RTT) with microsecond precision, displaying output in a style similar to `ping`. A warmup packet is sent silently after the TCP connection is established to settle ARP resolution and kernel state before timing begins.\n\n```bash\npython3 client/echo_client.py \u003chost\u003e \u003cport\u003e [options]\n```\n\nRequired arguments:\n- `host`: Echo server hostname or IP address\n- `port`: Echo server port (typically 7)\n\nOptional arguments:\n- `--size SIZE`: Size of payload in bytes (default: 64)\n- `--frequency FREQUENCY`: Interval between packets in seconds (default: 1.0)\n- `--count COUNT`: Number of packets to send; 0 means infinite (default: 0)\n- `--timeout TIMEOUT`: Socket timeout in seconds (default: 5.0)\n- `--csv PATH`: Save precise timing data to a CSV file (optional)\n\nPress **Ctrl+C** to stop an infinite run; a statistics summary is always printed on exit.\n\n### Examples\n\nRun a continuous test against a server at 10.0.0.1:\n```bash\npython3 client/echo_client.py 10.0.0.1 7\n```\n\nSend 100 packets of 1024 bytes at 0.5-second intervals:\n```bash\npython3 client/echo_client.py 10.0.0.1 7 --size 1024 --frequency 0.5 --count 100\n```\n\nSave timing data to a CSV file:\n```bash\npython3 client/echo_client.py 10.0.0.1 7 --count 60 --csv results/run1.csv\n```\n\n### Output\n\nEach packet prints a single line and a summary is shown on exit:\n\n```\nECHO 10.0.0.1:7 (64 bytes of data)\n64 bytes from 10.0.0.1:7: seq=1 time=312.450 μs\n64 bytes from 10.0.0.1:7: seq=2 time=298.112 μs\n^C\n--- 10.0.0.1:7 echo statistics ---\n2 packets transmitted, 2 received, 0.0% packet loss\nrtt min/avg/max/stddev = 298.112/305.281/312.450/10.139 μs\n```\n\nIf `--csv` is specified the file contains these columns:\n- `packet_num`: Sequential packet number\n- `timestamp`: Human-readable timestamp\n- `send_time_ns`: Send time in nanoseconds\n- `receive_time_ns`: Receive time in nanoseconds\n- `rtt_us`: Round-trip time in microseconds\n\n## Repository standards and templates\n\n- License: [MIT](LICENSE)\n- Contribution guide: [CONTRIBUTING.md](CONTRIBUTING.md)\n- Code of conduct: [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)\n- Security policy: [SECURITY.md](SECURITY.md)\n- Pull request template: [`.github/pull_request_template.md`](.github/pull_request_template.md)\n- Issue templates: [`.github/ISSUE_TEMPLATE/`](.github/ISSUE_TEMPLATE)\n- Copilot instructions: [`.github/copilot-instructions.md`](.github/copilot-instructions.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonpainter%2Fecho_test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonpainter%2Fecho_test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonpainter%2Fecho_test/lists"}