Lossless RoCE fabric commands compared: Arista EOS, Junos, SONiC, Nokia SR Linux and the NVIDIA host side

How the same 17 steps of building and checking a lossless RoCE (RDMA over Converged Ethernet) fabric for a GPU cluster are done on four network operating systems, Arista EOS, Juniper Junos on QFX switches, community SONiC and Nokia SR Linux, and on the NVIDIA ConnectX adapter at the host end of the link. The steps run from MTU and DSCP classification through priority flow control, ECN and buffers to the counters, neighbor and optics checks, saving the configuration and collecting a support bundle. Each command comes from a document of its own product. Where those documents show no command for a step, the platform is absent from that step, though the product may still support it.

119 commands for 17 tasks on 5 platforms. Checked row by row against 19 vendor documents on . Edited by Jay.

Set the port MTU 4

CommandPlatform and what it does
mtu 9214Arista EOS · EOS CLIInterface configuration mode: sets the port MTU; the guide's leaf and spine ports use 9214 bytes.
mtu 9216Juniper Junos (QFX) · Junos CLIStatement under an interface in the configuration; the guide's GPU-facing leaf ports use 9216 bytes.
config interface mtu <interface_name> <mtu_value>SONiC (community) · SONiC CLISets the MTU of a physical interface.
mtu 1500Nokia SR Linux 26.7 · SR Linux CLIStatement under an interface in candidate mode; 1500 is the value of the guide's basic example.

Trust DSCP and map it to a traffic class 7

CommandPlatform and what it does
qos trust dscpArista EOS · EOS CLIInterface configuration mode: the port classifies packets by their DSCP value.
qos map DSCP 16 17 18 19 20 21 22 23 to traffic-class 6Arista EOS · EOS CLIGlobal configuration: maps the listed DSCP values to traffic class 6, the guide's example values.
set class-of-service classifiers dscp fabric-dscp forwarding-class NO-LOSS loss-priority low code-points 011010Juniper Junos (QFX) · Junos CLIClassifier fabric-dscp puts DSCP 26, the guide's RoCEv2 marking, in forwarding class NO-LOSS.
set class-of-service interfaces et-* unit * classifiers dscp fabric-dscpJuniper Junos (QFX) · Junos CLIApplies that classifier to every et- logical interface.
info with-context qos classifiersNokia SR Linux 26.7 · SR Linux CLICandidate mode: prints the classifier policies; the guide's DSCP policy maps DSCP values to forwarding classes.
--trust=TRUSTNVIDIA host adapter (MLNX_OFED) · mlnx_qos optionOption of mlnx_qos -i <interface>: sets the port to trust PCP or DSCP.
mlnx_qos -i ens1f0NVIDIA host adapter (MLNX_OFED) · mlnx_qosPrints the port's current trust state, DSCP to priority map and PFC settings.

Enable priority flow control on a port 7

SONiC turns PFC on per priority with one command. Arista enables PFC on the port and names the no-drop priority separately. Junos marks a forwarding class no-loss and attaches a congestion notification profile to the ports, and SR Linux combines a mapping profile with pfc-enable.

CommandPlatform and what it does
priority-flow-control onArista EOS · EOS CLIInterface configuration mode: turns PFC on for the port.
set class-of-service congestion-notification-profile pfc input dscp code-point 011010 pfcJuniper Junos (QFX) · Junos CLIThe profile named pfc sends pause frames when traffic marked DSCP 26 is congested.
set class-of-service interfaces et-* congestion-notification-profile pfcJuniper Junos (QFX) · Junos CLIAttaches that profile to every et- port.
config interface pfc priority Ethernet0 3 onSONiC (community) · SONiC CLITurns PFC on for priority 3 of Ethernet0.
pfc-enable trueNokia SR Linux 26.7 · SR Linux CLIStatement under qos interfaces interface pfc: the port then obeys received pause frames.
info with-context interface ethernet-1/4 ethernet flow-controlNokia SR Linux 26.7 · SR Linux CLIPrints the Ethernet flow control setting, which the guide turns off before enabling PFC.
mlnx_qos -i eth1 --pfc 0,0,0,0,1,0,0,0NVIDIA host adapter (MLNX_OFED) · mlnx_qosTurns PFC on for priority 4 of eth1; the list has one flag per priority, 0 to 7.

Choose the lossless (no-drop) priority 7

