Configuring PFC on an Ethernet interface

PFC performs flow control based on 802.1p priorities. With PFC enabled, an interface requires its peer to suspend sending packets with certain 802.1p priorities when congestion occurs. By decreasing the transmission rate, PFC helps avoid packet loss.

If you enable PFC and configure the priority-flow-control no-drop dot1p dot1p-list command on both ends, the local port processes a received packet as follows when network congestion occurs:

To configure PFC on an Ethernet interface:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter Ethernet interface view.

interface interface-type interface-number

N/A

3. Enable PFC on the interface through automatic negotiation or forcibly.

priority-flow-control { auto | enable }

By default, PFC is disabled.

4. Enable PFC for 802.1p priorities.

priority-flow-control no-drop dot1p dot1p-list

By default, PFC is disabled for all 802.1p priorities.

When you configure PFC, follow these guidelines:

The relationship between the PFC feature and the generic flow control feature is shown in Table 1.

Table 1: The relationship between the PFC feature and the generic flow control feature

flow-control

priority-flow-control enable

priority-flow-control no-drop dot1p

Remarks

Unconfigurable

Configured

Configured

You cannot enable flow control by using the flow-control command on a port where PFC is enabled and PFC is enabled for the specified 802.1p priority values.

Configured

Configurable

Unconfigurable

  • On a port configured with the flow-control command, you can enable PFC, but you cannot enable PFC for specific 802.1p priorities.

  • Enabling both generic flow control and PFC on a port disables the port from sending common or PFC pause frames to inform the peer of congestion conditions. However, the port can still handle common and PFC pause frames from the peer.