+ All Categories
Home > Documents > Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for...

Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for...

Date post: 27-May-2020
Category:
Upload: others
View: 7 times
Download: 0 times
Share this document with a friend
16
x Using New DPDK Port Representor by Switch Application like OVS RONY EFRAIM, MELLANOX
Transcript
Page 1: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

x

Using New DPDK Port

Representor by Switch

Application like OVSRONY EFRAIM, MELLANOX

Page 2: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

2

• What we brought ?

• Why we need?

• What it include ?

• First open source example.

• Mellanox solution.

Page 3: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

What we brought ?

Switch representation

Page 4: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

4

Switch representation

• Few years ago we made a change and brought the swithdev to the

kernel.

• All the customers wanted in DPDK

• DPDK 18,11 bring the switch management DPDK

• New API for switch representation introduced in DPDK, for switch

application like OVS.

• https://doc.dpdk.org/guides/prog_guide/switch_representation.html

Page 5: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

”Why we need?

Accelerate Switch And Packet Processing

Page 6: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

6

The need for ASAP2

• Software Virtual Switches create performance burden:

• High CPU utilization

• Limited Throughput

• Higher Latency

• VNF offload

• VNF packet processing is CPU bounded

• Common pipeline processing elements can be done in

Hardware e.g flow classification, ACL drop rules etc.

Page 7: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

7

• Smart NIC can offload the entire Datapath

• Embedded Switch (eSwitch)

• Virtual Switch implemented inside the Adapter

• Flow based switching

• Overlay tunnel (VxLAN or others) Encap/Decap

• SR-IOV enable direct access from VM to the

Adapter

• Control plane and software path run in DPDK

• ASAP2 enables SDN on SR-IOV

• Separation of control and data plane

• Open vSwitch interfaces to the user remain untouched

The hardware offloads are transparent to the user

• User does not need changes in his environment

SR-IOV

SR-IOV NIC

Hypervisor

VM VM

eSwitch

Data plane

Control plane

Smart NIC

Page 8: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

8

Software based vs Hardware based

OVS-vswitchd

OVS DPDK DP

OVS-vswitchd

OVS DPDK DP

ConnectX eSwitch Hardware

Traditional Model: All Software

High Latency, Low Bandwidth, CPU Intensive

ConnectX: Hardware Offload

Low Latency, High Bandwidth, Efficient CPU

First flow packet Fallback FRWD path HW forwarded Packets

Page 9: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

”What it include ?

Port representor

RTE flow API

Page 10: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

10

Port Representors

• Representor ports are a

ethdev modeling of eSwitch

ports

• The VF representor supports

the following operations

• Send packet from the host CPU

to VF (OVS Re-injection)

• Receive of eSwitch “miss”

packets

• Flow configuration (add/remove)

• Flow statistics read for the

purposes of aging and statistics

hypervisor

OVS

vPort 1

representor

Ext port

PFvPort

1

VM

vPort 2

representor

vPort 3

representor

HW eSwitch

vPort2

VM

vPort3

VM

VF1

VF2

VF3

PF

Net device

eSW port

Flows

FDB

Page 11: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

”First open source example.

Open vSwitch

Page 12: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

12

OVS support for HW offload

• Changes are made only in the DPDK datapath code.

• HW offload of flow using rte_flow.

• Packets forwarded by the DPDK datapath are transmitted on the representors and forwarded by the e-switch to the respective VF or to the wire

ovs-vswitchd

ofproto

ofproto-dpifnetdev

dpif

dpif DPDK

NIC

ovsdb-server

OpenFlow controller

eSwitch (datapath)

vPorts

datapath

packets

configuration

EthDev nEhtDev2ethDev1

VF1

PFVF2 HW vendor driver

RTE Flow

HW offload

Generic modified SW

Add/del/stats flow+action (fwd, drop,tunnel ...)

netdev provider

netdev

Page 13: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

”Mellanox solution.

Page 14: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

14

VXLAN

RoCE and DPDK from the VM + Overlay support

• HW switch Acceleration

• HW overlay support (VXLAN etc)

• 0% for switch packets 10’s Mpps to VM

• VM/ containers Packets Processing (VNF)

• Use native Mellanox PMD over VF

• Use RoCE ( RDMA)

• Low latency and high Bandwidth to the VM

VM VM

eSwitch

Encap/Decap

overlay network

header

Page 15: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

15

OVS over DPDK VS. OVS Offload – ConnectX-5

Messag

e Rate

Dedica

ted…

0

10

20

30

40

50

60

70

OVS over DPDKOVS Offload

7.6 MPPs

66 MPPs

4 Cores 0 Cores

Mill

ion

Pa

ck

et

Pe

r Se

co

nd

Message Rate Dedicated Hypervisor Cores

Test ASAP2 Direct OVS DPDK Benefit

1 Flow

VXLAN

66M PPS 7.6M PPS

(VLAN)

8.6X

60K flows

VXLAN

19.8M PPS 1.9M PPS 10.4X

ConnectX-5 provide significant performance

boost Without adding CPU resources

Page 16: Using New DPDK Port Representor by Switch Application like OVS · 2020-03-21 · 12 OVS support for HW offload • Changes are made only in the DPDK datapath code. • HW offload

Q & A


Recommended