Bytedance and Mellanox
Introduction
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.
License
How to use this document
Deployment Architecture
The following diagram shows the physical configuration between the BlueField SmartNIC and the ConnectX-5 NIC.
Pre-Installation Requirements
Minimum Hardware Requirements
Qty. | Item | Comments |
---|---|---|
2 | x86 servers running CentOS 7.5 | - |
1 | ConnectX-5 NIC (FW: 16.24.0328 and up) | - |
1 | BlueField 25GbE SmartNIC with Arm processor (FW: 18.24.1000 and up) | - |
1 | 25GB/s SFP28 networking cable | - |
1 | QSA28 Adapter (100GB-to-25GB Adapter) | - |
1 | UART-to-USB cable | For SmartNIC USB console access |
1 | Mini USB Type B cable | For SmartNIC USB Console Access |
1 | bfb image to be loaded on the BlueField SmartNIC Arm. | Image contains:
|
Recommended Hardware Requirements
Hardware Requirements
Software Prerequisites
Note
Installation High-Level Overview
Install useful packages:
|
Install MLNX_OFED with the mentioned flags below.
|
Note
Enable SR-IOV on FW (Optional):
|
Uncomment the following line in /etc/modprobe.d/rshim.conf to set the default RShim access method to the SmartNIC:
|
Note
Create a file named ifcfg-tmfifo_net0 under /etc/sysconfig/network-scripts/ directory, with the following content:
|
ifcfg-tmfifo_net0 is the network interface used for IP communication between the x86 host and the SmartNIC with rshim_net driver.
Enable ip forwarding and set a NAT rule to allow the SmartNIC OS to communicate with the outer world via the host management interface:
|
Disable Firewall and Network Manager services
|
To verify BlueField FW version:
|
To verify RShim modules are loaded:
|
To identify the backend active RShim driver:
|
To verify the NAT rule for SmartNIC communication with the outer world:
|
Download the BlueField Quick Start bfb image: https://mellanox.box.com/s/q44f501xq1e29yb1bjpsb9vzgqs89a76
Place the bfb image on the host and load it on the BlueField SmartNIC using the following command:
|
Use one of the console access methods described in the "SmartNIC Management Methods" section below to follow the image installation process.
When bfb image installation process is completed, connect to the SmartNIC with the console or SSH, as described below, and test connectivity from the SmarNIC OS to the outer world.
To manage the SmartNIC from the hosting server, use one of the following methods.
Access Credentials: root\centos
Console over USB-Serial / Serial Port properties: Rate 115200, HW Flow Control OFF.
|
Console over USB (rshim_usb) / Serial Port properties: Rate 115200, HW Flow Control OFF
|
SSH (rshim_net)
|
Note
SmartNIC OS is configured to obtain internet access via its hosting server.
How-to soft reset the SmartNIC via host server:
Issue the following command on the server:
|
Follow the boot process using console access:
|
Note
This is not a power cycle of the SmartNIC.
How-to load BlueField SmartNIC OS image from hosting server:
Issue the following command on the server:
|
Follow the installation and boot process using the console access:
|
BlueField SmartNIC can operate in two modes:
In this mode, both the x86 hosting server and the SmartNIC Arm OS act as separated entities; Both can use and communicate with each other or the network via the ConnectX-5 module of the SmartNIC.
In this mode, the x86 hosting server communicates with the outer world only through the SmartNIC Arm.
Note
In order to identify the SmartNIC current mode, issue the following commands on the x86 hosting server:
|
On the x86 host:
Enable EMBEDDED mode:
|
Verify:
|
On the Arm:
Issue the following commands to enable ECPF parameters (applied per port):
Note
The ECPF parameters will be available for setting only after completing the previous steps.
|
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 net devices.
|
On Arm: the output should list four representors:
|
Issue the following commands on the Arm to see the correlation between 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.
On the x86 host:
Enable SEPERATED_HOST mode:
|
Verify:
|
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.
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):
|
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:
|
Frequently Asked Questions
License
References
Definitions, acronyms and abbreviations