Tak jsem posbíral a sepsal hrátké howto pro současný debian. Je to hodně mocný generátor ... má i grafickou nadstavbu, ale používám to jen v konzoli. Umožňuje toho opravdu hodně - různé druhy provozu, umí být i stavový, dají se tím testovat výkonnosti firewallu, proxyn, routingu na různých velikostí mtu vč. imix, různé typ provozu - dns, sip, http, ..... Návody na netu jsou značně roztříštěné a rozhodně ne aktuální.
# Cisco TREX Debian 11 quick howto
#
# disable hyperthreading
# disable vt-d
# not all interfaces are supported
# it is better to use static arp on the device under test or configure longer arp timeout (trex respond to the arp request only at the start of test)
# install packages
apt -y install wget zlib1g-dev build-essential python python3-distutils mc linux-headers-`uname -r`
mkdir -p /opt/trex
cd /opt/trex
wget --no-cache https://trex-tgn.cisco.com/trex/release/latest --no-check-certificate
tar -xzvf latest
cd v2.95
# copy example cfg for loop test (connect both interfaces together)
cp cfg/simple_cfg.yaml /etc/trex_cfg.yaml
# show available ports
./dpdk_setup_ports.py -s
# set correct PCIID for two network cards, loop test. For routing test use example from fd.io bellow.
mcedit /etc/trex_cfg.yaml
# fix missing library
ln -s /usr/lib/x86_64-linux-gnu/libc.a /usr/lib/x86_64-linux-gnu/liblibc.a
# example commands
./t-rex-64 -f cap2/imix_64.yaml -m 2000 -d 5 -c 2
./t-rex-64 -f avl/sfr_delay_10_1g.yaml -c 2 -m 20 -d 100 -l 1000
# references
https://trex-tgn.cisco.com/trex/doc/trex_manual.html#_obtaining_the_trex_package
https://s3-docs.fd.io/vpp/22.06/usecases/simpleperf/trex.html
https://haryachyy.wordpress.com/2019/10/19/learning-dpdk-traffic-generator-trex/
https://tawmio.com/2019/07/08/trex-ciscos-stateful-stateless-traffic-generator/