Chapter 7 - 5. Congestion Management in Ethernet Storage Networks以太网存储网络的拥塞管理

发布时间:2023-12-20 17:52:20

Layer 2 Priority Flow Control

As Figure 7-4 shows, at layer 2 of the OSI model, traffic is assigned to different VLANs by adding an IEEE 802.1Q VLAN header. This VLAN header contains a 3-bit Priority Code Point (PCP) field, which allows 8 unique traffic classes. PCP is commonly known as the Class of Service (CoS). 如图 7-4 所示,在 OSI 模型的第 2 层,通过添加 IEEE 802.1Q VLAN 标头将流量分配到不同的 VLAN。该 VLAN 标头包含一个 3 位优先级码点(PCP)字段,允许 8 个独特的流量类别。PCP 通常称为服务等级(CoS)。

Figure 7-4 Relationship between Ethernet VLAN CoS of a data frame and Class Enable Vector in Pause frame

The PFC Pause frame contains the following values: PFC 暂停帧包含以下值:

 Class Enable Vector: This is an eight-bit field indicating which class(es) the Pause frame applies to. 这是一个 8 位字段,表示暂停帧适用于哪个(些)类别。

 Quanta values: These are eight 16-bit values corresponding to each possible traffic class. When the bit is turned on in the Class Enable Vector, then the respective quanta is valid in that Pause frame. 8 16 位值与每个可能的流量类别相对应。当 "类别启用向量 "中的位被打开时,相应的quanta在该暂停帧中有效。

The mapping between the Ethernet VLAN CoS field and the Class Enable Vector of the PFC Pause frame enables Layer 2 PFC. 以太网 VLAN CoS 字段与 PFC 暂停帧的类启用向量之间的映射可启用第 2 PFC

Note the following points: 注意以下几点

1. A VLAN is uniquely identified by the 12-bit VLAN ID field in the IEEE 802.1Q header. This allows up to 4096 VLANs. But only 8 traffic classes (CoS) are possible. Therefore, it is technically possible to assign the same CoS to multiple VLANs but this approach increases complexity and should be avoided in storage networks. In other words, assign all FCoE or RoCE traffic to a VLAN (let’s say VLAN 100), mark all traffic in this VLAN as a unique CoS (let’s say 3), keep other traffic in the rest of the VLANs, and do not assign CoS 3 to any other VLAN. Also, avoid using multiple VLANs for FCoE or RoCE traffic to keep it simple. VLAN IEEE 802.1Q 报头中的 12 VLAN ID 字段唯一标识。这就允许多达 4096 VLAN。但只能有 8 个流量类别(CoS)。因此,在技术上可以为多个 VLAN 分配相同的 CoS,但这种方法会增加复杂性,在存储网络中应避免使用。换句话说,将所有 FCoE RoCE 流量分配到一个 VLAN(比方说 VLAN 100),将该 VLAN 中的所有流量标记为一个唯一的 CoS(比方说 3),将其他流量保留在其他 VLAN 中,不要将 CoS 3 分配给任何其他 VLAN。此外,避免为 FCoE RoCE 流量使用多个 VLAN,以保持简单。

文章来源:https://blog.csdn.net/mounter625/article/details/135108558
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。