HQoS Configuration
此内容尚不支持你的语言。
show hqos-profile {all|single
Section titled “show hqos-profile {all|single”[Command] show hqos-profile {all|singlehqos-profile-name**}**
[Purpose] View HQoS Configuration Information
[View] System view
[Notes] Use this command to view all HQoS information
[Use Cases]
sonic# show hqos-profile allshow hqos-user-group-profile {all|single
Section titled “show hqos-user-group-profile {all|single”[Command] show hqos-user-group-profile {all|singlehqos-user-group-profile-name**|statshqos-user-group-profile-name}**
[Purpose] View HQoS user group configuration and real-time traffic status
[View] System view
[Notes] Using this command to view all HQoS user group information. Real-time traffic status can be viewed when traffic exists within the user group
[Use Cases]
sonic# show hqos-user-group-profile allshow hqos-user-profile {all|single
Section titled “show hqos-user-profile {all|single”[Command] show hqos-user-profile {all|singlehqos-user-profile-name**|statshqos-user-profile-name}**
[Purpose] View HQoS user configuration and real-time traffic status
[View] System view
[Notes] Using this command to view all HQoS user information. Real-time traffic status can be viewed when traffic exists within the user
[Use Cases]
sonic# show hqos-user-profile allhqos enable
Section titled “hqos enable”[Command] hqos enable
[Purpose] Globally enable the HQoS function
[View] System configuration view
[Use Cases]
sonic(config)# hqos enablehqos-profile
Section titled “hqos-profile”[Command] hqos-profilename
[Purpose] Create HQoS configuration
[Parameter]
| Parameter | Description |
|---|---|
| name | HQoS configuration file name |
[View] System configuration view
[Use Cases]
sonic(config)# hqos-profile test1global rate
Section titled “global rate”[Command] global ratebyte/s
[Purpose] Configure global rate limiting
[Parameter]
| Parameter | Description |
|---|---|
| byte/s | Rate limit speed, unit: byte/s |
[View] hqos-profile configuration view
[Use Cases]
sonic(config)# hqos-profile test1sonic(config-hqos-test1)# global rate 125000000user-group-profile {fuzzymatch
Section titled “user-group-profile {fuzzymatch”[Command] user-group-profile {fuzzymatchuser-group-name**|postmatchuser-group-name|prematchuser-group-name|user-group-name} {shaping pirbyte/spbsbytes}**
[Purpose] Bind user group configuration in HQoS setup, with independent rate limiting capability
[Parameter]
| Parameter | Description |
|---|---|
| user-group-name | User group name |
| byte/s | Rate limit speed, unit: byte/s |
[View] hqos-profile configuration view
[Notes] Custom user groups must be created prior to binding
[Use Cases]
sonic(config)# hqos-profile test1sonic(config-hqos-test1)# user-group-profile test1 shaping pir 2000000 pbs 1000000user-profile {fuzzymatch
Section titled “user-profile {fuzzymatch”[Command] user-profile {fuzzymatchuser-name**|postmatchuser-name|prematchuser-name|user-name} {shaping pirbyte/spbsbytes}**
[Purpose] Bind a user configuration in the HQoS setup, with independent rate limiting capability
[Parameter]
| Parameter | Description |
|---|---|
| user-name | Username |
| byte/s | Rate limit speed, unit: byte/s |
[View] hqos-profile configuration view
[Notes] Custom users must be created prior to binding
[Use Cases]
sonic(config)# hqos-profile test1sonic(config-hqos-test1)# user-profile test1 shaping pir 2000000 pbs 1000000default-group-profile shaping pir
Section titled “default-group-profile shaping pir”[Command] default-group-profile shaping pirbyte/spbsbytes
[Purpose] Configure independent rate limiting for the default user group within the HQoS setup
[Parameter]
| Parameter | Description |
|---|---|
| byte/s | Rate limit speed, unit: byte/s |
[View] hqos-profile configuration view
[Notes] When a user is not bound to a custom user group, that user belongs to the default user group
[Use Cases]
sonic(config)# hqos-profile test1sonic(config-hqos-test1)# default-group-profile shaping pir 2000000 pbs 1000000default-user-profile shaping pir
Section titled “default-user-profile shaping pir”[Command] default-user-profile shaping pirbyte/spbsbytes
[Purpose] Configure independent rate limiting for the default user within the HQoS setup
[Parameter]
| Parameter | Description |
|---|---|
| byte/s | Rate limit speed, unit: byte/s |
[View] hqos-profile configuration view
[Notes] If a user is not bound to a custom user, they belong to the default user
[Use Cases]
sonic(config)# hqos-profile test1sonic(config-hqos-test1)# default-user-profile shaping pir 2000000 pbs 1000000hqos-user-group-profile
Section titled “hqos-user-group-profile”[Command] hqos-user-group-profilename
[Purpose] Create a custom user group
[Parameter]
| Parameter | Description |
|---|---|
| name | Custom user group name |
[View] System configuration view
[Use Cases]
sonic(config)# hqos-user-group-profile test1counter-enable
Section titled “counter-enable”[Command] counter-enable
[Purpose] enable statistics
[View] Hqos user group view
[Use Cases]
sonic(config)# hqos-user-group-profile test1sonic(config-group-test1)# counter-enableauto-user-by-ip-pool
Section titled “auto-user-by-ip-pool”[Command] auto-user-by-ip-poolip-pool-name
[Purpose] Create custom users in batch based on IP pool
[Parameter]
| Parameter | Description |
|---|---|
| ip-pool-name | IP address pool name |
[View] Hqos user group view
[Use Cases]
sonic(config)# hqos-user-group-profile test1sonic(config-group-test1)# auto-user-by-ip-pool testuser-profile {fuzzymatch
Section titled “user-profile {fuzzymatch”[Command] user-profile {fuzzymatchuser-name**|postmatchuser-name|prematchuser-name|user-name} {shaping pirbyte/spbsbytes}**
[Purpose] Bind a user configuration within the custom user group, with independent rate limiting capability
[Parameter]
| Parameter | Description |
|---|---|
| user-name | Username |
| byte/s | Rate limit speed, unit: byte/s |
[View] Custom user group configuration view
[Notes] Custom users must be created prior to binding
[Use Cases]
sonic(config)# hqos-user-group-profile test1sonic(config-group-test1)# user-profile test1 shaping pir 2000000 pbs 1000000qos-map bind dscp_to_tc
Section titled “qos-map bind dscp_to_tc”[Command] qos-map bind dscp_to_tcqos-map-name
[Purpose] Bind a DSCP-based priority mapping relationship within the custom user group
[Parameter]
| Parameter | Description |
|---|---|
| qos-map-name | DSCP priority mapping table |
[View] Custom user group configuration view
[Notes] The DSCP-based priority mapping table must be created prior to binding
[Use Cases]
sonic(config)# hqos-user-group-profile test1sonic(config-group-test1)# qos-map bind dscp_to_tc dscp1hqos-user-profile
Section titled “hqos-user-profile”[Command] hqos-user-profilename
[Purpose] Create a custom user
[Parameter]
| Parameter | Description |
|---|---|
| name | Custom username |
[View] System configuration view
[Notes] The specific characteristics of a user can be configured via ACL, and the set-hqos-user field is used within the ACL to associate with a custom user
[Use Cases]
sonic(config)# hqos-user-profile test1tc-queue
Section titled “tc-queue”[Command] tc-queuesequence-numbermode strict|dwrr {shaping pirbyte/spbsbytes**}**
[Purpose] Configure the TC scheduling mode within the custom user, with independent rate limiting capability for the TC
[Parameter]
| Parameter | Description |
|---|---|
| sequence-number | TC index: 0–7 |
| byte/s | Rate limit speed, unit: byte/s |
[View] Custom user configuration view
[Use Cases]
sonic(config)# hqos-user-profile test1 test1sonic(config-user-test1)# tc-queue 1 mode strict shaping pir 20000000 pbs 1000000qos-map bind dscp_to_tc
Section titled “qos-map bind dscp_to_tc”[Command] qos-map bind dscp_to_tcqos-map-name
[Purpose] Bind a DSCP-based priority mapping relationship within the custom user
[Parameter]
| Parameter | Description |
|---|---|
| qos-map-name | DSCP priority mapping table |
[View] Custom user configuration view
[Notes] The DSCP-based priority mapping table must be created prior to binding
[Use Cases]
sonic(config)# hqos-user-profile test1sonic(config-user-test1)# qos-map bind dscp_to_tc dscp1hqos-profile
Section titled “hqos-profile”[Command] hqos-profilename**{shared|offload}**
[Purpose] Bind the HQoS configuration file to the traffic egress interface
[Parameter]
| Parameter | Description |
|---|---|
| name | HQoS configuration file name |
[View] Interface view
[Notes] The mode parameter can be omitted during configuration; by default, it operates in normal mode, where each port functions independently. In shared mode, all interfaces bound to this HQoS configuration file share the rate limit specified in the configuration
[Use Cases]
sonic(config)# interface ethernet 1sonic(config-if-1)# hqos-profile test1