Enterprise Advanced SONiC: Use Case: AI Fabric 6.4 Recommended RoCEv2 Best Practices Refer to the following best practices depending on your Supermicro Enterprise Advanced SONiC setup. Adjust WRED Policy to Recommended Best Practices for ECN Depending on the lowest common denominator interface speed of the GPU RNIC, it is recommended to adjust the WRED Policy to configure different minimum and maximum thresholds, as well as drop probability. l If the lowest interface speed is 200G and below: Leaf1(config)# qos wred-policy ROCE Leaf1(config-wred-ROCE)# green minimum-threshold 1000 maximum- threshold 3000 drop-probability 20 l If the lowest interface speed is 400G and above:
Leaf1(config)# qos wred-policy ROCE Leaf1(config-wred-ROCE)# green minimum-threshold 500 maximum- threshold 1500 drop-probability 20 Map DSCP 16 to Support RoCE ACK Packets (Only for Intel Gaudi- Based Deployments) In addition to mapping RoCEv2 traffic to DSCP 26, Intel Gaudi maps RoCE ACK packets separately to DSCP 16. Because of this, take additional steps to map DSCP 16 to Traffic Class 2 using the configuration below. Leaf1(config)# qos map dscp-tc ROCE Leaf1(config-dscp-tc-map-ROCE)# dscp 16 traffic-class 2 Leaf1(config-dscp-tc-map-ROCE)# exit ! Leaf1(config)# qos map tc-pg ROCE Leaf1(config-tc-pg-map-ROCE)# traffic-class 2 priority-group 2 Leaf1(config-tc-pg-map-ROCE)# exit !
Leaf1(config)# qos scheduler-policy ROCE Leaf1(config-sched-policy-ROCE) queue 2 61