RoCE Configuration for MLNX-OS Switches in DSCP-Based QoS Mode

Version 8

    This post provides a configuration example for Mellanox Spectrum installed with MLNX-OS and running RoCE over a lossy network, in DSCP-based QoS mode.

    This post assumes MLNX-OS version 3.6.5000 and above. For manual buffer configuration and older versions see:



    Step 1 - Enable ECN Marking

    Note - For a fair sharing of switch buffer with other traffic classes, it is recommended to configure ECN on all other traffic classes.

    switch (config) # interface ethernet 1/1-1/32 traffic-class 3 congestion-control ecn minimum-absolute 150 maximum-absolute 1500


    Step 2 - Create the RoCE pool and set QoS

    Configure the traffic pool for RoCE

    switch (config) # traffic pool roce type lossy

    switch (config) # traffic pool roce memory percent 50.00
    switch (config) # traffic pool roce map switch-priority 3

    Set a strict priority to CNPs over traffic class 6

    switch (config) # interface ethernet 1/1-1/32 traffic-class 6 dcb ets strict

    Set trust layer to L3

    switch (config) # interface ethernet 1/1-1/32 qos trust L3