...
BlueField's Ethernet SmartNIC solutions combine Arm® processing power with advanced network offloads to accelerate a multitude of security, networking and storage applications.
Based on the BlueField system-on-chip (SoC) programmable network engine, BlueField SmartNICs integrate Mellanox ConnectX®-5 network controller with Arm multicore processors and cryptology options to deliver an innovative and high-performance programmable platform. Through this article, you will be able to quickly set up a simple test lab which will allow you to experiment and explore BlueField SmartNIC capabilities. The setup includes a bare metal server hosting BlueField 25GbE SmartNIC connected back-to-back to another bare metal server with ConnectX-5 NIC.
...
N/A
How to use this document
N/Athis document is used to guide how to install the OVS-DPDK into SmartNIC and integrate with the server
Deployment Architecture
The following diagram shows the physical configuration between the BlueField SmartNIC and the ConnectX-5 NIC.
...
- Use automatic FM update during MLNX_OFED installation ONLY if the current BlueField FW version is 18.24.1000 (GA) or above. In case its older, manually burn the FW after MLNX_OFED installation.
- In case you plan to run DPDK on the host itself, install MLNX_OFED with "--dpdk --upstream-libs" flags
- The "bluefieldBlueField" flag is not required in some of the MLNX_OFED versions and OS releases
Database Prerequisites
N/A
Schema scripts
N/A
Other Installation Requirements
N/A
Jump Host Requirements
N/A
Network Requirements
N/A
Bare Metal Node Requirements
N/A
OVS-DPDK
- We've open-sourced a fork of DPDK based Open vSwitch, which supports the VXLAN decap/encap full offload: https://github.com/bytedance/ovs-dpdk
- The code is fully compatible with upstream Open vSwitch, you can follow the same procedures to build them from the source. See the link: http://docs.openvswitch.org/en/latest/intro/install/
- Or you can use the ansible scripts in the Akaino Gerrit to install both BlueField Card and OVS-DPDK. Currently, the scripts are not available, as the scripts work by relying on many company's internal services. We are refactoring the code that you can use it in your own SmartNIC setups.
Database Prerequisites
N/A
Schema scripts
N/A
Other Installation Requirements
N/A
Jump Host Requirements
N/A
Network Requirements
N/A
Bare Metal Node Requirements
N/A
Execution Requirements (Bare Metal Only)
...
N/A
Installation High-Level Overview
...
|
Note
- Use an automatic FM update during MLNX_OFED installation ONLY if the current BlueField FW version is 18.24.1000 (GA) or above. In case its older, manually burn the FW after MLNX_OFED installation.
- In case you plan to run DPDK on the host itself, install MLNX_OFED with "--dpdk --upstream-libs" flags
- The "bluefieldBlueField" flag is not required in some of the MLNX_OFED versions and OS releases
...
|
- Reboot the server. Once the server is up again, run some configuration sanity tests:
- To verify BlueField FW version:
...
How-to load BlueField SmartNIC OS image from the hosting server:
Place bfb image on the server
...
Note
The ECPF parameters will be available for setting only after completing the previous steps.
|
Reboot the x86 host.
Verify configuration:
Once the procedure is completed, issue the following command on both the x86 host and the Arm:
...
/opt/mellanox/iproute2/sbin/rdma link
|
Reboot the x86 host.
Verify configuration:
Once the procedure is completed, issue the following command on both the x86 host and the Arm:
|
On x86 host: the output should list two network devices.
|
On Arm: the output should list four representors:
|
On x86 host: the output should list two net devices.
|
On Arm: the output should list four representors:
...
1/1: mlx5_0/1: state ACTIVE physical_state LINK_UP netdev rep0-ffff
2/1: mlx5_1/1: state ACTIVE physical_state LINK_UP netdev rep0-0
3/1: mlx5_2/1: state DOWN physical_state DISABLED netdev rep1-ffff
4/1: mlx5_3/1: state DOWN physical_state DISABLED netdev rep1-0
Issue the following commands on the Arm to see the correlation between the PCI device and its representors:
|
Note
The rep0-0 / rep1-0 are the representors facing the x86 host and the rep0-ffff / rep1-ffff are the representors facing the network.
Switching to SEPERATED_HOST Mode from EMBEDDED Mode
On the x86 host:
Enable SEPERATED_HOST mode:
|
Reboot.
Verify:
|
Testing Traffic in EMBEDDED Mode using DPDK
In Embedded mode, traffic from the x86 server hosting the SmartNIC to the remote x86 server hosting the ConnectX-5 is going via the SmartNIC Arm.
DPDK application is used to forward the traffic and bypass Arm OS kernel. Follow the configuration steps below to test it.
On the Arm
Stop OVS:
|
Verify hugetlbfs is mounted:
|
if not, mount it:
|
Set Hugepages:
|
Verify hugepages were allocated (look for HugePages_Total and Free):
|
Identify the SmartNIC PCI device ID:
|
Start testPMD application while probing the representors (pci device is 03:00.0):
|
Set IPs on both x86 host and ConnectX-5 host and test connectivity with ping (it will be forwarded by the Arm DPDK)
On the ConnectX-5 external host start iperf server:
|
On the x86 host, start iperf client:
|
While the test is running, you can check traffic statistics on Arm testPMD:
|
Bare Metal Deployment Guide
Install Bare Metal Jump Host
N/A
Creating a Node Inventory File
N/A
Creating the Settings Files
N/A
Running
N/A
Virtual Deployment Guide
N/A
Standard Deployment Overview
N/A
Snapshot Deployment Overview
N/A
Special Requirements for Virtual Deployments
N/A
Install Jump Host
N/A
Verifying the Setup - VMs
N/A
Upstream Deployment Guide
N/A
Upstream Deployment Key Features
N/A
Special Requirements for Upstream Deployments
N/A
Scenarios and Deploy Settings for Upstream Deployments
N/A
Including Upstream Patches with Deployment
N/A
Running
N/A
Interacting with Containerized Overcloud
N/A
Verifying the Setup as defined the Akraino validation feature project plus any additional testing specific to the blue print
N/A
Developer Guide and Troubleshooting
Utilization of Images
N/A
Post-deployment Configuration
N/A
Debugging Failures
N/A
Reporting a Bug
N/A
Uninstall Guide
not applicable
Troubleshooting
Error Message Guide
Server Unable to Find the SmartNIC
- Ensure that the SmartNIC is placed correctly
- Make sure the SmartNIC slot and the SmartNIC are compatible
- Install the SmartNIC in a different PCI Express slot
- Use the drivers that came with the SmartNIC or download the latest
- Make sure your motherboard has the latest BIOS
- Try to reboot the server
The SmartNIC no Longer Works
- Reseat the SmartNIC in its slot or a different slot, if necessary
- Try using another cable
- Reinstall the drivers for the network driver files may be damaged or deleted
- Reboot the server
SmartNIC Stopped Working After Installing Another
- Try removing and re-installing all SmartNICs
- Check that cables are connected properly
- Make sure your motherboard has the latest BIOS
Link Indicator Light is Off
- Try another port on the switch
- Make sure the cable is securely attached
- Check you are using the proper cables that do not exceed the recommended lengths
- Verify that your switch and SmartNIC port are compatible
Link Light is On but No Communication is Established
- Check that the latest driver is loaded
- Check that both the SmartNIC and its link are set to the same speed and duplex settings
Issue the following commands on the Arm to see the correlation between PCI device and its representors:
...
mst start
mst status -v
PCI devices:
------------
DEVICE_TYPE MST PCI RDMA NET NUMA
BlueField(rev:0) NA 03:00.1 mlx5_3,mlx5_2 net-eth2,net-rep1-ffff -1
BlueField(rev:0) NA 03:00.0 mlx5_1,mlx5_0 net-rep0-ffff,net-eth1 -1
Note
The rep0-0 / rep1-0 are the representors facing the x86 host and the rep0-ffff / rep1-ffff are the representors facing the network.
Switching to SEPERATED_HOST Mode from EMBEDDED Mode
On the x86 host:
Enable SEPERATED_HOST mode:
...
x86_host #mst start
x86_host #mlxconfig -d /dev/mst/mt41682_pciconf0 s INTERNAL_CPU_MODEL=0
Reboot.
Verify:
...
x86_host#mst start
x86_host#mlxconfig -d /dev/mst/mt41682_pciconf0 q | grep -i model
Testing Traffic in EMBEDDED Mode using DPDK
In Embedded mode, traffic from the x86 server hosting the SmartNIC to the remote x86 server hosting the ConnectX-5 is going via the SmartNIC Arm.
DPDK application is used to forward the traffic and bypass Arm OS kernel. Follow the configuration steps below to test it.
On the Arm
Stop OVS:
...
systemctl stop openvswitch
Verify hugetlbfs is mounted:
...
mount | grep -i hugetlbfs
if not, mount it:
...
mount -t hugetlbfs nodev /dev/hugepages
Set Hugepages:
...
echo 4 > /sys/kernel/mm/hugepages/hugepages-524288kB/nr_hugepages
Verify hugepages were allocated (look for HugePages_Total and Free):
...
cat /proc/meminfo | grep -i huge
Identify the SmartNIC PCI device ID:
...
lspci | grep -i mellanox
Start testPMD application while probing the representors (pci device is 03:00.0):
...
cd /usr/bin/
./testpmd -w 03:00.0,representor=[0,65535] – -i
testpmd> start
Set IPs on both x86 host and ConnectX-5 host and test connectivity with ping (it will be forwarded by the Arm DPDK)
On the ConnectX-5 external host start iperf server:
...
iperf -s
On the x86 host, start iperf client:
...
iperf -c 172.16.0.2 -P12
While the test is running, you can check traffic statistics on Arm testPMD:
...
testpmd> show port stats all
Bare Metal Deployment Guide
Install Bare Metal Jump Host
N/A
Creating a Node Inventory File
N/A
Creating the Settings Files
N/A
Running
N/A
Virtual Deployment Guide
N/A
Standard Deployment Overview
N/A
Snapshot Deployment Overview
N/A
Special Requirements for Virtual Deployments
N/A
Install Jump Host
N/A
Verifying the Setup - VMs
N/A
Upstream Deployment Guide
N/A
Upstream Deployment Key Features
N/A
Special Requirements for Upstream Deployments
N/A
Scenarios and Deploy Settings for Upstream Deployments
N/A
Including Upstream Patches with Deployment
N/A
Running
N/A
Interacting with Containerized Overcloud
N/A
Verifying the Setup as defined the Akraino validation feature project plus any additional testing specific to the blue print
N/A
Developer Guide and Troubleshooting
Utilization of Images
N/A
Post-deployment Configuration
N/A
Debugging Failures
N/A
Reporting a Bug
N/A
Uninstall Guide
N/A
Troubleshooting
Error Message Guide
...
Maintenance
Blue Print Package Maintenance
...
N/A
Hardware maintenance
N/A
...
Blueprint Deployment Maintenance
N/A
Frequently Asked Questions
...
Definitions, acronyms and abbreviations
OVS : Open Virtual-Switch
DPDK: Data Plane Development KitN/A