The weight command sets the weight value for a sub-interface queue.
The undo weight command restores the default weight value for a sub-interface queue.
By default, the weight value for a sub-interface queue is 10.
Usage Scenario
Multiple services are scheduled evenly by default, making it possible that important services are not preferentially forwarded. You can run the weight command to modify scheduling weight values to ensure that services of high priorities are preferentially forwarded.
Prerequisites
A sub-interface queue profile has been configured.
Precautions
Sub-interface queues are allocated bandwidth using the following format: (weight / ∑weight) x higher-level traffic shaping value. When the sum bandwidth of a user group queue is greater than the traffic shaping value, the user group queue is allocated bandwidth equal to the traffic shaping value. The remaining bandwidth is allocated to other user group queues.