Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mehrdadrad/cput
circuit throughput
https://github.com/mehrdadrad/cput
network rust
Last synced: 2 days ago
JSON representation
circuit throughput
- Host: GitHub
- URL: https://github.com/mehrdadrad/cput
- Owner: mehrdadrad
- License: mit
- Created: 2020-04-10T18:06:13.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-03T18:31:25.000Z (over 4 years ago)
- Last Synced: 2024-11-11T03:28:53.654Z (2 months ago)
- Topics: network, rust
- Language: Rust
- Size: 51.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cput
cput 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.## Features:
* Generates UDP traffic based on the specific MTU
* Measures UDP loss
* Measures TCP round-trip time
* Realtime statistics or json output![topo](/docs/imgs/cput_diagram.png?raw=true "cput")
Client Side
```
host1#cput -c --server-addr 192.158.10.23:3055
cput client mode enabled
[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]
```
Server Side
```
host2#cput -s --server-bind 192.158.10.23:3055
cput server mode enabled
[10000 packets sent (192.158.11.44), 10000 packets received (localhost)]
```Client Side - Json Pretty
```
host1#cput -c --server-addr 192.158.10.23:3055 --json-pretty
cput client mode enabled
{
"udp_packets_transmitted": 1000,
"udp_packets_received": 1000,
"tcp_round_trip_time": {
"min": 12.775,
"max": 20.17,
"avg": 14.78,
"count": 10
}
}
``````
Circuit Throughput 0.0.1host1# cput -s
host2# cput -c --server-addr host1:3055
USAGE:
cput [FLAGS] [OPTIONS]FLAGS:
-c, --client enable client mode
-h, --help Prints help information
--json set json output
--json-pretty set json pretty output
-l, --loopback enable loopback mode
-s, --server enable server mode
-V, --version Prints version informationOPTIONS:
-n, --count packet limitation
--mtu UDP packet / payload size
-r, --rate-limit set rate limit
--server-addr server / host ip::port address
--server-bind server bind ip::port address
--source-addr client source ip::port address
-t, --thread threads number
```