Sunday, October 5, 2014

Comware QoS Policy




Follow these steps to configure and use a QoS policy:
1. Create a class and define a set of match criteria in class view.
2. Create a traffic behavior and define a set of QoS actions in traffic behavior view.
3. Create a policy and associate the traffic behavior with the class in policy view.
4. Apply the QoS policy.


1. Defining a class
# Create a class named AutoQoS-VoIP-Control-Trust and enter its view.
# Define a match criterion for class AutoQoS-VoIP-Control-Trust to match the packets with a DSCP value of 24 or 26.
[H3C] traffic classifier AutoQoS-VoIP-Control-Trust operator or
[H3C-classifier-AutoQoS-VoIP-Control-Trust] if-match dscp 24 26 (cs3 or af31)

# Create a class named Auto AutoQoS-VoIP-RTP-Trust and enter its view.
# Define a match criterion for class AutoQoS-VoIP-RTP-Trust to match the packets with a DSCP value of 46
[H3C] traffic classifier AutoQoS-VoIP-RTP-Trust
[H3C-classifier-AutoQoS-VoIP-RTP-Trust] if-match dscp 46 (ef)

2. Defining a traffic behavior
To define a traffic behavior, you must first create a traffic behavior name and then configure attributes in traffic behavior view. A behavior is a set of QoS actions.

# Create name remark_to_ef and Set the DSCP value of packets to 46 (ef)
[H3C] traffic behavior  remark_to_ef
[H3C-behavior-remark_to_ef] remark dscp 46

# Create name remark_to_cs3 and Set the DSCP value of packets to 26 (cs3)
[H3C] traffic behavior remark_to_cs3
[H3C-behavior-remark_to_cs3] remark dscp 26

3. Defining a policy

A policy defines the mapping between a class and a traffic behavior. In a policy, multiple class-to-traffic-behavior mappings can be configured, and these mappings are executed according to the order configured.
[H3C]qos policy AutoQoS-Police-CiscoPhone

[H3C-qospolicy-AutoQoS-Police-CiscoPhone]classifier AutoQoS-VoIP-Control-Trust behavior  remark_to_cs3

[H3C-qospolicy-AutoQoS-Police-CiscoPhone]classifier AutoQoS-VoIP-RTP-Trust behavior  remark_to_ef

4. Applying qos policy

VLAN
[H3C] qos vlan-policy AutoQoS-Police-CiscoPhone vlan 610 inbound

Interface
 [H3C]interface GigabitEthernet1/0/17
 [H3C-GigabitEthernet1/0/17]port link-type hybrid
 [H3C-GigabitEthernet1/0/17]undo port hybrid vlan 1
 [H3C-GigabitEthernet1/0/17]port hybrid vlan 610 tagged
 [H3C-GigabitEthernet1/0/17]port hybrid vlan 187 untagged
 [H3C-GigabitEthernet1/0/17]port hybrid pvid vlan 187
 [H3C-GigabitEthernet1/0/17]voice vlan mode auto
 [H3C-GigabitEthernet1/0/17]voice vlan 610 enable
 [H3C-GigabitEthernet1/0/17]qos apply policy AutoQoS-Police-CiscoPhone
 [H3C-GigabitEthernet1/0/17]qos trust dscp


Classifier
traffic classifier all-traffic operator and
 if-match any

Behavior
traffic behavior remark-dot1p-pri6
 remark dot1p 6

Policy
qos policy vlan-10
 classifier all-traffic behavior remark-dot1p-pri6

Apply Policy to VLAN
 [HP]qos vlan-policy vlan10 vlan 10 inbound
 [HP]qos vlan-policy vlan10 vlan 10 outbound



Classifier
traffic classifier vlan10-traffic operator and
 if-match customer-vlan-id 10

Behavior
traffic behavior remark-dot1p-pri6
 remark dot1p 6

Policy
qos policy vlan10
 classifier vlan4-traffic behavior remark-dot1p-pri6

Apply Policy to VLAN
 qos vlan-policy vlan10 vlan 10 inbound
 qos vlan-policy vlan10 vlan 10 outbound


 [HP]qos apply policy vlan10 global inbound
 [HP]qos apply policy vlan10 global outbound





Comware VoIP-QoS for Mitel & Cisco (non-Trust)






Search Duke

About the Author

My photo
Central Florida, United States