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

相关文章

基于Python开发Windows屏幕控制工具

《基于Python开发Windows屏幕控制工具》在数字化办公时代,屏幕管理已成为提升工作效率和保护眼睛健康的重要环节,本文将分享一个基于Python和PySide6开发的Windows屏幕控制工具,... 目录概述功能亮点界面展示实现步骤详解1. 环境准备2. 亮度控制模块3. 息屏功能实现4. 息屏时间

SQL中JOIN操作的条件使用总结与实践

《SQL中JOIN操作的条件使用总结与实践》在SQL查询中,JOIN操作是多表关联的核心工具,本文将从原理,场景和最佳实践三个方面总结JOIN条件的使用规则,希望可以帮助开发者精准控制查询逻辑... 目录一、ON与WHERE的本质区别二、场景化条件使用规则三、最佳实践建议1.优先使用ON条件2.WHERE用

Python远程控制MySQL的完整指南

《Python远程控制MySQL的完整指南》MySQL是最流行的关系型数据库之一,Python通过多种方式可以与MySQL进行交互,下面小编就为大家详细介绍一下Python操作MySQL的常用方法和最... 目录1. 准备工作2. 连接mysql数据库使用mysql-connector使用PyMySQL3.

Nginx Location映射规则总结归纳与最佳实践

《NginxLocation映射规则总结归纳与最佳实践》Nginx的location指令是配置请求路由的核心机制,其匹配规则直接影响请求的处理流程,下面给大家介绍NginxLocation映射规则... 目录一、Location匹配规则与优先级1. 匹配模式2. 优先级顺序3. 匹配示例二、Proxy_pa

如何搭建并配置HTTPD文件服务及访问权限控制

《如何搭建并配置HTTPD文件服务及访问权限控制》:本文主要介绍如何搭建并配置HTTPD文件服务及访问权限控制的问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、安装HTTPD服务二、HTTPD服务目录结构三、配置修改四、服务启动五、基于用户访问权限控制六、

Android学习总结之Java和kotlin区别超详细分析

《Android学习总结之Java和kotlin区别超详细分析》Java和Kotlin都是用于Android开发的编程语言,它们各自具有独特的特点和优势,:本文主要介绍Android学习总结之Ja... 目录一、空安全机制真题 1:Kotlin 如何解决 Java 的 NullPointerExceptio

MySQL基本查询示例总结

《MySQL基本查询示例总结》:本文主要介绍MySQL基本查询示例总结,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下吧... 目录Create插入替换Retrieve(读取)select(确定列)where条件(确定行)null查询order by语句li

MySQL精准控制Binlog日志数量的三种方案

《MySQL精准控制Binlog日志数量的三种方案》作为数据库管理员,你是否经常为服务器磁盘爆满而抓狂?Binlog就像数据库的“黑匣子”,默默记录着每一次数据变动,但若放任不管,几天内这些日志文件就... 目录 一招修改配置文件:永久生效的控制术1.定位my.cnf文件2.添加核心参数不重启热更新:高手应

Linux区分SSD和机械硬盘的方法总结

《Linux区分SSD和机械硬盘的方法总结》在Linux系统管理中,了解存储设备的类型和特性是至关重要的,不同的存储介质(如固态硬盘SSD和机械硬盘HDD)在性能、可靠性和适用场景上有着显著差异,本文... 目录一、lsblk 命令简介基本用法二、识别磁盘类型的关键参数:ROTA查询 ROTA 参数ROTA

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

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