d1101edb85aabfa99ffe662a77b90934ef84d941
[vpp.git] / docs / usecases / simpleperf / trex1.rst
1 .. _trex1:
2
3 Using VPP with TRex Mixed Traffic Templates
4 ===========================================
5
6 In this example, a more complicated traffic with delay profile on *net2s22c05* is
7 generated using the traffic configuration file "avl/sfr_delay_10_1g.yaml":
8
9 .. code-block:: console
10
11    NET2S22C05$ sudo ./t-rex-64 -f avl/sfr_delay_10_1g.yaml -c 2 -m 20 -d 100 -l 1000
12    summary stats
13     --------------
14     Total-pkt-drop       : 43309 pkts
15     Total-tx-bytes       : 251062132504 bytes
16     Total-tx-sw-bytes    : 21426636 bytes
17     Total-rx-bytes       : 251040139922 byte
18    
19     Total-tx-pkt         : 430598064 pkts
20     Total-rx-pkt         : 430554755 pkts
21     Total-sw-tx-pkt      : 324646 pkts
22     Total-sw-err         : 0 pkts
23     Total ARP sent       : 5 pkts
24     Total ARP received   : 4 pkts
25     maximum-latency   : 1278 usec
26     average-latency   : 9 usec
27     latency-any-error : ERROR
28
29 On *csp2s22c03*, use the VCC CLI command show run to display the graph runtime statistics.
30 Observe that the average vector per node is 10.69 and 14.47:
31
32 .. figure:: /_images/build-a-fast-network-stack-terminal-3.png
33
34 Summary
35 =======
36
37 This tutorial showed how to download, compile, and install the VPP binary on an
38 IntelĀ® Architecture platform. Examples of /etc/sysctl.d/80-vpp.conf and
39 /etc/vpp/startup.conf/startup.conf configuration files were provided to get the
40 user up and running with VPP. The tutorial also illustrated how to detect and bind
41 the network interfaces to a DPDK-compatible driver. You can use the VPP CLI to assign
42 IP addresses to these interfaces and bring them up. Finally, four examples using iperf3
43 and TRex were included, to show how VPP processes packets in batches.
44