Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/enobufs/sctptest

SCTP throughput test using go-rudp
https://github.com/enobufs/sctptest

Last synced: 10 days ago
JSON representation

SCTP throughput test using go-rudp

Awesome Lists containing this project

README

        

# sctptest

User-sapce SCTP (pion/sctp wrapped by go-rudp) test tool.

## Features
* Output send / receive throughput to stdout every 2 seconds
* Select TCP for comparison
* Select IPv4 and IPv6
* Server/Client 1:N connections
* Change buffer size of SCTP and UDP socket

## Build
```sh
$ git clone [email protected]:enobufs/sctptest.git
$ cd sctptest
$ go build
```

## Usage
```
$ ./sctptest -h
Usage of ./sctptest:
-b
UDP read/write buffer size (0: use default)
-k
Shutdown timer in seconds (0: defaults to no-shutdown)
-l
Port number to listen as a server (default 40916)
-m
Message size (default 32768)
-n
Number of messages to transfer (default 32768)
-network string
Network type. specify "udp" for SCTP, or "tcp" for TCP (default "udp4")
-s
Remote server address (e.g. 127.0.0.1:40916)
-u
Unordered. (UDP client only)
-r
Partial reliability remix value (UDP client only)
-t
Partial reliability lifetime value (UDP client only)
```

## Run
Server terminal (the receiver):
```sh
$ ./sctptest -network udp4
2019/09/30 22:13:24 listening on udp:0.0.0.0:40916 ...
```

Client terminal (the sender):
```sh
$ ./sctptest -network udp4 -s 127.0.0.1:40916 -m 1200 -n 1000000
2019/09/30 22:13:34 connecting to server :40916 ...
2019/09/30 22:13:35 Throughput: 439.222 Mbps
2019/09/30 22:13:36 Throughput: 511.782 Mbps
2019/09/30 22:13:37 Throughput: 512.076 Mbps
:
```