CommandPlatform and what it does
priority-flow-control priority 3 no-dropArista EOS · EOS CLIIn the guide's QoS profile: makes priority 3 no-drop. The manual also types it in interface configuration mode.
set class-of-service forwarding-classes class NO-LOSS no-lossJuniper Junos (QFX) · Junos CLIMakes forwarding class NO-LOSS lossless; the guide puts it on queue 4.
set class-of-service forwarding-classes class NO-LOSS pfc-priority 3Juniper Junos (QFX) · Junos CLIMaps that class to PFC priority 3.
show pfc prioritySONiC (community) · SONiC CLILists the lossless priorities of each interface.
config interface pfc priority Ethernet0 3 offSONiC (community) · SONiC CLITakes priority 3 of Ethernet0 out of the lossless set.
info with-context qos pfc-mapping-profile custom-pfc-mapping-profileNokia SR Linux 26.7 · SR Linux CLIPrints a PFC mapping profile: priorities with PFC enabled, the queue each one pauses, and the deadlock timers.
info from state qos pfc-mapping-profile defaultNokia SR Linux 26.7 · SR Linux CLIPrints the default mapping profile that is attached to all interfaces.

Set up the PFC watchdog 9

The guard against a stuck paused queue has three names: PFC watchdog on Arista, Junos and SONiC, deadlock recovery on SR Linux, and PFC stall prevention on the NVIDIA adapter.

CommandPlatform and what it does
priority-flow-control pause watchdog default timeout 10Arista EOS · EOS CLIGlobal configuration: starts the watchdog with a timeout of 10 seconds, the manual's example.
priority-flow-control pause watchdog action dropArista EOS · EOS CLIGlobal configuration: sets the watchdog action to drop.
show priority-flow-control counters watchdogArista EOS · EOS CLICounts how often each queue was found stuck and recovered.
set class-of-service congestion-notification-profile pfc pfc-watchdogJuniper Junos (QFX) · Junos CLITurns the watchdog on in the congestion notification profile named pfc.
config pfcwd start --action drop all 400 --restoration-time 400SONiC (community) · SONiC CLIStarts the watchdog on all ports with the drop action, with the reference's example timers.
show pfcwd configSONiC (community) · SONiC CLIShows the watchdog configuration.
show pfcwd statsSONiC (community) · SONiC CLIWatchdog statistics such as storms detected and packets dropped.
info from state qos interfaces interface ethernet-1/1 pfcNokia SR Linux 26.7 · SR Linux CLIPer-port PFC state, with the deadlock detection timer and the deadlock recoveries per priority.
cat /sys/class/net/ens6/settings/pfc_stall_preventionNVIDIA host adapter (MLNX_OFED) · sysfsReads the PFC stall prevention mode of the port, default or auto.

Configure ECN marking on the lossless queue 10

The thresholds are written differently: kilobytes on an Arista transmit queue, percent of queue fill in a Junos drop profile, a WRED profile on SONiC and a WRED slope inside a queue management profile on SR Linux.

CommandPlatform and what it does
random-detect ecn minimum-threshold 512 kbytes maximum-threshold 768 kbytes max-mark-probability 100Arista EOS · EOS CLITransmit-queue configuration: marks ECN between 512 and 768 kbytes of queue, the guide's spine values.
show qos interfaces Ethernet 1/1 ecnArista EOS · EOS CLIShows the ECN thresholds of each transmit queue of the port.
set class-of-service schedulers s1 explicit-congestion-notificationJuniper Junos (QFX) · Junos CLITurns ECN marking on in scheduler s1.
set class-of-service drop-profiles dp1 interpolate fill-level 55Juniper Junos (QFX) · Junos CLIMarking starts at 55 percent queue fill; the guide's profile marks every packet at 90 percent.
set class-of-service schedulers s1 drop-profile-map loss-priority any protocol any drop-profile dp1Juniper Junos (QFX) · Junos CLITies drop profile dp1 to the scheduler.
config ecn -profile wredprofileabcd -rmax 100SONiC (community) · SONiC CLISets the red maximum threshold of a WRED profile and creates the profile if it is missing.
show ecnSONiC (community) · SONiC CLILists the WRED profiles with their thresholds and ECN mode.
wred wred-slope <traffic-type> drop-probability <probability> enable-ecn trueNokia SR Linux 26.7 · SR Linux CLIStatement in a queue management profile: turns ECN on for that WRED slope.
info with-context qos buffer-management queue-management-profile wred-ecn-1Nokia SR Linux 26.7 · SR Linux CLIPrints a queue management profile, the place where the slope and its thresholds are kept.
echo 1 > /sys/class/net/<interface>/ecn/<protocol>/enable/XNVIDIA host adapter (MLNX_OFED) · sysfsTurns ECN on for priority X of the interface, per protocol.

