-
Notifications
You must be signed in to change notification settings - Fork 707
VPP QuickTrexSetup
Dave Wallace edited this page Apr 21, 2026
·
1 revision
-
Ensure that the host can build vpp
-
Clone trex source from gerrit.fd.io:
git clone https://gerrit.fd.io/r/trex
- Build trex; artifacts in .../scripts
cd linux_dpdk
./b configure (only once)
./b build
- Make sure that the igb_uio module is installed
# cd .../scripts
# insmod ko/src/igb_uio.ko
-
Use scripts/dpdk_nic_bind.py to bind interfaces to the igb_uio driver
-
Create /etc/trex_cfg.yaml, edit the interface list / number of queues to match interfaces bound in the previous step
- version : 2 # version 2 of the configuration file
interfaces : ["01:00.0","01:00.1"]
port_limit : 2 # number of ports to use valid is 2,4,6,8,10,12
- Run the trex server
./t-rex-64 -i
- Run the trex console
./trex-console
- Set up ip4 source and dest addresses e.g. on two ports
trex>portattr -p 0 --ipv4 16.0.0.1
Applying attributes on port(s) [0]: [SUCCESS]
trex>portattr -p 1 --ipv4 48.0.0.1
Applying attributes on port(s) [1]: [SUCCESS]
trex>portattr -p 1 --dest 48.0.0.2
Applying attributes on port(s) [1]: [SUCCESS]
Resolving destination on port(s) [1]: [SUCCESS]
Port 1 - Recieved ARP reply from: 48.0.0.2, hw: 90:e2:ba:5a:9e:1d
trex>portattr -p 0 --dest 16.0.0.2
Applying attributes on port(s) [0]: [SUCCESS]
Resolving destination on port(s) [0]: [SUCCESS]
Port 0 - Recieved ARP reply from: 16.0.0.2, hw: 90:e2:ba:5a:9e:1c
start -f stl/udp_1pkt_simple.py -m 4mpps
To watch port stats, use the "tui" command. Tui needs a large xterm. It will complain if the xterm isn't large enough.
trex> tui
Global Statistics
connection : localhost, Port 4501 total_tx_L2 : 4.62 Gb/sec
version : v2.11 total_tx_L1 : 6.06 Gb/sec
cpu_util. : 28.5% @ 1 cores (1 per port) total_rx : 4.62 Gb/sec
rx_cpu_util. : 0.0% total_pps : 9.02 Mpkt/sec
async_util. : 0.1% / 1.91 KB/sec drop_rate : 0.00 b/sec
queue_full : 0 pkts
Port Statistics
port | 0 | 1 | total
----------------------------------------------------------------------
owner | root | root |
link | UP | UP |
state | TRANSMITTING | TRANSMITTING |
speed | 10 Gb/s | 10 Gb/s |
CPU util. | 28.5% | 28.5% |
-- | | |
Tx bps L2 | 2.31 Gbps | 2.31 Gbps | 4.62 Gbps
Tx bps L1 | 3.03 Gbps | 3.03 Gbps | 6.06 Gbps
Tx pps | 4.51 Mpps | 4.51 Mpps | 9.02 Mpps
Line Util. | 30.32 % | 30.32 % |
--- | | |
Rx bps | 0.00 bps | 4.62 Gbps | 4.62 Gbps
Rx pps | 0.00 pps | 9.02 Mpps | 9.02 Mpps
---- | | |
opackets | 158312807 | 158312781 | 316625588
ipackets | 1 | 316531433 | 316531434
obytes | 10132019648 | 10132017984 | 20264037632
ibytes | 64 | 20258012096 | 20258012160
tx-bytes | 10.13 GB | 10.13 GB | 20.26 GB
rx-bytes | 64 B | 20.26 GB | 20.26 GB
tx-pkts | 158.31 Mpkts | 158.31 Mpkts | 316.63 Mpkts
rx-pkts | 1 pkts | 316.53 Mpkts | 316.53 Mpkts
----- | | |
oerrors | 0 | 0 | 0
ierrors | 0 | 0 | 0
- VPP 2022 Make Test Use Case Poll
- VPP-AArch64
- VPP-ABF
- VPP Alternative Builds
- VPP API Concepts
- VPP API Versioning
- VPP-ApiChangeProcess
- VPP-ArtifactVersioning
- VPP-BIER
- VPP-Bihash
- VPP-BugReports
- VPP Build System Deep Dive
- VPP Build, Install, And Test Images
- VPP-BuildArtifactRetentionPolicy
- VPP-c2cpel
- VPP Code Walkthrough VoD
- VPP Code Walkthrough VoD Topic Index
- VPP Code Walkthrough VoDs
- VPP-CodeStyleConventions
- VPP-CodingTips
- VPP Command Line Arguments
- VPP Command Line Interface CLI Guide
- VPP-CommitMessages
- VPP-Committers-SMEs
- VPP-CommitterTasks-ApiFreeze
- VPP CommitterTasks Compare API Changes
- VPP-CommitterTasks-CutPointRelease
- VPP-CommitterTasks-CutRelease
- VPP-CommitterTasks-FinalReleaseCandidate
- VPP-CommitterTasks-PullThrottleBranch
- VPP-CommitterTasks-ReleasePlan
- VPP Configuration Tool
- VPP Configure An LW46 MAP E Terminator
- VPP Configure VPP As A Router Between Namespaces
- VPP Configure VPP TAP Interfaces For Container Routing
- VPP-CoreFileMismatch
- VPP-cpel
- VPP-cpeldump
- VPP-CurrentData
- VPP-DHCPKit
- VPP-DHCPv6
- VPP-DistributedOwnership
- VPP-Documentation
- VPP DPOs And Feature Arcs
- VPP EC2 Instance With SRIOV
- VPP-elog
- VPP-FAQ
- VPP Feature Arcs
- VPP-Features
- VPP-Features-IPv6
- VPP-FIB
- VPP-g2
- VPP Getting VPP 16.06
- VPP Getting VPP Release Binaries
- VPP-HA
- VPP-HostStack
- VPP-HostStack-BuiltinEchoClientServer
- VPP-HostStack-EchoClientServer
- VPP-HostStack-ExternalEchoClientServer
- VPP HostStack Hs Test
- VPP-HostStack-LDP-iperf
- VPP-HostStack-LDP-nginx
- VPP-HostStack-LDP-sshd
- VPP-HostStack-nginx
- VPP-HostStack-SessionLayerArchitecture
- VPP-HostStack-TestHttpServer
- VPP-HostStack-TestProxy
- VPP-HostStack-TLS
- VPP-HostStack-VCL
- VPP-HostStack-VclEchoClientServer
- VPP-Hotplug
- VPP How To Add A Tunnel Encapsulation
- VPP How To Build The Sample Plugin
- VPP How To Connect A PCI Interface To VPP
- VPP How To Create A VPP Binary Control Plane API
- VPP How To Deploy VPP In EC2 Instance And Use It To Connect Two Different VPCs
- VPP How To Optimize Performance %28System Tuning%29
- VPP How To Use The API Trace Tools
- VPP How To Use The C API
- VPP How To Use The Packet Generator And Packet Tracer
- VPP-Howtos
- VPP-index
- VPP Installing VPP Binaries From Packages
- VPP Interconnecting vRouters With VPP
- VPP Introduction To IP Adjacency
- VPP Introduction To N Tuple Classifiers
- VPP IP Adjacency Introduction
- VPP-IPFIX
- VPP-IPSec
- VPP IPSec And IKEv2
- VPP IPv6 SR VIRL Topology File
- VPP Java API
- VPP Java API Plugin Support
- VPP Jira Workflow
- VPP-Macswapplugin
- VPP-MakeTestFramework
- VPP-Meeting
- VPP-MFIB
- VPP Missing Prefetches
- VPP Modifying The Packet Processing Directed Graph
- VPP MPLS FIB
- VPP-NAT
- VPP Nataas Test
- VPP-OVN
- VPP Per Feature Notes
- VPP Performance Analysis Tools
- VPP-perftop
- VPP Progressive VPP Tutorial
- VPP Project Meeting Minutes
- VPP Pulling, Building, Running, Hacking And Pushing VPP Code
- VPP Pure L3 Between Namespaces With 32s
- VPP Pure L3 Container Networking
- VPP Pushing And Testing A Tag
- VPP Python API
- VPP-PythonVersionPolicy
- VPP-QuickTrexSetup
- VPP Random Hints And Kinks For KVM Usage
- VPP Release Plans Release Plan 16.09
- VPP Release Plans Release Plan 17.01
- VPP Release Plans Release Plan 17.04
- VPP Release Plans Release Plan 17.07
- VPP Release Plans Release Plan 17.10
- VPP Release Plans Release Plan 18.01
- VPP Release Plans Release Plan 18.04
- VPP Release Plans Release Plan 18.07
- VPP Release Plans Release Plan 18.10
- VPP Release Plans Release Plan 19.01
- VPP Release Plans Release Plan 19.04
- VPP Release Plans Release Plan 19.08
- VPP Release Plans Release Plan 20.01
- VPP Release Plans Release Plan 20.05
- VPP Release Plans Release Plan 20.09
- VPP Release Plans Release Plan 21.01
- VPP Release Plans Release Plan 21.06
- VPP Release Plans Release Plan 21.10
- VPP Release Plans Release Plan 22.02
- VPP Release Plans Release Plan 22.06
- VPP Release Plans Release Plan 22.10
- VPP Release Plans Release Plan 23.02
- VPP Release Plans Release Plan 23.06
- VPP Release Plans Release Plan 23.10
- VPP Release Plans Release Plan 24.02
- VPP Release Plans Release Plan 24.06
- VPP Release Plans Release Plan 24.10
- VPP Release Plans Release Plan 25.02
- VPP Release Plans Release Plan 25.06
- VPP Release Plans Release Plan 25.10
- VPP Release Plans Release Plan 26.02
- VPP Release Plans Release Plan 26.06
- VPP-RM
- VPP-SecurityGroups
- VPP Segment Routing For IPv6
- VPP Segment Routing For MPLS
- VPP Setting Up Your Dev Environment
- VPP-SNAT
- VPP Software Architecture
- VPP STN Testing
- VPP The VPP API
- VPP Training Events
- VPP-Troubleshooting
- VPP-Troubleshooting-BuildIssues
- VPP-Troubleshooting-Vagrant
- VPP Tutorial DPDK And MacSwap
- VPP Tutorial Routing And Switching
- VPP-Tutorials
- VPP Use VPP To Chain VMs Using Vhost User Interface
- VPP Use VPP To Connect VMs Using Vhost User Interface
- VPP Using mTCP User Mode TCP Stack With VPP
- VPP Using VPP As A VXLAN Tunnel Terminator
- VPP Using VPP In A Multi Thread Model
- VPP-VOM
- VPP VPP BFD Nexus
- VPP VPP Home Gateway
- VPP VPP WIKI DEPRECATED CONTENT
- VPP-VPPCommunicationsLibrary
- VPP-VPPConfig
- VPP What Is ODP4VPP
- VPP What Is VPP
- VPP Working Environments
- VPP Working With The 16.06 Throttle Branch