You can configure different traffic behaviors for different traffic classifiers on a BGP receiver to implement differentiated services.
The system view is displayed.
A traffic behavior is configured and the traffic behavior view is displayed.
To configure CAR actions, run the car { cir cir-value [ pir pir-value ] } [ cbs cbs-value [ pbs pbs-value ] ] [ adjust adjust-value ] [ green { discard | pass [ remark dscp dscp-value | service-class class color color ] } | yellow { discard | pass [ remark dscp dscp-value | service-class class color color ] } | red { discard | pass [ remark dscp dscp-value | service-class class color color ] } ] * [ summary ] [ color-aware ] [ limit-type pps ] command.
To re-mark the DSCP value of an IP packet, run the remark [ ipv6 ] dscp { dscp-value | af11 | af12 | af13 | af21 | af22 | af23 | af31 | af32 | af33 | af41 | af42 | af43 | cs1 | cs2 | cs3 | cs4 | cs5 | cs6 | cs7 | default | ef } command.
To re-configure the precedence of IP packets, run the remark ip-precedence ip-precedence.
To allow all the packets that meet the matching rule to pass, run the permit command.
To prevent all the packets that meet the matching rule from passing, run the deny command.
To color packets with a certain CoS, run the service-class service-class color color command.
To set the class-based HQoS parameters for the specified traffic behavior, run the user-queue cir cir-value [ [ pir pir-value ] | [ flow-queue flow-queue-name ] | [ user-group-queue group-name ] | [ service-template service-template-name ] ]* command.
To redirect packets to a specified VPN group, run the redirect vpn-group vpn-group-name command.
To configure the traffic behavior redirecting to the traffic policy, run the command traffic-policy policy-name.
You can run the hierarchical-car enable command in the traffic behavior view of a cascaded traffic policy to enable hierarchical CAR.
The parameters specified for a traffic policy, such as inbound, outbound, link-layer, mpls-layer, and all-layer, are inherited by the cascaded traffic policy.
When the traffic behaviors for two-level ACLs are service-class, level-1 service-class preferentially takes effect. However, if level 1 service-class carries no-remark, level-2 service-class preferentially takes effect.
To increase the function effective priority of the traffic behavior, run the increase-priority command.
The increase-priority command increases the function effective priority of the traffic behavior. After the command is run, the traffic behavior takes effect before BGP Flow Specification service.
The configuration is committed.