3-5Defining a Traffic BehaviorA traffic behavior is a set of QoS actions (such as traffic filtering, shaping, policing, priority marking) totake on a class of traffic. To define a traffic behavior, first create it and then configure QoS actions suchas priority marking and traffic redirecting in traffic behavior view.Follow these steps to define a traffic behavior:To do… Use the command… RemarksEnter system view system-view —Create a traffic behavior and entertraffic behavior view traffic behavior behavior-name RequiredConfigure actions in the trafficbehaviorSee the following chapters based on the purpose of the traffic behavior:traffic policing, traffic filtering, traffic redirecting, priority marking, trafficaccounting, and so on.Defining a PolicyYou can define multiple class-behavior associations in a policy. A behavior is performed for anassociated class of packets, so various QoS features can be implemented.If a QoS policy contains multiple class-behavior associations, they are matched in the order they areconfigured. Once a match is found, the match operation stops and the specific behavior is performed.If no match is found after all associations are compared, the packet is considered a non-matchedpacket.Follow these steps to associate a class with a behavior in a policy:To do… Use the command… RemarksEnter system view system-view —Create a policy and enter policyview qos policy policy-name RequiredAssociate a class with a behaviorin the policyclassifier tcl-name behaviorbehavior-name [ modedot1q-tag-manipulation ]RequiredSpecify thedot1q-tag-manipulation keywordif the class-behavior association isdefined for VLAN mapping.Repeat this step to create moreclass-behavior associations.