A QoS profile is the aggregate of QoS scheduling parameters. Configurable scheduling parameters for SQs include CIR, PIR, Flow Queue (FQ) profiles, and lengths for packet loss compensation of service profiles.
Context
In user access scenarios, the RADIUS attribute HW-QOS-Profile-Name (31) carried in received authentication packets can be used to dynamically specify a QoS rate limit profile for users. The prerequisite is that a QoS profile and scheduling parameters have been configured on the device. For details about the HW-QOS-Profile-Name (31) attribute, see HW-QOS-Profile-Name (31).
Procedure
- Run system-view
The system view is displayed.
- Run qos-profile qos-profile-name
A QoS profile is defined and its view is displayed.
- Run user-queue { { cir cir-value [ cbs cbs-value ] [ [ pir pir-value [ pbs pbs-value ] [ pir-priority high ] ] | [ flow-queue flow-queue-name ] | [ user-group-queue group-name ] ] * [ inbound | outbound ] [ service-template template-name [ adjust-on-card ] ] } | { cir-percentage cir-percentage-value [ cbs cbs-value ] [ [ pir-percentage pir-percentage-value [ pbs pbs-value ] [ pir-priority high ] ] | [ flow-queue flow-queue-name ] | | [ user-group-queue group-name ] ] * [ inbound | outbound ] [ service-template template-name [ adjust-on-card ] ] } }
The scheduling parameters for user queues are configured.
- If a priority-mode flow queue profile is configured, the CIR must be 0.
- A corresponding service profile must have been globally configured before HQoS is configured in a QoS profile.
- Run car { cir cir-value [ pir pir-value ] | cir cir-percentage cir-percentage-value [ pir pir-percentage pir-percentage-value ] } [ cbs cbs-value [ pbs pbs-value ] ] [ green { discard | pass [ service-class class color color ] } | yellow { discard | pass [ service-class class color color ] } | red { discard | pass [ service-class class color color ] } ]* [ inbound | outbound ] [ color-aware ]
CAR is configured to ensure user traffic.
- Run commit
The configuration is committed.