Академический Документы
Профессиональный Документы
Культура Документы
# Install Quatus
/home/intel/demo setup --quartus
Post install
This step will install all of libraries, tools, so ware source code, … enough to run the demo.
■ Make sure FPGA has been loaded on two MAP cards.
■ A er booting up, from the boot console, use ifconfig to see what IP of the network interface and use it to ssh
to. In this document, account intel/******** will be used.
■ On local machine, use scp to transfer the demo.tar.gz to this server. Example: scp
<path/to/demo.tar.gz> intel@<serverIP>:/home/intel/
■ On local machine, use PuTTY or any of other terminal client to ssh to this server with intel/********
account. Then run below commands:
cd /home/intel
tar -xzf demo.tar.gz
chmod +x prepare demo
This full setup may take 10 minutes or even longer depend on network speed.
Install Oracle Java
As JavaFX is required to run TRex GUI and OpenJDK does not have this, so Oracle Java 8 is required. Use below command to
install Oracle Java tar ball which is included in demo package:
Cards license
Assume post install is complete and server is reboot. In case of new MAP cards, BAY hardware license is required to run
DPDK-based applications. The license.key included in this demo package contains keys that can be used to activate the
cards. To check if current cards already have associated keys, then use the command sudo /home/intel/demo show
card_license . For cards that do not have associated license information, please send email to Arrive Technologies
Vietnam to ask for generating card licenses, then replace the license.key by new file.
The sudo /home/intel/demo show card_license will display activate status (active or not-active ) and this
does not matter as when running VPP or TRex, the demo script will activate the card before running those applications.
DPDK DPDK
BAY PMD BAY PMD
Enc r y pt D e c r y pt Enc r y pt D e c r y pt
Above figure show Hardware IPsec inline model where traffic is encrypted/decrypted inline by hardware.
DPDK DPDK
Above figure show IPsec lookaside model where traffic is enqueued to AESNI Crypto PMD for encrypting/decrypting and
dequeue from that to have encrypted/decrypted traffic.
Connecting to the server
■ If server’s desktop is not being used directly, VNC is a good choice, how to setup VNC on RHEL7 is beyond scope of
this document.
Run VPP
Run with hardware Inline IPsec
# To run GCM-128, 1 core per port
sudo /home/intel/demo run vpp --cores-per-port 1 --gcm-mode gcm_128
Running TRex
TRex server
# To run GCM-128
sudo /home/intel/demo run trex --gcm-mode gcm_128
# To run GCM-256
sudo /home/intel/demo run trex --gcm-mode gcm_256
TRex GUI
Assume that VNC connection has been established, open new terminal to start TRex GUI by below command:
Setup profile
TRex profiles need to be load to start traffic generating with different payload sizes and streams. Once profiles are load, they
will be stored locally in TRex private folder to avoid loading traffic profiles every time TRex GUI runs.
All of traffic profiles are stored at scripts_template/trex_2tunnel_per_port/256_streams_2_tunnel relative
folder. Need to change the preference to point to this folder as profile default loading path as below:
Figure 7- 2 - Go to preference
Select all of profiles to load. A er loading all of 8 profiles of 512B for 8 ports, we have below result.
Just repeat this procedure to load traffic profiles for packet sizes that need to run. Then close the Traffic Profiles
window to start traffic with next section.
Start traffic
Need to acquire all ports to specify their traffic profiles.
Now follow the same way on remaining ports. The below table is ID mapping between port ID and TRex port ID.
IMPORTANT: Profile of one port CANNOT be used for other port. Doing so will make both
TRex GUI and Server malfunction and need to restart both of them.
Having all profiles setup on all ports, start traffic on all of them as below figure.
# Or rebuild
/home/intel/demo build --vpp --rebuild
Build TRex
# Build
/home/intel/demo build --trex
# Or rebuild
/home/intel/demo build --trex --rebuild