iRDMA流量控制总结 - 3

2023-12-04 05:28
文章标签 总结 控制 流量 irdma

本文主要是介绍iRDMA流量控制总结 - 3,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

5.0 Priority Flow Control - Planning and Guidelines优先流量控制 - 规划与指导

This section covers planning, considerations, and general configuration guidelines for enabling PFC on a network. 本节介绍在网络上启用 PFC 的规划、注意事项和一般配置指南。

5.1  Steps步骤

The steps for enabling PFC on your network include the following: 在网络上启用 PFC 的步骤如下:

  1. Set up your network hosts and switches. (Network Host and Switch Setup) 设置网络主机和交换机。(网络主机和交换机设置)
  2. Decide whether to use willing or non-willing DCB mode on the 800 Series adapter.(Willing vs. Non-willing DCB Mode) 决定在 800 系列适配器上使用主动或被动 DCB 模式。
  3. Choose firmware or software DCB. (Firmware vs. Software DCB) 选择Firmware还是软件 DCB。(Firmware DCB 与软件 DCB)
  4. Decide how to separate and prioritize traffic streams. (Separating and Prioritizing Traffic Streams) 决定如何分离和优先处理数据流。(数据流的分离和优先级排序)
  5. Configure ETS: Map priorities to traffic classes and allocate bandwidth.

(Configuring ETS: Map Priorities to TCs/Allocate Bandwidth) 配置 ETS: 将优先级映射到数据流类别并分配带宽(配置 ETS:将优先级映射到数据流类别/分配带宽)

  1. Configure PFC: Set priorities for drop or no-drop. (Configuring PFC) 配置 PFC:为丢弃或不丢弃设置优先级。(配置 PFC)
  2. Run your application with the right priority. (Run Applications with the Right Priority) 以正确的优先级运行应用程序 (以正确的优先级运行应用程序)

5.1.1  Network Host and Switch Setup网络主机和交换机设置

NOTE 提示

 

PFC can be used with or without a switch in the network. PFC 可在网络中有交换机或没有交换机的情况下使用。

  • If using a switch, you must configure PFC on both the adapter ports and the switch ports. Consult the appropriate switch manual for command syntax. 如果使用交换机,则必须在适配器端口和交换机端口上配置 PFC。有关命令语法,请查阅相应的交换机手册。
  • If using adapters back-to-back, configure PFC on both hosts. 如果背靠背直接连接适配器,请在两台主机上配置 PFC。

Host prerequisites for RDMA are outside the scope of this guide, but in general, you need at a minimum: RDMA 的主机先决条件不在本指南的讨论范围之内,但一般来说,您至少需要具备以下条件:

  • Two Linux hosts with 800 Series adapters. 两台配备 800 系列适配器的 Linux 主机。
  • Supporting 800 Series firmware and software (NVM with RDMA support, ice (Intel® Ethernet) driver, and irdma driver). 支持 800 系列Firmware和软件(支持 RDMA 的 NVM、ice(英特尔® 以太网)驱动程序和 irdma 驱动程序)。

If using software in DCB mode, you also need OpenLLDP, which includes the lldpad daemon and lldptool configuration utility. 如果在 DCB 模式下使用软件,还需要 OpenLLDP,其中包括 lldpad 守护进程和 lldptool 配置实用程序。

  • In RHEL, install it with yum (zypper or apt-get might work as well in other operating systems.): 在 RHEL 中,使用 yum 安装(在其他操作系统中,使用 zypper 或 apt-get 也可以):

# yum install lldpad

  • Alternatively, install from source from: 或者,从源代码中安装:

GitHub - intel/openlldp

5.1.2  Willing vs. Non-willing DCB Mode主动与被动的 DCB 模式

DCB standards like PFC and ETS must be set to either willing or non-willing mode, which determines whether the port is willing to accept configuration settings from its link partner. PFC 和 ETS 等 DCB 标准必须设置为主动或被动模式,这决定了端口是否愿意接受其链路伙伴的配置设置。

Mode

When to Use

Willing

If you want to configure DCB on their switch and let adapters accept settings from the switch ports.

