White Papers

11
|
QAT Whitepaper
© 2019 Dell Inc. or its subsidiaries.
6.3 Server Setup for Traffic Generator
The section describes the steps required to run TRex on the traffic generating server. See links for additional information
on DPDK and getting started with IPsec.
9
There is additional reference material for TRex online.
10
1. Disable the network ports being used for DPDK:
cd /etc/sysconfig/network-scripts
ifdown p1p1
ifdown p1p2
service network restart
2. Download and untar DPDK in directory “dpdk”.
cd /home/dell
git clone http://dpdk.org/git/dpdk
3. Compile/Setup DPDK
cd /home/dell/dpdk
export DESTDIR=x86_64-native-linuxapp-gcc_destdir
make T=x86_64-native-linuxapp-gcc install -j100
4. Insert DPDK UIO driver into Kernel:
modprobe uio
insmod x86_64-native-linuxapp-gcc/kmod/igb_uio.ko
5. Bind DPDK UIO module with PCI device. (Note: This step is generally not needed as Trex binds to DPDK itself
with information from its configuration file with specified PCIe ID’s.)
./usertools/dpdk-devbind.py -b igb_uio 0000:3b:00.0
./usertools/dpdk-devbind.py -b igb_uio 0000:3b:00.1
6. Generate Trex configuration file.
cd /home/dell/trex-core/scripts
./dpdk_setup_ports.py -i
Follow the prompts to generate trex_cfg.yaml.
This file needs to be generated only once, or one can use the file generated already.
7. Open 2 Linux terminals
8. On First terminal, launch Trex Traffic generator:
cp -f trex_cfg.yaml /etc/
cd /home/dell/trex-core/scripts
./t-rex-64 --cfg /etc/trex_cfg.yaml -i
9. On 2nd terminal, launch Trex Console:
cd /root/my_home/trex-core/scripts
./trex-console
10. In Trex Console, execute following commands to start Trex traffic:
portattr -a --prom on
start -f qat_tests/udp_1pkt_simple_<payload_size>.py -m 25gbps -p 0 --force
stop -a
Where: payload_size varies from 100-1400 bytes.
Trex traffic files with it are already created within qat_tests directory.
11. Network traffic for each of the tests can be started and stopped with commands in previous step.