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

相关文章

用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.

SpringSecurity 认证、注销、权限控制功能(注销、记住密码、自定义登入页)

《SpringSecurity认证、注销、权限控制功能(注销、记住密码、自定义登入页)》SpringSecurity是一个强大的Java框架,用于保护应用程序的安全性,它提供了一套全面的安全解决方案... 目录简介认识Spring Security“认证”(Authentication)“授权” (Auth

python之流程控制语句match-case详解

《python之流程控制语句match-case详解》:本文主要介绍python之流程控制语句match-case使用,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐... 目录match-case 语法详解与实战一、基础值匹配(类似 switch-case)二、数据结构解构匹

Java反转字符串的五种方法总结

《Java反转字符串的五种方法总结》:本文主要介绍五种在Java中反转字符串的方法,包括使用StringBuilder的reverse()方法、字符数组、自定义StringBuilder方法、直接... 目录前言方法一:使用StringBuilder的reverse()方法方法二:使用字符数组方法三:使用自

Nginx如何进行流量按比例转发

《Nginx如何进行流量按比例转发》Nginx可以借助split_clients指令或通过weight参数以及Lua脚本实现流量按比例转发,下面小编就为大家介绍一下两种方式具体的操作步骤吧... 目录方式一:借助split_clients指令1. 配置split_clients2. 配置后端服务器组3. 配

Spring Security注解方式权限控制过程

《SpringSecurity注解方式权限控制过程》:本文主要介绍SpringSecurity注解方式权限控制过程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、摘要二、实现步骤2.1 在配置类中添加权限注解的支持2.2 创建Controller类2.3 Us

Python依赖库的几种离线安装方法总结

《Python依赖库的几种离线安装方法总结》:本文主要介绍如何在Python中使用pip工具进行依赖库的安装和管理,包括如何导出和导入依赖包列表、如何下载和安装单个或多个库包及其依赖,以及如何指定... 目录前言一、如何copy一个python环境二、如何下载一个包及其依赖并安装三、如何导出requirem