Easy RoCE
Table 1 Easy RoCE View
| Command | Purpose |
|---|---|
| **show qos roce ** [all|summary|RoCE_profile_name] | Display “Easy RoCE” configuration. |
| show counters qos roce interfaceethernet interface_name queue queue-id | Display RoCE statistics of the interface. |
| clear counters qos roce | Clear RoCE statistics of all interfaces. |
show qos roce [all|summary|
Section titled “show qos roce [all|summary|”[Command] **show qos roce ** [all|summary|RoCE_profile_name]
[Purpose] Display RoCE configuration.
[View] Global Configuration View
[Notes] CX732Q-N-V2 devices currently do not support.
[Use Cases]
sonic# show qos roceNotice: Displaying configuraions of in-use RoCE profiles==> RoCE Profile: roce_lossless_5m_low_latency | RoCE Policy Map: roce_lossless_5m_low_latency_100g <==+--------------------+-----------------+-----------------------------------------------------+| | Operational | Description |+====================+=================+=====================================================+| Mode | Lossless | QoS RoCE mode |+--------------------+-----------------+-----------------------------------------------------| Status | Bind: 0/0-0/252 | QoS RoCE binding status |+--------------------+-----------------+-----------------------------------------------------+| Cable Length | 5m | Cable length in meters for QoS RoCE lossless config |+--------------------+-----------------+-----------------------------------------------------+| Congestion-Control | - | - || - Congestion Mode | ECN | Congestion control mode || - Enabled TC | 3,4 | Congestion control config enabled traffic class || - Max Threshold | 1025024 | Congestion control config max threshold || - Min Threshold | 15360 | Congestion control config max threshold |+--------------------+-----------------+-----------------------------------------------------+| PFC | - | - || - PFC Priority | 3,4 | PFC enabled switch priority || - TX Status | Enabled | PFC RX status || - RX Status | Enabled | PFC TX status |+--------------------+-----------------+-----------------------------------------------------+| Trust | - | - || - Trust Mode | DSCP | Trust setting for packet classification |+--------------------+-----------------+-----------------------------------------------------+
====> RoCE DSCP->SP Mapping Configurations <====+-------------------------+-------------------+| DSCP | Switch Priority |+=========================+===================+| 0,1,2,3,4,5,6,7 | 0 || 8,9,10,11,12,13,14,15 | 1 || 16,17,18,19,20,21,22,23 | 2 || 24,25,26,27,28,29,30,31 | 3 || 32,33,34,35,36,37,38,39 | 4 || 40,41,42,43,44,45,46,47 | 5 || 48,49,50,51,52,53,54,55 | 6 || 56,57,58,59,60,61,62,63 | 7 |+-------------------------+-------------------+
====> RoCE SP->TC Mapping & ETS Configurations <====+-------------------+--------+----------+| Switch Priority | Mode | Weight |+===================+========+==========+| 6 | SP | - || 7 | SP | - |+-------------------+--------+----------+
====> PFC Profile Configurations <====+-------------------------------------------+-------------------+| Profile Name | Switch Priority |+===========================================+===================+| egress_lossless_profile | 3,4 || egress_lossy_profile | 0,1,2,5,6,7 || ingress_lossy_profile | 0,1,2,5,6,7 || pg_lossless_10000_40m_profile | 3,4 || roce_lossless_5m_low_latency_100g_profile | 3,4 |+-------------------------------------------+-------------------+
sonic# show qos roce summary+------------------------------+----------+----------+| Profile | Mode | Status |+==============================+==========+==========+| roce_lossless_5m_low_latency | lossless | Bind |+------------------------------+----------+----------+show counters qos roce interface ethernet
Section titled “show counters qos roce interface ethernet”[Command] show counters qos roce interface ethernet interface_name queue queue-id
[Purpose] Display RoCE statistics of the interface.
[Parameters]
| Parameter | Description |
|---|---|
| interface_name | Interface name (eg.0/1) |
| queue-id | Queue ID, the range is [0,7] |
[View] Global Configuration View
[Notes] CX732Q-N-V2 devices currently do not support.
[Use Cases]
sonic# show counters qos roce interface ethernet 0/32 queue 3 operational----------------------------- -----------------roce states Ethernet32.3pfc-stats- pfc_rx_stats 0- pfc_tx_stats 402- pg-stats- total_packet 11,380,786,999- total_bytes 1,456,740,735,872- drop_packet 0- curr_occupancy 0ecn-stats- ecn_stats 0- ecn_buffer- shared_use_watermark_byte 0- total_use_watermark_byte 0- total_use_count_byte 0queue-stats- Counter_pkts 0- Counter_bytes 0- Drop_pkts 0- Drop_bytes 0- CounterRate_pkts 0.0- CounterRate_bytes 0.0- DropRate_pkts 0.0- DropRate_bytes 0.0- Occupancy_bytes 0- SharedOccupancy_bytes 0clear counters qos roce
Section titled “clear counters qos roce”[Command] clear counters qos roce
[Purpose] Clear RoCE statistics of all interfaces.
[View] Global Configuration View
[Notes] CX732Q-N-V2 devices currently do not support.
[Use Cases]
sonic# show counters qos roce interface 0/32 queue 3Easy RoCE Config
Section titled “Easy RoCE Config”Table 2 Easy RoCE Config
| Command | Purpose |
|---|---|
| qos roce {lossless|lossy} [cable-length length] [incast-level level] [traffic-model model] | Enable “Easy RoCE”, and create a configuration template. |
| qos service-policy {roce_lossless|roce_lossy|RoCE_profile_name} | Apply “Easy RoCE” configuration to all interfaces. |
| qos roce RoCE_profile_name | Enter the RoCE template configuration view. |
| bind interface {all|ethernet interface_name|range interface_name_list} | Apply the RoCE configuration template to the specified interfaces. |
qos roce {lossless|lossy} [cable-length
Section titled “qos roce {lossless|lossy} [cable-length”[Command] qos roce {lossless|lossy} [cable-length length] [incast-level level] [traffic-model model]
[Purpose] Enable “Easy RoCE”, and create a configuration template.
[Parameters]
| Parameter | Description |
|---|---|
| length | Specify the cable length, choose from 5m/40m/100m/300m. |
| level | Specify the traffic incast model, choose from low/medium/high |
| model | Specify the traffic model, choose from throughput/latency/balance. |
[View] Global Configuration View
[Notes] To enhance the user-friendliness of AsterNOS in RoCE scenarios, we support “Easy RoCE” configuration and management. There are two modes in RoCE scenario: “Lossless Ethernet” and “Lossy Ethernet”. In lossless mode, the system will automatically generate lossless configuration templates, with default DSCP mapping, enabling PFC and ECN for queue 3 and 4, and setting strict priority scheduling for queue 6 and 7. At the same time, it is supported for you to enter the corresponding configuration view to modify the parameters. Run command no qos roce {lossless|lossy} to remove “Easy RoCE” configuration. CX732Q-N-V2 devices currently do not support.
[Use Cases]
sonic(config)# qos roce losslessorsonic(config)# qos roce lossless cable-length 5m incast-level low traffic-model latencyNotice: Creating new RoCE profile roce_lossless_5m_low_latencyqos service-policy {roce_lossless|roce_lossy|
Section titled “qos service-policy {roce_lossless|roce_lossy|”[Command] qos service-policy {roce_lossless|roce_lossy|RoCE_profile_name}
[Purpose] Apply “Easy RoCE” configuration to all interfaces.
[Parameters]
| Parameter | Description |
|---|---|
| RoCE_profile_name | Specify the name of RoCE profile. |
[View] Global Configuration View
[Notes] Run command no qos service-policy {roce_lossless|roce_lossy|RoCE_profile_name} to unbind all interfaces. CX732Q-N-V2 devices currently do not support.
[Use Cases]
sonic(config)# qos service-policy roce_losslessNotice: interface 0/0,0/4 has already bind other policy, pleace manually bind roce_lossless to the interfacesorsonic(config)# qos service-policy roce_lossless_5m_low_latencyNotice: RoCE is not supported on interface 0/256-0/257, skippingNotice: Binding RoCE profile roce_lossless_5m_low_latency to interface 0/0-0/252qos roce
Section titled “qos roce”[Command] qos roce RoCE_profile_name
[Purpose] Enter the RoCE template configuration view.
[Parameters]
| Parameter | Description |
|---|---|
| RoCE_profile_name | Specify the name of RoCE profile. |
[View] Global Configuration View
[Notes] Run command no qos roce RoCE_profile_name to delete the template you created. CX732Q-N-V2 devices currently do not support.
[Use Cases]
sonic(config)# qos roce roce_losslessorsonic(config)# qos roce roce_lossless_5m_low_latencybind interface {all|ethernet
Section titled “bind interface {all|ethernet”[Command] bind interface {all|ethernet interface_name|range interface_name_list}
[Purpose] Apply the RoCE configuration template to the specified interfaces.
[Parameters]
| Parameter | Description |
|---|---|
| all | Bind to all interfaces. |
| interface_name | Specify the certain interface name id (eg. 0/1) |
| interface_name_list | Specify the name list (eg. 0/0-0/64,0/128) |
[View] RoCE Template Configuration View
[Notes] Run command no bind interface {all|ethernet interface_name|range interface_name_list} to unbind. CX732Q-N-V2 devices currently do not support.
[Use Cases]
sonic(config)# qos roce roce_lossless_5m_low_latencysonic(config-roce_lossless_5m_low_latency)# bind interface range 0/0-0/12Notice: Binding RoCE profile roce_lossless_5m_low_latency to interface 0/0-0/12