This section describes how to configure traffic behaviors.
The device supports various types of traffic behaviors and traffic actions. You can choose one or more types of traffic behaviors and traffic actions as required.
Do as follows on the router:
The system view is displayed.
A traffic behavior is configured and the traffic behavior view is displayed.
Packets are allowed or forbidden to pass.
If both the if-match any and deny parameters are configured in a complex traffic classification rule, the device discards all packets, including protocol packets, that flow through an interface. Therefore, exercise caution when configuring both the if-match any and deny parameters in a traffic classification rule.
If the permit or deny action is configured in both the rule command and the traffic behavior view, only packets that are permitted by the rule command are processed according to the configured traffic behavior. If the deny action is configured in either the rule command or the traffic behavior view, all matched packets are discarded.
The configuration is committed.
Do as follows on the router:
The system view is displayed.
A traffic behavior is configured and the traffic behavior view is displayed.
A traffic policing action is configured.
After you configure a traffic policing action for a traffic policy, the traffic policy can be applied to both incoming and outgoing traffic on an interface.
The original qos car command that is configured on an interface will be affected after a traffic policy configured with traffic policing action is applied to the interface.
This command is cyclic in nature. That is, if this command is configured for multiple times, only the last configuration takes effect.
If the CoS of a packet is re-marked as EF, BE, CS6, or CS7, the packet can be re-marked only in green.
The class-based HQOS parameters for the specified traffic behavior is configured.
The outgoing traffic supports class-based HQoS scheduling only when the traffic policy works in unshared mode and is applied to an ETM subcard.
The configuration is committed.
Do as follows on the router:
The system view is displayed.
A traffic behavior is configured and the traffic behavior view is displayed.
To re-mark the precedence of IP packets, run the remark ip-precedence ip-precedence command.
To re-mark the DSCP value of IP packets, run the remark [ ipv6 ] dscp dscp-value command.
To re-mark the precedence of VLAN packets, run the remark 8021p 8021p-value command.
To re-mark the Type of Service (ToS) value of an IP packet, run the remark tos remark tos command.
To re-mark the DSCP value of IPv6 packets, run the remark ipv6 dscp dscp-value command.
The remark ip-df command takes effect with only incoming traffic on the router.
The configuration is committed.
The system view is displayed.
A traffic behavior is configured, and the traffic behavior view is displayed.
Packets with a certain CoS are colored.
The function of marking matching packets' CoS and color based on the status of the specified BFD session is configured.
The configuration is committed.
Do as follows on the router:
The system view is displayed.
A traffic behavior is configured and the traffic behavior view is displayed.
To directly forward packets without redirecting them, run the permit command in the traffic behavior view.
To directly drop packets without redirecting them, run the deny command in the traffic behavior view.
The action deny and other traffic actions are mutually exclusive. Traffic that is configured with the deny action cannot be further processed unless the traffic is configured with the permit action.
To redirect IP packets to the public network LSP, run the redirect lsp public dest-ipv4-address [ nexthop-address | interface interface-type interface-number | secondary ] command.
To redirect packets to a specified VPN group, run the redirect vpn-group vpn-group-name command.
When the redirection policy in the traffic behavior is a Discard policy, the IP address and outbound interface of the next hop must be specified. When the redirection policy in the traffic behavior is a Forward policy, the IP address of the next hop must be specified.
In IPv6 application, the IP address of the next hop specified for a Discard policy must be an IPv6 link-local address or an IPv6 unicast address; the IP address of the next hop specified for a Forward policy can be only an IPv6 unicast address.
The configuration is committed.
Do as follows on the router:
The system view is displayed.
A traffic behavior is configured and the traffic behavior view is displayed.
The load balancing mode is set.
The configuration is committed.