Reserve buffer and headroom for lossless traffic 7

CommandPlatform and what it does
set class-of-service shared-buffer ingress buffer-partition lossless percent 66Juniper Junos (QFX) · Junos CLIGives lossless traffic 66 percent of the ingress shared buffer, the guide's value.
set class-of-service shared-buffer egress buffer-partition lossless percent 66Juniper Junos (QFX) · Junos CLIThe same share on the egress side.
config interface buffer priority-group lossless add Ethernet0 3-4SONiC (community) · SONiC CLICreates lossless priority groups 3 and 4 on Ethernet0.
config buffer shared-headroom-pool size <size>SONiC (community) · SONiC CLISets the size of the shared headroom pool.
show buffer configurationSONiC (community) · SONiC CLIShows the configured buffer pools and profiles.
info with-context qos linecard 1 forwarding-complex 0 input pfc-buffer-reservationNokia SR Linux 26.7 · SR Linux CLIPrints the PFC buffer reservation, a percentage of the total buffer; 7220 IXR-H4/H5/H6/D4/D5 only.
info from state qos buffer-management buffer-allocation-profile pfc-defaultNokia SR Linux 26.7 · SR Linux CLIPrints the default buffer allocation profile for PFC.

Schedule the RoCE and CNP queues 8

CommandPlatform and what it does
bandwidth percent 95Arista EOS · EOS CLITransmit-queue configuration in the guide's QoS profile: queue 3 gets a 95 percent bandwidth share.
service-profile ai-schedulerArista EOS · EOS CLIInterface configuration mode: applies the QoS profile named ai-scheduler to the port.
set class-of-service schedulers s2-cnp priority strict-highJuniper Junos (QFX) · Junos CLIServes the queue of congestion notification packets with strict-high priority.
set class-of-service scheduler-maps sm1 forwarding-class NO-LOSS scheduler s1Juniper Junos (QFX) · Junos CLIBinds the lossless class to scheduler s1 in map sm1.
set class-of-service interfaces et-* scheduler-map sm1Juniper Junos (QFX) · Junos CLIApplies the scheduler map to every et- port.
info with-context qos scheduler-policies scheduler-policy SPNokia SR Linux 26.7 · SR Linux CLIPrints a queue scheduler policy; the guide's example is a strict priority policy.
info with-context qos interfaces interface ethernet-1/2 output schedulerNokia SR Linux 26.7 · SR Linux CLIPrints the scheduler policy applied to the output of the port.
mlnx_qos -i <interface> -s ets,ets,strict -p 0,1,1,1,2,2,2 -t 30,70NVIDIA host adapter (MLNX_OFED) · mlnx_qosTwo ETS traffic classes at 30 and 70 percent and one strict class, the manual's example.

Check PFC state and pause frame counters 8

CommandPlatform and what it does
show priority-flow-control statusArista EOS · EOS CLIPFC and watchdog settings of the switch and the PFC state of each port.
show priority-flow-control countersArista EOS · EOS CLIPFC frames received and transmitted per port.
show interfaces et-0/0/0:0 extensive | find "MAC Priority Flow Control Statistics"Juniper Junos (QFX) · Junos CLIPause frames sent and received per priority on the port.
show class-of-service interface et-0/0/0:0Juniper Junos (QFX) · Junos CLIShows the scheduler map, congestion notification profile and classifier of the port.
show pfc countersSONiC (community) · SONiC CLIPFC frames received and sent per priority, for all ports.
sonic-clear pfccountersSONiC (community) · SONiC CLIClears the PFC counters.
info with-context from state qos interfaces interface eth-1/4 pfcNokia SR Linux 26.7 · SR Linux CLIPFC state of the port with pause frames received and generated per priority.
ethtool -S eth35 | grep prio4NVIDIA host adapter (MLNX_OFED) · ethtoolCounters of one priority of the port, pause frames included; here priority 4 of eth35.

Check ECN marking 8