This is the preferred, most common setup.

Non-willing

For back-to-back configurations.

For troubleshooting, testing, and manually tweaking the configuration.

If preferred, configure DCB on all hosts and set the neighboring switch ports to willing (somewhat uncommon and might not be supported by all switches).

5.1.3  Firmware vs. Software DCB Firmware与软件 DCB

The 800 Series has two options for using DCB: firmware and software. 800 系列有两种使用 DCB 的选项:Firmware和软件。

  • Software DCB runs on the Linux host using OpenLLDP. It supports both willing and non-willing modes. 软件 DCB 使用 OpenLLDP 在 Linux 主机上运行。它支持主动和被动模式。
  • Firmware DCB runs on the 800 Series adapter firmware. It only supports willing mode. Firmware DCB 在 800 系列适配器固件上运行。它仅支持主动模式。

If you plan on using willing mode, software DCB is recommended but not required. 如果计划使用主动模式,建议使用软件 DCB,但不是必需的。

NOTE 提示

 

Only one type of DCB might be active at a time. Enabling firmware DCB overrides the software DCB setting. 一次只能激活一种 DCB。启用Firmware DCB 会覆盖软件 DCB 设置。

DCB Type

When to Use

Willing Mode Setup

Non-willing Mode Setup

Firmware

Willing

Mode

Not supported in firmware DCB.

# ethtool --set-priv-flags <iface> fw-lldpagent on

Software

Willing

Mode

Can be set up in IEEE or CEE modes.

Refer to Software DCB Willing Mode for details.

Software

Non-willing

Mode

# ethtool --set-priv-flags <iface> fw-lldpagent off

# lldptool -Ti <iface> -V PFC willing=yes

# lldptool -Ti <iface> -V ETS willing=yes

# ethtool --set-priv-flags <iface> fw-lldpagent off

# lldptool -Ti <iface> -V PFC willing=no

# lldptool -Ti <iface> -V ETS willing=no

5.1.4  Software DCB Willing Mode 软件 DCB 主动模式

Software DCB can be configured in either IEEE or CEE mode. 软件 DCB 可配置为 IEEE 或 CEE 模式。

For IEEE mode对于 IEEE 模式
  1. Disable CEE transmission. 禁用 CEE 传输。

#lldptool -Ti $interface -V CEE-DCBX enableTx=no

  1. Reset the DCBX mode to be auto (start in IEEE DCBX mode) after the next lldpad restart. 下次重启 lldpad 后,将 DCBX 模式重置为自动(以 IEEE DCBX 模式启动)。

#lldptool -Ti $interface -V IEEE-DCBX mode=reset

  1. Configure willing configuration for interface. 为接口配置主动模式。

#lldptool -Ti $interface -V ETS-CFG enableTx=yes willing=yes

  1. Configure willing recommendation for interface. 为接口配置主动模式建议。

#lldptool -Ti $interface -V ETS-REC enableTx=yes

Setting willing=yes for ETS-REC is not logical as it is by definition a recommendation for a willing link partner. 为 ETS-REC 设置 willing=yes 不符合逻辑,因为根据定义,它是建议把网络连接对端设置为主动模式。

  1. Configure willing PFC for interface. 为接口配置主动模式 PFC。

#lldptool -Ti $interface -V PFC enable=yes willing=yes enableTx=yes

  1. Terminate the first instance of lldpad that was started (e.g., from initrd). Once lldpad -k has been invoked and lldpad has been restarted, subsequent invocations of lldpad -k will not terminate lldpad. 终止第一个启动的 lldpad 实例(例如,从 initrd 启动)。一旦调用了 lldpad -k 并重新启动了 lldpad,以后再调用 lldpad -k 将不会终止 lldpad。

#lldpad -k

  1. Remove lldpad state records from shared memory. 从共享内存中删除 lldpad 状态记录。

#lldpad -s

  1. Restart service lldpad. 重新启动 lldpad 服务。

#systemctl restart lldpad.service

  1. Ensure CEE mode enableTx is set to no. 确保 CEE 模式 enableTx 设置为否。

