28b233a574af5c7a9f1a0965b1214b04f1265df7
[csit.git] / docs / report / introduction / test_environment_tg.rst
1 TG Settings - TRex
2 ------------------
3
4 TG Version
5 ~~~~~~~~~~
6
7 |trex-release|
8
9 DPDK Version
10 ~~~~~~~~~~~~
11
12 DPDK v19.05
13
14 TG Installation
15 ~~~~~~~~~~~~~~~
16
17 T-Rex installation is managed via Ansible role.
18
19 TG Startup Configuration
20 ~~~~~~~~~~~~~~~~~~~~~~~~
21
22 ::
23
24   $ sudo -E -S sh -c 'cat << EOF > /etc/trex_cfg.yaml
25   - version: 2
26     c: 8
27     limit_memory: 8192
28     interfaces: ["${pci1}","${pci2}"]
29     port_info:
30         - dest_mac: [${dest_mac1}]
31           src_mac: [${src_mac1}]
32         - dest_mac: [${dest_mac2}]
33           src_mac: [${src_mac2}]
34     platform :
35         master_thread_id: 0
36         latency_thread_id: 9
37         dual_if:
38             - socket: 0
39               threads: [1, 2, 3, 4, 5, 6, 7, 8]
40   EOF'
41
42 TG Startup Command (Stateless Mode)
43 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
45 ::
46
47   $ sudo -E -S sh -c "cd '${trex_install_dir}/scripts/' && \
48     nohup ./t-rex-64 -i --prefix $(hostname) --hdrh --no-scapy-server \
49     --mbuf-factor 32 > /tmp/trex.log 2>&1 &" > /dev/null
50
51 Also, Python client is now starting traffic with:
52
53 ::
54
55   core_mask=STLClient.CORE_MASK_PIN
56
57 TG API Driver
58 ~~~~~~~~~~~~~
59
60 `TRex driver`_