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