CommandPlatform and what it does
random-detect ecn countArista EOS · EOS CLITransmit-queue configuration: turns the ECN counter of the queue on.
hardware counter feature ecn outArista EOS · EOS CLIGlobal configuration: enables the ECN counter feature in hardware, required on the platforms the guide lists.
show interfaces et-0/0/0:0 extensive | match ecnJuniper Junos (QFX) · Junos CLICount of ECN-marked packets seen on the port.
show interfaces queue et-0/0/0:0 forwarding-class NO-LOSSJuniper Junos (QFX) · Junos CLIQueue counters of the lossless class, with its ECN-marked packets.
show queue wredcounters [interface-name]SONiC (community) · SONiC CLIWRED and ECN statistics of the egress queues; taken from the design document of the feature.
counterpoll wredqueue <enable | disable>SONiC (community) · SONiC CLITurns polling of the queue-level WRED and ECN counters on or off.
info from state with-context qos interfaces interface ethernet-1/33 output queues queue oc-unicast-0 queue-statistics aggregate-statistics ecn-marked-packetsNokia SR Linux 26.7 · SR Linux CLIPackets marked by ECN on one output queue; 7220 IXR-H5/H6 and the 7250 IXR models the guide names.
cat /sys/class/net/<interface>/ecn/<protocol>/enable/XNVIDIA host adapter (MLNX_OFED) · sysfsShows whether ECN is on for priority X.

Watch queue and buffer occupancy 9

CommandPlatform and what it does
queue-monitor lengthArista EOS · EOS CLIGlobal configuration: enables LANZ, the queue length monitor.
show queue-monitor length ethernet 6-8 limit 100Arista EOS · EOS CLILANZ on Trident 3 and Tomahawk switches: last 100 over-threshold queue records of Ethernet 6 to 8.
show interfaces queue buffer-occupancy et-0/0/0:0Juniper Junos (QFX) · Junos CLIPeak occupancy of each egress queue of the port.
show interfaces priority-group et-0/0/1 buffer-occupancyJuniper Junos (QFX) · Junos CLIPeak ingress buffer use per priority group; buffer monitoring must be enabled first.
show class-of-service shared-bufferJuniper Junos (QFX) · Junos CLIShared buffer partitions and the lossless headroom in use.
show priority-group watermark headroomSONiC (community) · SONiC CLIHighest headroom use per priority group on each port.
show queue watermark unicastSONiC (community) · SONiC CLIHighest egress shared pool use per unicast queue.
show buffer_pool watermarkSONiC (community) · SONiC CLIHighest occupancy of each buffer pool.
info with-context from state platform linecard 1 forwarding-complex 0 buffer-memoryNokia SR Linux 26.7 · SR Linux CLIBuffer memory used and free on one forwarding complex.

Check interface status and counters 9

CommandPlatform and what it does
show interfaces statusArista EOS · EOS CLILink status, VLAN, duplex, speed and type of the ports.
show interfaces [interface] counters errorsArista EOS · EOS CLIError counters of the given interfaces.
show interfaces [interface] counters queueArista EOS · EOS CLIQueue drop counters of the given interfaces.
show interfaces et-0/0/1 extensiveJuniper Junos (QFX) · Junos CLIFull detail of one port; the guide reads its pause frames, input drops and resource errors there.
show interfaces statusSONiC (community) · SONiC CLILanes, speed, MTU, type and operational and administrative state of the ports.
show interfaces countersSONiC (community) · SONiC CLITraffic counters of all ports; further forms show errors, rates or one port in detail.
show interface briefNokia SR Linux 26.7 · SR Linux CLISummary of the interfaces that are operationally up or down.
show interface ethernet-1/1 queue-statisticsNokia SR Linux 26.7 · SR Linux CLIEgress queue and virtual output queue statistics of one port.
ethtool -S eth<x>NVIDIA host adapter (MLNX_OFED) · ethtoolStatistics counters of the adapter port.

List LLDP neighbors 5

CommandPlatform and what it does
show lldp neighborsArista EOS · EOS CLIThe LLDP neighbors of the switch, per port.
show lldp neighborsJuniper Junos (QFX) · Junos CLIOperational mode: information about the LLDP neighbors.
show lldp tableSONiC (community) · SONiC CLIBrief summary of all LLDP neighbors.
show lldp neighborsSONiC (community) · SONiC CLIMore detail about all LLDP neighbors, or about those on one interface.
show system lldp neighborNokia SR Linux 26.7 · SR Linux CLILLDP neighbor report with system name, chassis ID and port.

Set or check DCBX 5

