我们能否将非推荐值(如 61)设置为 QoS(服务质量)的 DSCP 值

Can we set non recommended values like 61 as DSCP value for QoS (Quality of services)

我想知道我们是否可以 set/mark 具有 non-recommended DSCP 值的数据包 header。使用 Wireshark,我可以看到数据包被标记为 "Unknown DSCP"。所以我的问题是“是否有必要始终设置 DSCP 的推荐值?

例如。如果我将 DSCP 设置为 62,它会显示未知的 DSCP。而如果我设置 32 或 40 或列表中提到的其他名称,它会给我正确的名称 class。

包裹会被丢弃还是以默认优先级发送?

正如 wireshark 所说,它是“未知”,而不是“格式错误”。使用非推荐的 DSCP 值是完全可以的:通常(如果不总是)你有一个实验值范围的情况,例如,如果你在 Cisco 或 Huawey 工作并开发新设备。

  1. IANA Considerations

The DSCP field within the DS field is capable of conveying 64 distinct codepoints. The codepoint space is divided into three pools for the purpose of codepoint assignment and management: a pool of 32 RECOMMENDED codepoints (Pool 1) to be assigned by Standards Action as defined in [CONS], a pool of 16 codepoints (Pool 2) to be reserved for experimental or Local Use (EXP/LU) as defined in [CONS], and a pool of 16 codepoints (Pool 3) which are initially available for experimental or local use, but which should be preferentially utilized for standardized assignments if Pool 1 is ever exhausted.

(强调我的)

对于具有此类非标准值的流量会发生什么情况,它会被不识别它的设备以默认优先级处理:

  1. Differentiated Services Field Definition

[...]

Packets received with an unrecognized codepoint SHOULD be forwarded as if they were marked for the Default behavior (see Sec. 4), and their codepoints should not be changed. Such packets MUST NOT cause the network node to malfunction.

因此它确实是实验性的:不要指望互操作性,它会被忽略(但会保留)。

来源:rfc2474 https://www.rfc-editor.org/rfc/rfc2474