{"id":19544296,"url":"https://github.com/mehrdadrad/cput","last_synced_at":"2025-06-18T05:33:39.796Z","repository":{"id":140640534,"uuid":"254702665","full_name":"mehrdadrad/cput","owner":"mehrdadrad","description":"circuit throughput ","archived":false,"fork":false,"pushed_at":"2020-05-03T18:31:25.000Z","size":53,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T05:41:39.670Z","etag":null,"topics":["network","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mehrdadrad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2020-04-10T18:06:13.000Z","updated_at":"2025-02-23T18:27:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"83886bae-6bde-4b2c-b5c7-f9390c0f5724","html_url":"https://github.com/mehrdadrad/cput","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mehrdadrad/cput","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehrdadrad%2Fcput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehrdadrad%2Fcput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehrdadrad%2Fcput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehrdadrad%2Fcput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mehrdadrad","download_url":"https://codeload.github.com/mehrdadrad/cput/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehrdadrad%2Fcput/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260495267,"owners_count":23017870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["network","rust"],"created_at":"2024-11-11T03:26:37.066Z","updated_at":"2025-06-18T05:33:34.783Z","avatar_url":"https://github.com/mehrdadrad.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cput\ncput is an open source software utility which wrote by rust language to generate UDP traffic over the circuit(s) and measures the latency. it works as client-server model and multithreading.\n\n## Features:\n* Generates UDP traffic based on the specific MTU\n* Measures UDP loss\n* Measures TCP round-trip time\n* Realtime statistics or json output\n\n![topo](/docs/imgs/cput_diagram.png?raw=true \"cput\")\n\nClient Side\n```\nhost1#cput -c --server-addr 192.158.10.23:3055\ncput client mode enabled\n[1000 UDP pkts sent (localhost), 1000 UDP pkts recvd (192.168.10.23), TCP RTT min/avg/max 12.546/14.256/16.803 ms]\n```\nServer Side\n```\nhost2#cput -s --server-bind 192.158.10.23:3055\ncput server mode enabled\n[10000 packets sent (192.158.11.44), 10000 packets received (localhost)]\n```\n\nClient Side - Json Pretty\n```\nhost1#cput -c --server-addr 192.158.10.23:3055 --json-pretty\ncput client mode enabled\n{\n  \"udp_packets_transmitted\": 1000,\n  \"udp_packets_received\": 1000,\n  \"tcp_round_trip_time\": {\n    \"min\": 12.775,\n    \"max\": 20.17,\n    \"avg\": 14.78,\n    \"count\": 10\n  }\n}\n```\n\n```\nCircuit Throughput 0.0.1\n\n            host1# cput -s \n            host2# cput -c --server-addr host1:3055\n            \n\nUSAGE:\n    cput [FLAGS] [OPTIONS]\n\nFLAGS:\n    -c, --client         enable client mode\n    -h, --help           Prints help information\n        --json           set json output\n        --json-pretty    set json pretty output\n    -l, --loopback       enable loopback mode\n    -s, --server         enable server mode\n    -V, --version        Prints version information\n\nOPTIONS:\n    -n, --count \u003ccount\u003e                packet limitation\n        --mtu \u003cmtu\u003e                    UDP packet / payload size\n    -r, --rate-limit \u003crate\u003e            set rate limit\n        --server-addr \u003cserver-addr\u003e    server / host ip::port address\n        --server-bind \u003cserver-bind\u003e    server bind ip::port address\n        --source-addr \u003csource-addr\u003e    client source ip::port address\n    -t, --thread \u003cthread\u003e              threads number\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehrdadrad%2Fcput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmehrdadrad%2Fcput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehrdadrad%2Fcput/lists"}