Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

BlueField2 SmartNIC solutions combine Arm® processing power with advanced network offloads to accelerate a multitude of security, networking and storage applications.
Based on the BlueField2 system-on-chip (SoC) programmable network engine, BlueField2 SmartNICs integrate Mellanox ConnectX®-6 Dx 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 BlueField2 SmartNIC capabilities. The setup includes a bare metal server hosting BlueField2 25GbE SmartNIC connected back-to-back to another bare metal server with ConnectX-6 Dx NIC.

License

N/A

How to use this document

this document is used to guide how to install the OVS-DPDK into SmartNIC and integrate it with the server

Deployment Architecture

The following diagram shows the physical configuration between the BlueField2 SmartNIC and the ConnectX-6 Dx NIC. 

Image RemovedImage Added

Pre-Installation Requirements

Hardware Requirements

Minimum Hardware Requirements


2x86 servers running CentOS 8.2

 Intel(R) Xeon(R) Gold 6248 CPU @ 2.50GHz/ 40 cores / 2 numa / 320G memory

Intel(R) Xeon(R) Gold 6248 CPU @ 2.50GHz/ 40 cores/ 2 numa / 320G memory

1ConnectX-6 Dx NIC (FW: 22.29.1016) -
1BlueField2 25GbE SmartNIC with Arm processor (FW: 24.29.1016) ARM A72  8 cores / single numa / 16G memory/ 25G bandwidth
 125GB/s SFP28 networking cable -
 1QSA28 Adapter Module -
 1UART-to-USB cableFor SmartNIC USB console access 
 1Mini USB Type B cableFor SmartNIC USB Console Access
 1bfb image to be loaded on the BlueField2 SmartNIC Arm. Image contains:
  • CentOS 7.6 over Arm architecture
  • MLNX_OFED_LINUX-5.2-1.0.4 
  • DPDK libraries version 20.11
  • Pre-configured network settings for easy SmartNIC management
  1. Insert ConnectX-6 Dx NIC into Server A
  2. Insert BlueField2 SmartNIC into Server B
  3. Connect the SmartNIC UART cable from SmartNIC to its hosting Server B USB port #1
  4. Connect Mini USB cable from SmartNIC to its hosting Server B USB port #2
  5. Insert QSA28 Adapter Module into Server B 25GB port
  6. Connect one of the SmartNIC ports to the ConnectX-6 Dx using 25GB cable
  7. Connect both servers to a management LAN

Recommended Hardware Requirements

N/A



Software Prerequisites

MLNX_OFED

Note

  1. Use automatic FM update during MLNX_OFED installation ONLY if the current BlueField2 FW version is 24.29.1016 or above. In case its older, manually burn the FW after MLNX_OFED installation.
  2. In case you plan to run DPDK on the host itself, install MLNX_OFED with "--dpdk --upstream-libs" flags

...

  1. In R3, 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, and In R4, we used the Mellanox version which is in the process of open source
  2. 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/
  3. Or you can use the ansible scripts in the Akaino Gerrit to install both BlueField2 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      

SmartNIC Server Preparations

  • Install useful packages:

yum install -y screen minicom net-tools tcpdump usbutils net-utils sshpass iptables-services fio epel-release iperf wget git unzip perl pciutils lsof tcl libxml2-python tk unbound gtk2 atk cairo gcc-gfortran tcsh nvme-cli

...

           To manage the SmartNIC from the hosting server, use one of the following methods 

Image AddedImage Removed
Access Credentials: root\centos

...

Note: SmartNIC OS is configured to obtain internet access via its hosting server.

Basic SmartNIC Management Operations

How-to soft reset the SmartNIC via host server:

...

minicom -D /dev/ttyUSB0

  

SmartNIC Modes

BlueField2 SmartNIC can operate in two modes:

...

In this mode, the x86 hosting server communicates with the outer world only through the SmartNIC Arm. 


Image RemovedImage Added


Note

In order to identify the SmartNIC current mode, issue the following commands on the x86 hosting server:

...

lspci | grep -i mellanox


Configure OVS-DPDK:

ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true

ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-socket-mem=4096

ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-extra="-w 03:00.0,representor=[0,65535]"

ovs-vsctl add-br dpdkbr0 -- set bridge dpdkbr0 datapath_type=netdev 

-- set bridge dpdkbr0 fail-mode=standalone

ovs-vsctl add-port dpdkbr0 p0 -- set Interface p0 type=dpdk options:dpdk-devargs=0000:03:00.0

ovs-vsctl add-port dpdkbr0 pf0hpf -- set Interface pf0hpf type=dpdk options:dpdk-devargs="0000:03:00.0,representor=[65535]"

systemctl restart openvswitch


Set IPs on both x86 host and ConnectX-6 Dx host and test connectivity with ping (it will be forwarded by the Arm DPDK)

...

On the x86 host, start iperf client:

iperf -c 172.16.0.2 -P12


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

Maintenance

BluePrint Package Maintenance

Software maintenance

N/A 

Hardware maintenance

N/A

Blueprint Deployment Maintenance

N/A

Frequently Asked Questions

N/A

License

N/A

References

N/A

Definitions, acronyms and abbreviations

OVS : Open Virtual-Switch

...