CommandPlatform and what it does
dcbx mode ieeeArista EOS · EOS CLIInterface configuration mode: runs the IEEE version of DCBX on the port.
show dcbx Ethernet 50Arista EOS · EOS CLIDCBX status of the port and the TLVs received from the peer.
set protocols dcbx interface all dcbx-version ieee-dcbxJuniper Junos (QFX) · Junos CLIConfiguration mode: sets IEEE DCBX on all interfaces.
info from state qos interfaces interface eth-1/4 dcbxNokia SR Linux 26.7 · SR Linux CLILocal and remote DCBX state of the port, per PFC priority.
lldptool -T -i <ethX> -V PFC enableTx=yesNVIDIA host adapter (MLNX_OFED) · lldptoolMakes the host send the PFC TLV to the switch; the lldpad daemon must be running.

Read transceiver diagnostics 4

CommandPlatform and what it does
show interface Ethernet11/1 transceiver domArista EOS · EOS CLITemperature, voltage and optical power of the module in the port.
show interfaces transceiver eeprom --dom Ethernet0SONiC (community) · SONiC CLIDecodes the module EEPROM and adds the diagnostic monitoring values.
show interface ethernet-1/3 detailNokia SR Linux 26.7 · SR Linux CLIPort detail with a transceiver section: module type, vendor, temperature and power per channel.
ethtool -m|--dump-module-eeprom eth<x>NVIDIA host adapter (MLNX_OFED) · ethtoolReads and decodes the EEPROM of the cable or module.

Commit or save the configuration 8

Junos and SR Linux apply changes by committing a candidate configuration. Arista and SONiC write the running configuration to a startup file, and SR Linux has a separate command for that as well.

CommandPlatform and what it does
copy running-config startup-configArista EOS · EOS CLIPrivileged EXEC: stores the running configuration as the startup configuration; write does the same.
commit checkJuniper Junos (QFX) · Junos CLIConfiguration mode: checks the candidate configuration for errors without activating it.
commitJuniper Junos (QFX) · Junos CLIActivates the candidate configuration.
rollback 1Juniper Junos (QFX) · Junos CLILoads the configuration from before the last commit; the guide uses it to get a failed one back.
config save -ySONiC (community) · SONiC CLIWrites the configuration database to /etc/sonic/config_db.json without asking.
commit stayNokia SR Linux 26.7 · SR Linux CLICandidate mode: applies the changes and stays in candidate mode.
commit confirmedNokia SR Linux 26.7 · SR Linux CLIApplies the changes and starts a timer; without confirmation the configuration reverts.
save startupNokia SR Linux 26.7 · SR Linux CLISaves the running configuration as the startup configuration.

Collect a support bundle 4

CommandPlatform and what it does
send support-bundle flash:/Arista EOS · EOS CLIBuilds a support bundle ZIP file and writes it to flash.
request support informationJuniper Junos (QFX) · Junos CLIOperational mode: runs the series of show commands that support asks for.
show techsupportSONiC (community) · SONiC CLIGathers logs and device state into an archive under /var/dump.
tech-supportNokia SR Linux 26.7 · SR Linux CLICollects technical support data into a ZIP file; usable in any configuration mode.

Notes

  • Arista rows are EOS CLI commands from the EOS User Guide for version 4.37.0F and from two Arista deployment guides for AI networks. Each row names its mode: EXEC for show commands, global, interface, transmit-queue or QoS-profile configuration for the rest. Sections of the manual that apply only to retired switch chips (Arad, Petra, FM6000, Trident II, Helix) were not used.
  • Juniper rows are Junos CLI commands for QFX switches: set statements are typed in configuration mode and take effect at commit; show and request commands run in operational mode. The class-of-service rows come from Juniper's validated design for AI data centers (QFX5220, QFX5230 and QFX5240 switches) and its congestion control example, the DCBX row from the QFX traffic management guide, commit check and rollback from the Junos OS Evolved installation guide, and the LLDP and support rows from the Junos CLI reference.
  • SONiC rows are typed at the Linux shell of the switch and come from the command reference and design documents of the community master branch; the reference runs config commands with sudo. A vendor build of SONiC can differ.
  • Nokia rows are SR Linux release 26.7 CLI commands. The quality of service guide shows configuration as the output of info in candidate mode instead of the statements that were typed, so many Nokia rows are the info command that prints the block; info from state reads live state. Several features are limited to the 7220 IXR or 7250 IXR models named in the row.
  • NVIDIA rows are not switch commands: they run on the Linux host that owns the ConnectX adapter and come from the MLNX_OFED documentation, version 24.10-5.1.6.1 LTS. No NVIDIA Ethernet switch document was among those compared.
  • Interface names, profile names, priorities, thresholds and percentages inside a command are the example values of the vendor's document.

Sources and checks

Documents retrieved on .

Rows checked on .

Report a wrong or missing command · How we verify