Supported Platforms
Related Documentation
Configuring Priority-Based Flow Control for an EX Series Switch (CLI Procedure)
You can configure priority-based flow control (PFC) on EX4500 switches to apply link-level flow control on a specific traffic class so that different types of traffic can efficiently use the same network interface card (NIC). You must configure PFC for all interfaces carrying Fibre Channel over Ethernet (FCoE) traffic. You can also configure PFC on interfaces carrying other traffic types, such as Internet small computer system interface (iSCSI) traffic. Using PFC is optional for traffic types other than FCoE.
![]() | Note:
|
Data Center Bridging Capability Exchange protocol (DCBX) is enabled by default on all 10-Gigabit Ethernet interfaces on EX4500 switches. DCBX enables or disables PFC on the local interface depending on whether the PFC configuration on that interface is the same as the PFC configuration of the connected interface on the data center bridging (DCB) peer.
![]() | Note: When you configure PFC, we recommend that you:
|
EX Series switches support up to six congestion notification profiles for PFC.
To configure PFC:
- Configure a congestion notification profile, specifying
the name of the profile and specifying the three-bit pattern of the
User Priority bits in an incoming frame that will trigger the priority-based
flow control on that traffic class:
[edit class-of-service]
user@switch# set congestion-notification-profile profile-name input ieee-802.1 code-point up-bits pfc - Disable standard Ethernet flow control on the interfaces
that will be used for the traffic class that you have selected for
PFC:
[edit interfaces]
user@switch# set interface-name ether-options no-flow-controlNote: You cannot apply PFC to interfaces that are using standard Ethernet flow control. You must first disable flow control on those interfaces.
- Bind the congestion notification profile to the interfaces
that will be used for the traffic class that you have selected for
PFC:
[edit class-of-service]
user@switch# set interfaces interface-name congestion-notification-profile profile-name - Create a CoS classifier for a traffic class that will
use PFC:
[edit class-of-service]
user@switch# set classifiers ieee-802.1 classifier-name import default - Configure this traffic class (classifier-name) to use a user-defined or default forwarding class
with a low loss priority value and specify the 802.1p code points::
[edit class-of-service]
user@switch# set classifiers ieee-802.1 classifier-name forwarding-class class-name loss-priority low code-points 3 bit-patterns - Bind the classifier-name classifier to all interfaces that require PFC:
[edit class-of-service]
user@switch# set interfaces interface-name unit logical-unit-number classifiers ieee-802.1 classifier-name - Assign the specified forwarding-class to an egress queue:
[edit class-of-service]
user@switch# set forwarding-classes class-name queue-number - Set a scheduler for this queue, allocating at least 20
percent of the buffer to be used for FCoE traffic:
[edit class-of-service]
user@switch# set schedulers scheduler-name buffer-size percent - Set a scheduler to allocate buffer space for forwarding
classes carrying other traffic:
Note: You must explicitly allocate some buffer space for the other forwarding classes. The default allocation of buffer space for forwarding classes is overridden when you manually configure the requisite amount of buffer space for the FCoE traffic.
[edit class-of-service]
user@switch# set scheduler-name buffer-size percent - Configure a scheduler map that associates the specified
scheduler with the specified forwarding class:
[edit class-of-service]
user@switch# set scheduler-maps map-name forwarding-class class-name scheduler scheduler-nameFor example:
[edit class-of-service]
user@switch# set scheduler-maps pfc-map forwarding-class af2 scheduler pfc-sched user@switch# set scheduler-maps pfc-map forwarding-class best-effort scheduler default-sched user@switch# set scheduler-maps pfc-map forwarding-class network-control scheduler default-sched
user@switch# set scheduler-maps pfc-map forwarding-class expedited-forwarding scheduler default-sched - Assign the scheduler map to the egress interface:
[edit class-of-service]
user@switch# set interfaces interface-name scheduler-map pfc-map