#lldptool -ti $interface -V CEE-DCBX -c

这篇关于iRDMA流量控制总结 - 3的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/452273

相关文章

Qt实现网络数据解析的方法总结

《Qt实现网络数据解析的方法总结》在Qt中解析网络数据通常涉及接收原始字节流,并将其转换为有意义的应用层数据,这篇文章为大家介绍了详细步骤和示例,感兴趣的小伙伴可以了解下... 目录1. 网络数据接收2. 缓冲区管理(处理粘包/拆包)3. 常见数据格式解析3.1 jsON解析3.2 XML解析3.3 自定义

SpringBoot请求参数接收控制指南分享

《SpringBoot请求参数接收控制指南分享》:本文主要介绍SpringBoot请求参数接收控制指南,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录Spring Boot 请求参数接收控制指南1. 概述2. 有注解时参数接收方式对比3. 无注解时接收参数默认位置

Python实现图片分割的多种方法总结

《Python实现图片分割的多种方法总结》图片分割是图像处理中的一个重要任务,它的目标是将图像划分为多个区域或者对象,本文为大家整理了一些常用的分割方法,大家可以根据需求自行选择... 目录1. 基于传统图像处理的分割方法(1) 使用固定阈值分割图片(2) 自适应阈值分割(3) 使用图像边缘检测分割(4)

Spring Security+JWT如何实现前后端分离权限控制

《SpringSecurity+JWT如何实现前后端分离权限控制》本篇将手把手教你用SpringSecurity+JWT搭建一套完整的登录认证与权限控制体系,具有很好的参考价值,希望对大家... 目录Spring Security+JWT实现前后端分离权限控制实战一、为什么要用 JWT?二、JWT 基本结构

Android实现两台手机屏幕共享和远程控制功能

《Android实现两台手机屏幕共享和远程控制功能》在远程协助、在线教学、技术支持等多种场景下,实时获得另一部移动设备的屏幕画面,并对其进行操作,具有极高的应用价值,本项目旨在实现两台Android手... 目录一、项目概述二、相关知识2.1 MediaProjection API2.2 Socket 网络

Windows Docker端口占用错误及解决方案总结

《WindowsDocker端口占用错误及解决方案总结》在Windows环境下使用Docker容器时,端口占用错误是开发和运维中常见且棘手的问题,本文将深入剖析该问题的成因,介绍如何通过查看端口分配... 目录引言Windows docker 端口占用错误及解决方案汇总端口冲突形成原因解析诊断当前端口情况解

用js控制视频播放进度基本示例代码

《用js控制视频播放进度基本示例代码》写前端的时候,很多的时候是需要支持要网页视频播放的功能,下面这篇文章主要给大家介绍了关于用js控制视频播放进度的相关资料,文中通过代码介绍的非常详细,需要的朋友可... 目录前言html部分:JavaScript部分:注意:总结前言在javascript中控制视频播放

java常见报错及解决方案总结

《java常见报错及解决方案总结》:本文主要介绍Java编程中常见错误类型及示例,包括语法错误、空指针异常、数组下标越界、类型转换异常、文件未找到异常、除以零异常、非法线程操作异常、方法未定义异常... 目录1. 语法错误 (Syntax Errors)示例 1:解决方案:2. 空指针异常 (NullPoi

Python异步编程中asyncio.gather的并发控制详解

《Python异步编程中asyncio.gather的并发控制详解》在Python异步编程生态中,asyncio.gather是并发任务调度的核心工具,本文将通过实际场景和代码示例,展示如何结合信号量... 目录一、asyncio.gather的原始行为解析二、信号量控制法:给并发装上"节流阀"三、进阶控制

使用DrissionPage控制360浏览器的完美解决方案

《使用DrissionPage控制360浏览器的完美解决方案》在网页自动化领域,经常遇到需要保持登录状态、保留Cookie等场景,今天要分享的方案可以完美解决这个问题:使用DrissionPage直接... 目录完整代码引言为什么要使用已有用户数据?核心代码实现1. 导入必要模块2. 关键配置(重点!)3.