18 - Intelligent Lossless Network Configuration Guide
18 - Intelligent Lossless Network Configuration Guide
This configuration guide is applicable to the following switches and software versions: INTELBRAS SDC 5850 switch
series (Release 6628P48 and later)
Preface
This configuration guide describes the PFC configuration procedures.
This preface includes the following topics about the documentation:
• Audience.
• Conventions.
Audience
This documentation is intended for:
• Network planners.
• Field technical support and servicing engineers.
• Network administrators working with the SDC 5850 switch series.
Conventions
The following information describes the conventions used in the documentation.
Command conventions
Convention Description
Boldface Bold text represents commands and keywords that you enter literally as shown.
Italic Italic text represents arguments that you replace with actual values.
[] Square brackets enclose syntax choices (keywords or arguments) that are optional.
Braces enclose a set of required syntax choices separated by vertical bars, from which
{ x | y | ... } you select one.
Square brackets enclose a set of optional syntax choices separated by vertical bars,
[ x | y | ... ]
from which you select one or none.
Asterisk marked braces enclose a set of required syntax choices separated by vertical
{ x | y | ... } * bars, from which you select a minimum of one.
Asterisk marked square brackets enclose optional syntax choices separated by vertical
[ x | y | ... ] *
bars, from which you select one choice, multiple choices, or none.
The argument or keyword and argument combination before the ampersand (&) sign
&<1-n> can be entered 1 to n times.
GUI conventions
Convention Description
Window names, button names, field names, and menu items are in Boldface. For
Boldface
example, the New User window opens; click OK.
Multi-level menus are separated by angle brackets. For example, File > Create >
>
Folder.
Symbols
Convention Description
An alert that calls attention to important information that if not understood or followed
WARNING! can result in personal injury.
An alert that calls attention to important information that if not understood or followed
CAUTION: can result in data loss, data corruption, or damage to hardware or software.
Convention Description
i
Configuring PFC
About PFC
Priority-based flow control (PFC) provides a finer flow cont rol mechanism to implement lossless
packet transmission on Ethernet.
PFC performs flow control for packets based on the 802.1p priorities carried in packets. As shown in
Figure 1, PFC establishes eight virtual channels over an Ethernet link, each corresponding to an
802.1p priority. Any virtual channel can be paused or restarted independent of the other channels.
This mechanism allows multiple types of traffic to coexist on and share an Ethernet link.
Figure 1 How PFC works
Device A Device B
Transmission Queue Receiving Queue
Ethernet Link
0 0
1 1
2 2
3 3
4 4
PAUSE
5 STOP 5
6 6
7 7
When congestion occurs on the local end, the device determines how to process received packets
based on the 802.1p priorities carried in packets as follows:
• If PFC is enabled for the 802.1p priority carried in a packet, the local end accepts the packet
and sends PFC pause frames to notify the remote end to stop sending packets carrying the
802.1p priority. The remote end stops sending packets carrying the 802.1p priority after
receiving the PFC pause frames. This process is repeated until congestion is eliminated.
• If PFC is not enabled for the 802.1p priority carried in a packet, the local end drops the packet.
1
In an IRF network, follow these restrictions and guidelines:
• For IRF and other protocols to operate correctly, as a best practice, do not enable PFC for
802.1p priority 0, 6, or 7.
• To perform PFC on an IRF port, configure PFC on the IRF port and the IRF physical ports that
are bound to the IRF port.
For information about IRF, see IRF configuration Guide.
For PFC to take effect in an overlay net work, execute the qos trust tunnel-dot1p command.
For information about the overlay network, see VXLA N Configuration Guide. For information about
the qos trust tunnel-dot1p command, see ACL and QoS Command Reference.
When the following commands related to PFC, QoS, and data buffer are executed, port traffic will be
interrupted, and the BFD and LLDP protocols will flap:
• buffer apply
• buffer egress cell queue shared (executing this command does not caus e packet
loss, but executing the buffer apply command to apply this configuration will cause packet
loss)
• qos wred apply
• qos wrr weight
• qos wrr group weight
• qos wfq byte-count
• qos wfq queue-id group { 1 | 2 } byte-count
• priority-flow-control no-drop dot1p
• priority-flow-control dot1p headroom
• priority-flow-control dot1p ingress-buffer dynamic
• priority-flow-control dot1p ingress-buffer static
• priority-flow-control dot1p ingress-threshold-offset
• priority-flow-control dot1p reserved-buffer
2
4. Enter Ethernet interface view.
interface interface-type interface-number
5. Enable PFC on the Ethernet interface.
priority-flow-control { auto | enable [ receive | send ] }
By default, PFC is disabled.
6. Enable PFC for 802.1p priorities.
priority-flow-control no-drop dot1p dot1p-list
By default, PFC is disabled for all 802.1p priorities.
7. (Optional.) Set the pause time in PFC pause frames.
priority-flow-control pause-time time-vale
By default, the pause time in PFC pause frames is 65535.
WARNING!
After PFC is enabled for 802.1p priorities, the PFC thresholds use the default values, which are
adequate in typical network environments. As a practice, change the thresholds only when
necessary. Table 1 describes the default PFC thresholds.
3
Table 1 Default PFC thresholds
Offset between
PFC threshold the back
Dynamic back
(right) Headroom pressure frame
pressure frame PFC reserved
buffer stopping
Interface type triggering threshold
threshold threshold and
(below) threshold
triggering
threshold
1-GE/10-GE 100 5 12 17
25-GE 125 5 12 17
40-GE 200 5 12 17
100-GE 491 5 12 17
You must enable PFC for 802.1p priorities before setting the PFC thresholds.
If you cancel PFC threshold settings on an interface, the PFC thresholds are restored to the state
when only the priority-flow-control no-drop dot1p command is executed.
If you execute any of the following commands when packets are being forwarded, traffic will be
interrupted and packets will be lost transiently:
• priority-flow-control headroom
• priority-flow-control dot1p ingress-buffer dynamic
• priority-flow-control dot1p ingress-buffer static
• priority-flow-control dot1p ingress-threshold-offset
• priority-flow-control dot1p reserved-buffer
This feature does not support preprovisioning. For more information about preprovisioning, see
Fundamentals Configuration Guide.
Procedure
1. Enter system view.
system-view
2. Set the maximum number of cell resources in a headroom storage space.
priority-flow-control poolID pool-number headroom headroom-number
By default, the maximum number of cell resources in a headroom storage space is 12288.
3. Enter Ethernet interface view.
interface interface-type interface-number
4. Set the headroom buffer threshold.
priority-flow-control dot1p dot1p headroom headroom-number
See Table 1 for the default value.
5. Set the back pressure frame triggering threshold.
Set the dynamic back pressure frame triggering threshold.
priority-flow-control dot1p dot1p ingress-buffer dynamic ratio
See Table 1 for the default value.
Set the static back pressure frame triggering threshold.
priority-flow-control dot1p dot1p ingress-buffer static threshold
By default, the static back pressure frame triggering threshold is not configured.
6. Set the offset between the back pressure frame stopping threshold and triggering threshold.
4
priority-flow-control dot1p dot1p ingress-threshold-offset
offset-number
See Table 1 for the default value.
7. Set the PFC reserved threshold.
priority-flow-control dot1p dot1p reserved-buffer reserved-number
See Table 1 for the default value.
Procedure
1. Enter system view.
system-view
2. Set the precision for the PFC deadlock detection timer.
priority-flow-control deadlock precision { high | normal | low }
By default, the PFC deadlock detection timer uses normal precision.
3. Set the PFC deadlock detection interval for the specified CoS value.
priority-flow-control deadlock cos cos-value interval interval
[ pause-recover ]
By default, the PFC deadlock detection interval is not set.
5
If you specify the pause-recover keyword, the device aut omatically recovers the PFC
feature and PFC deadlock detection feature based on whether an interface receives PFC
pause frames.
If an interface is in PFC deadlock state and can still receive PFC pause frames when the
detection int erval ex pires, the interface is considered as not rec overed and stays in PFC
deadlock state.
If an interface is in PFC deadlock state and receives no PFC pause frames when the
detection interval expires, the interface is considered as recovered, and the PFC feature
and PFC deadlock detection feature will be automatically recovered on the interface.
4. Configure the delay timer for PFC deadlock detection automatic recovery.
priority-flow-control deadlock auto-recover cos cos-value delay
delay-time
By default, the delay timer for PFC deadlock detection automatic recovery is not configured.
5. Configure the action to take on packets during the delay timer period for PFC deadlock
automatic recovery.
priority-flow-control deadlock auto-recover action { discard |
forwarding }
By default, the device forwards received data packets during the delay timer period for PFC
deadlock detection automatic recovery.
6. Configure the upper threshold for PFC deadlock times during the specified period.
priority-flow-control deadlock threshold cos cos-value period period
count count [ error-down ]
By default, the upper threshold for PFC deadlock times during the specified period is not
configured.
7. Enter Ethernet interface view.
interface interface-type interface-number
8. Configure the action to take on the interface when the PFC deadlock times within the specified
detection period reaches the upper threshold.
priority-flow-control deadlock threshold action { error-down |
turn-off }
By default, the action specified by the priority-flow-control deadlock threshold
command in system view takes effect.
9. Set the recovery mode for PFC deadlock detection on the Ethernet interface.
priority-flow-control deadlock recover-mode { auto | manual }
By default, PFC deadlock detection recovers in automatic mode.
10. Enable PFC deadlock detection on the Ethernet interface.
priority-flow-control deadlock enable
By default, PFC deadlock detection is disabled.
11. (Optional.) Recover PFC deadlock detection on the Ethernet interface.
priority-flow-control deadlock recover
You can use only this command to recover PFC deadlock detection if you set the manual
recovery mode for PFC deadlock detection on the Ethernet interface.
6
are transmitted in a loop, each node on the path stops transmitting packets with the specified DS CP
values. In this case, a PFC deadlock occurs. To prevent PFC deadlocks, you can modify the
DSCP-802.1p mappings for packets. The packets will be forwarded based on the new DSCP value.
This function enables the device to modify the 802.1p priority and DS CP value of packets when
forwarding them.
Restrictions and guidelines
A maximum number of two DSCP mappings can be configured, and the original DS CP values must
be different.
The device supports configuring DSCP mappings for only IP v4 packets, and you can configure up to
four groups of DS CP mappings. DSCP mappings with the same source DS CP, 802.1p priority value,
and target DSCP value are considered as belonging to the same group.
This feature is supported only when the QoS and A CL resource sharing mode is preemption. To
switch to the non-preemption mode after this feature is configured, first execute t he undo
priority-flow-control dscp-mapping command to delete the DS CP mappings for
packets. For more information about the QoS and A CL resource sharing mode, see A CL and QoS
Command Reference.
An interface configured with DSCP mappings cannot be assigned to an aggregation group. The
DSCP mappings configured on aggregation member ports do not take effect.
Procedure
1. Enter system view.
system-view
2. Enter interface view.
interface interface-type interface-number
3. Configure DSCP mappings.
priority-flow-control dscp-mapping { original-dscp
original-dscp-value to priority priority dscp dscp-value }&<1-2>
By default, no DSCP mappings are configured.
7
Restrictions and guidelines
The number of PFC pause frames that an interface sends or receives is counted and the early
warning threshold configuration takes effect only when PFC is enabled.
Procedure
1. Enter system view.
system-view
2. Enter Ethernet interface view.
interface interface-type interface-number
3. Configure the early warning threshold for incoming PFC packets.
priority-flow-control early-warning dot1p dot1p-list inpps pps-value
By default, no early warning threshold is configured for incoming PFC packets.
4. Configure the early warning threshold for outgoing PFC packets.
priority-flow-control early-warning dot1p dot1p-list outpps
pps-value
By default, no early warning threshold is configured for outgoing PFC packets.
Task Command