Skip to content

enyx-opensource/enyx-net-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

121 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Build status

Description

This package contains various tools used to generate and verify network traffic.

Build

Requirements

  • CMake
  • boost devel

Steps

On linux/BSD:

$mkdir build && cd build
$cmake ..
$make -j`nproc`

On Windows:

>mkdir build && cd build
>cmake -G "Visual Studio 15 2017 Win64"
>cmake --build . --config Release

Usage

enyx-net-tester

Wait for a tcp connection on loopback port 12345 and generate 25Mb/s traffic:

$echo '--listen 127.0.0.1:12345 --tx-bandwidth 25Mb --size 1Gb' >response_file
$enyx-net-tester --configuration-file=response_file

Connect twice in parallel with different parameters:

$echo '--connect 127.0.0.1:12345 --tx-bandwidth 10Mb --verify=all --size 256Mb' >response_file
$echo '--connect 127.0.0.1:12346 --tx-bandwidth 25Mb --size 1024Mb' >>response_file
$enyx-net-tester --configuration-file=response_file

Connect on loopback port 12345 and generate 10Mb/s traffic while checking received data:

$echo '--connect 127.0.0.1:12345 --tx-bandwidth 10Mb --verify=all --size 256Mb' >response_file
$enyx-net-tester --configuration-file=response_file

Connect on loopback port 12345 and generate 10Mb/s traffic while capping reception to 5Mb/s:

$echo '--connect 127.0.0.1:12345 --tx-bandwidth 10Mb --rx-bandwidth 5Mb' >response_file
$enyx-net-tester --configuration-file=response_file

Connect on remote 192.168.10.4 port 12345 from local address 192.168.10.3 port 54321 and generate 10Mb/s traffic while capping reception to 5Mb/s:

$echo '--connect 192.168.10.3:54321:192.168.10.4:12345 --tx-bandwidth 10Mb --rx-bandwidth 5Mb' >response_file
$enyx-net-tester --configuration-file=response_file

About

This package contains various tools used to generate and verify network traffic

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors