crab-net

Crates.iocrab-net
lib.rscrab-net
version0.0.3
sourcesrc
created_at2023-05-23 07:52:02.367324
updated_at2024-11-14 10:03:35.513239
description + TLS packets generator
homepagehttps://github.com/newfla/crab-net
repositoryhttps://github.com/newfla/crab-net
max_upload_size
id871782
size88,653
Flavio Bizzarri (newfla)

documentation

README

Crab Net

A CLI tool to generate TCP/TLS & UDP/DTLS traffic based on Tokio framework.

Cargo Install

cargo install crab-net

Help

./crab-net --help
Simple stress test for servers

Usage: crab-net [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]
      --udp                    Send packets via UDP
      --tls                    Send data over TLS
      --ca <ca>                PEM File to validate server credentials
  -h, --help                   Print help
  -V, --version                Print version
Commit count: 27

cargo fmt