Skip to content

Commit dcc5e6a

Browse files
committed
Merge branch '517' into stage
2 parents 59dc143 + e0a9122 commit dcc5e6a

2 files changed

Lines changed: 42 additions & 1 deletion

File tree

  • content/cumulus-linux-517

content/cumulus-linux-517/Layer-1-and-Switch-Ports/Quality-of-Service/_index.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,47 @@ To show PFC watchdog data for a specific traffic class, run the `nv show interfa
772772

773773
To clear the PFC watchdog `deadlock-count` on an interface, run the `nv action clear interface <interface-id> qos pfc-watchdog deadlock-count` command.
774774

775+
### Lossless Headroom Based on Small Packet Probability
776+
777+
Cumulus Linux calculates the headroom size for lossless priority groups based on the assumption that all packets are small (64 bytes). On Spectrum-5 and earlier, the switch assumes a 100 percent probability of such packets arriving at line rate. On Spectrum-6, the switch assumes a 50 percent probability of such packets arriving at line rate. As a result, the configured headroom is often larger than necessary, as traffic typically consists of a mix of packet sizes.
778+
779+
To enable more accurate headroom calculations, providing for better buffer allocation and improved shared buffer utilization, you can configure the probability of small packets on ports applied with {{<link url="#priority-flow-control-(pfc)" text="priority flow control">}}.
780+
781+
To configure the probability of small packets on a port:
782+
783+
{{< tabs "TabID783 ">}}
784+
{{< tab "NVUE Commands ">}}
785+
786+
Run the `nv set interface <interface-id> qos small-packet-probability <percent>` command.
787+
788+
The following command sets the small packet probability on swp1 to 60 percent:
789+
790+
```
791+
cumulus@switch:~$ nv set interface swp1 qos small-packet-probability 60
792+
cumulus@switch:~$ nv config apply
793+
```
794+
795+
The following command sets the small packet probability on swp1 through swp10 to 60 percent:
796+
797+
```
798+
cumulus@switch:~$ nv set interface swp1-10 qos small-packet-probability 60
799+
cumulus@switch:~$ nv config apply
800+
```
801+
802+
{{< /tab >}}
803+
{{< tab "Linux Commands ">}}
804+
805+
Edit the `small_pcket_probablity` section of the `/etc/cumulus/datapath/qos/qos_features.conf` file.
806+
807+
```
808+
swp1.qos.small_packet_probability = 60
809+
```
810+
811+
{{< /tab >}}
812+
{{< /tabs >}}
813+
814+
To show the small packet probability configuration, run the `nv show interface <interface-id> qos small-packet-probability` command.
815+
775816
## Congestion Control (ECN)
776817

777818
Explicit Congestion Notification (ECN) is an end-to-end layer 3 congestion control protocol. Defined by RFC 3168, ECN relies on bits in the IPv4 header Traffic Class to signal congestion conditions. ECN requires one or both server endpoints to support ECN to be effective.

content/cumulus-linux-517/Whats-New/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Cumulus Linux 5.17 contains new features and improvements, and provides bug fixe
1515
### New Features and Enhancements
1616

1717
- {{<link url="TACACS/#server-side-per-command-authorization" text="TACACS+ Server-side Per-command Authorization">}}
18-
- Headroom Size based on the average packet size
18+
- {{<link url="Quality-of-Service/#lossless-headroom-based-on-small-packet-probability" text="Lossless headroom size based on small packet probability">}}
1919
- Dynamic ECN (Beta)
2020
- Instant Retransmission System (Beta)
2121
- LLDP BGP Route Redistribution Extension (Beta)

0 commit comments

Comments
 (0)