display traffic policy

Function

The display traffic policy command displays information about the association between traffic classifiers and traffic behaviors in traffic policies.

Format

display traffic policy { system-defined | user-defined } [ policy-name [ classifier classifier-name ] ]

Parameters

Parameter Description Value
system-defined

Displays the traffic policy that is defined by the system.

-

user-defined

Displays the traffic policy that is defined by a user.

-

policy-name

Specifies the name of a traffic policy. It is defined through the traffic policy command.

The value is a string of 1 to 127 case-sensitive characters.

classifier classifier-name

Specifies the name of a traffic classifier. It is defined through the traffic classifier command.

The value is a string of 1 to 127 case-sensitive characters.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
mqc read

Usage Guidelines

Usage Scenario

You can run the display traffic policy command to view the configurations of traffic classifiers and traffic behaviors in traffic policies and their association.

Precautions

If the traffic policy name is not specified, the configurations of all the system-defined or user-defined traffic policies are displayed.

When there are multiple associations between traffic classifiers and traffic behaviors in a traffic policy, you can specify the name of a traffic classifier to view its association information.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the configurations of the user-defined traffic policy.
<HUAWEI> display traffic policy user-defined
User Defined Traffic Policy Information:
Total: 10239 Used: 4 Free: 10235 
Policy: aaa
Total: 5120 Used: 2 Free: 5118
Description: 
Step: 1
Unshare-mode
Classifier: hhg Precedence: 1
Behavior: hhg
Marking:
remark dscp cs5

Classifier: default-class Precedence: 65535
Behavior: be
-none-

Policy: bbb
Total: 5120 Used: 1 Free: 5119
Description: 
Step: 1
Share-mode
Classifier: default-class Precedence: 65535
Behavior: be
-none-

Policy: test
Total: 5120 Used: 2 Free: 5118
Description: 
Step: 1
Unshare-mode
Classifier: test Precedence: 1
Behavior: test
Committed Access Rate:
CIR 50000 (Kbps), PIR 0 (Kbps), CBS 9350000 (byte), PBS 0 (byte), ADJUST 0
Conform Action: pass 
Yellow Action: pass 
Exceed Action: discard 
Color-aware: no 

Classifier: default-class Precedence: 65535
Behavior: be
-none-

Policy: ucl
Total: 5120 Used: 2 Free: 5118
Description: 
Step: 1
Share-mode
Classifier: ucl Precedence: 1
Behavior: ucl
-none-

Classifier: default-class Precedence: 65535
Behavior: be
-none-
# Display the configurations of the user-defined traffic policy p_carrier_A.
<HUAWEI> display traffic policy user-defined p_carrier_A
User Defined Traffic Policy Information:                                      
    Policy: p_carrier_A                                                         
      Description:                                                              
      Step: 1                                                                   
      Statistic Enable                                                          
      Unshare-mode                                                              
      Classifier: cin1 Source user-group: groupa Precedence: 1                  
        Behavior: b_user-group                                                  
        Committed Access Rate:                                                  
          CIR 100 (Kbps), PIR 0 (Kbps), CBS 18700 (byte), PBS 0 (byte)          
          Conform Action: pass                                                  
          Yellow Action: pass                                                  
          Exceed Action: discard                                               
          Color-aware: no                                                       
                                                                                
      Classifier: cout1 Destination user-group: groupa Precedence: 2            
        Behavior: b_user-group                                                  
        Committed Access Rate:                                                  
          CIR 100 (Kbps), PIR 0 (Kbps), CBS 18700 (byte), PBS 0 (byte)          
          Conform Action: pass                                                  
          Yellow Action: pass                                                  
          Exceed Action: discard                                               
          Color-aware: no                                                       
                                                                                
      Classifier: cin2 Source service-group: s_1m Precedence: 3                 
        Behavior: b_s_1m                                                        
        -none-                                                                  
                                                                                
      Classifier: cout2 Destination service-group: s_1m Precedence: 4           
        Behavior: b_s_1m                                                        
        -none-                                                                  
                                                                                
      Classifier: default-class Precedence: 65535                               
        Behavior: be                                                            
        -none-
Table 1 Description of the display traffic policy command output
Item Description
User Defined Traffic Policy Information

Indicates information about the user-defined traffic policy.

Policy

Indicates the name of a traffic policy.

Precedence

Specifies the precedence of a classifier.

Committed Access Rate

Indicates the CAR, including:

  • the CIR in kbit/s.
  • the PIR in kbit/s.
  • the CBS in bytes.
  • the PBS in bytes.
Conform Action

Indicates the action to be taken on the packets when the traffic reaches the CIR. The default action is pass.

Yellow Action

Indicates the action to be taken on the packets when the traffic reaches the PIR. The default action is pass.

Exceed Action

Indicates the action to be taken on the packets when the traffic rate exceeds the PIR. The default action is discard.

Unshare-mode

Indicates the unshared attribute of a policy.

Source user-group

Indicates the source user-group name.

Description

Describes the usage of a policy.

Step

Indicates the value of the step between sub-policies, and the shared attribute of a policy.

Classifier

Indicates the name of a traffic classifier.

Behavior

Indicates the name of a traffic behavior.

Marking

Indicates the information about the re-marking actions.

Total

Indicates the total number of traffic policies that can be configured.

Free

Indicates the number of traffic policies that is free to configure.

Used

Number of traffic policies that have been configured.

Color-aware

Indicates the color-aware mode.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >