In buffer-internal mode, you can configure PFC with adjustable ECN thresholds to optimize congestion control. You can manage queue behavior by defining the minimum and maximum thresholds and the marking probability.
The task supports three configuration paths:
-
Option 1: Default configuration mode (uses predefined ECN and marking values)
-
Option 2: Custom configuration mode (you define every parameter, including max-threshold and probability-percentage )
-
Option 3: Configuration without the new options, as used before Release 7.5.4.
Before you begin
Follow these steps to configure ECN threshold and maximum marking probability values.
Procedure
|
1. |
Enable PFC on the interface.
Example:
Router(config)#interface FourHundredGigE0/6/0/1
Router(config-if)#priority-flow-control mode on
|
|
2. |
Choose one configuration option that meets your requirements.
- Option 1: Default configuration mode
Configure PFC in buffer-internal mode using predefined buffer values and default ECN thresholds.
Router(config)#hw-module profile priority-flow-control location 0/6/0/1
Router(config-pfc-loc)#buffer-internal traffic-class 3
Router(config-pfc-loc)#buffer-internal traffic-class 4
Router(config-pfc-loc)#commit
This mode applies the system’s default max-threshold and probability-percentage values for ECN.
- Option 2: Custom configuration modeConfigure PFC in buffer-internal mode with custom thresholds for all parameters, including max-threshold and probability-percentage.
Router(config)#hw-module profile priority-flow-control location 0/6/0/1
Router(config-pfc-loc)#buffer-internal traffic-class 3 pause-threshold 1574400 bytes headroom 1651200 bytes ecn 629760 bytes max-threshold 1416960 bytes probability-percentage 50
Router(config-pfc-loc)#buffer-internal traffic-class 4 pause-threshold 1574400 bytes headroom 1651200 bytes ecn 629760 bytes max-threshold 1416960 bytes probability-percentage 50
Router(config-pfc-loc)#commit
You define all thresholds and probabilities. This option provides the highest control over ECN marking behavior.
- Option 3: Configuration mode without ECN enhancements
Configure PFC in buffer-internal mode without max-threshold and probability-percentage parameters. Router(config)#hw-module profile priority-flow-control location 0/6/0/1
Router(config-pfc-loc)#buffer-internal traffic-class 3 pause-threshold 1574400 bytes headroom 1651200 bytes ecn 629760 bytes
Router(config-pfc-loc)#buffer-internal traffic-class 4 pause-threshold 1574400 bytes headroom 1651200 bytes ecn 629760 bytes
Router(config-pfc-loc)#commit
This option uses configurations prior to Release 7.5.4. If you do not configuring max-threshold , the router uses the ECN threshold value as the ECN maximum threshold.
|
|
3. |
Verify the configuration.
Example:
Router#show controllers npu priority-flow-control location all
- Option 1: Default configuration
Location: 0/6/CPU0
PFC: Enabled
PFC Mode: buffer-internal
TC Pause-threshold Headroom ECN ECN-MAX Prob-per
----------------------------------------------------------
3 1574400 bytes 1651200 629760 1416960 5
4 1574400 bytes 1651200 629760 1416960 5
Both traffic classes (3 and 4) use the system defaults for ECN maximum threshold and marking probability (5 percent).
- Option 2: Custom configuration modeConfigure PFC in buffer-internal mode with custom thresholds for all parameters, including max-threshold and probability-percentage.
Location: 0/6/CPU0
PFC: Enabled
PFC Mode: buffer-internal
TC Pause-threshold Headroom ECN ECN-MAX Prob-per
----------------------------------------------------------
3 1574400 bytes 1651200 629760 1416960 50
4 1574400 bytes 1651200 629760 1416960 50
The ECN max threshold (1416960 bytes) and marking probability (50 percent) reflect custom values.
- Option 3: Configuration mode without
max-threshold and probability-percentage parameters. Location: 0/6/CPU0
PFC: Enabled
PFC Mode: buffer-internal
TC Pause-threshold Headroom ECN ECN-MAX Prob-per
---------------------------------------------------------------
3 1574400 bytes 1651200 629760 not-configured not-configured
4 1574400 bytes 1651200 629760 not-configured not-configured
Since max-threshold and probability-percentage are not configured, these fields display not-configured , and the ECN threshold functions as the effective maximum threshold.
|