Configuring PFC Deadlock Prevention
PFC deadlock prevention preemptively avoids PFC deadlocks for typical DCNs of the Clos architecture. A PFC-enabled device identifies a service flow (hook-shaped flow) that may cause a PFC deadlock, and modifies the queue priority of the hook-shaped flow to prevent a PFC deadlock.
Before configuring PFC deadlock prevention, plan a queue for carrying hook-shaped flows. A backup lossless queue is recommended. When detecting a hook-shaped flow, the system switches service traffic from the original lossless queue to the specified backup lossless queue. If the DSCP value is specified in the adjust command, ensure that hook-shaped flow packets are still mapped to the specified queue on the downstream device.
<HUAWEI> system-view [~HUAWEI] dcb pfc uplink group myuplink //Create the PFC uplink port group myuplink. [*HUAWEI-dcb-pfc-uplink-group-myuplink] group-member interface 100ge 1/0/1 to 100ge 1/0/8 //Add interfaces 100GE1/0/1 and 100GE1/0/8 to the PFC uplink port group myuplink. [*HUAWEI-dcb-pfc-uplink-group-myuplink] adjust priority 4 dscp 32 //Change the queue priority to 4 and DSCP value to 32 for hook-shaped flows that match the PFC uplink port group myuplink. [*HUAWEI] commit