Crates.io | udp_traffic_generator |
lib.rs | udp_traffic_generator |
version | 0.2.0 |
source | src |
created_at | 2022-08-01 10:56:23.167327 |
updated_at | 2023-05-23 08:00:45.154298 |
description | A tool to generate UDP traffic |
homepage | https://github.com/newfla/Rust-UDP-Traffic-Generator |
repository | https://github.com/newfla/Rust-UDP-Traffic-Generator |
max_upload_size | |
id | 636693 |
size | 54,538 |
Switch to crab-net with <TCP|UDP> + TLS support.
A CLI tool to generate UDP and DTLS traffic based on Tokio framework.
cargo install udp_traffic_generator
./udp_traffic_generator --help
Simple stress test for UDP Server
Usage: udp_traffic_generator [OPTIONS] --destination <addr>
Options:
-d, --destination <addr> Server address as IP:PORT
-c, --connections <clients> Number of clients to simulate [default: 1]
-l, --length <length> Payload size as bytes [default: 16]
-r, --rate <rate> Defined as packets/sec [default: 1]
-p, --port <port> Starting source port for clients [default: 8000]
-w, --workers <workers> Number of worker threads for the Tokio runtime [default: #CPU core]
-s, --timeout <timeout> Timeout between consecutive connections spawn as ms [default: 50]
--dtls <dtls> Send data over DTLS [default: false] [possible values: true, false]
--ca <ca> PEM File to validate server credentials
-h, --help Print help
-V, --version Print version