Function Description
QoS refers to quality of service. The settings of different QoS parameters, such as service availability, throughput, time delay, jitter, and loss rate, provide users with high quality services. QoS processes the packets filtered by the ACL according to the requirements. The MA5680T/MA5683T/MA5608T can ensure high QoS for user services based on the traffic rule classification, measurement and scheduling policies.Function
The car-port cos-group command is used to limit the rate of
the specified class of service (CoS) group on a GEM port. After this command is
successfully executed, if the CoS of the packets passing the GEM port belongs to
the specified CoS group, the system limits the rate of packets using the traffic
profile referenced by the CoS group.
The undo car-port cos-group command is used to cancel rate limitation of the specified CoS group on a GEM port.
The undo car-port cos-group command is used to cancel rate limitation of the specified CoS group on a GEM port.
Format
car-port portid gemport
gemportid cos-group group-id
undo car-port portid gemport gemportid [ cos-group group-id ]
undo car-port portid gemport gemportid [ cos-group group-id ]
Parameters
Parameter | Description | Value |
---|---|---|
portid | Indicates the port ID. To set the rate limitation for a specified port, use this parameter. | Please see Differences Between Shelves. |
gemport gemportid | Indicates the GEM port ID. To configure a specified GEM port, use this parameter. | Numeral type. Range: 128-3999. |
inbound | Indicates the inbound direction of a port. The direction is from the user access side to the network side in the case of user port or cascade port; the direction is from the network side to the user access side in the case of network port. | Numeral type. Range: 0-1023. |
outbound |
Indicates the outbound direction of a port. The direction is from
the network side to the user access side in the case of user port or cascade
port; the direction is from the user access side to the network side in the case
of network port.
NOTE:
The outbound parameter takes effect only on
the known unicast packets.
|
Numeral type. Range: 0-1023. |
traffic-table index | Indicates the index key of the traffic profile. To set the traffic profile by index, use this parameter. | - |
ip-traffic-table-index | Indicates the index of the traffic profile. To set the traffic profile by index, use this parameter. | Numeral type. Range: 0-1023. |
traffic-table name ip-traffic-table-name | Indicates the name of the traffic profile. To set the traffic profile by name, use this parameter. |
Character string type, a string of 1-32 characters. The 92 characters allowed by the system are as follows:
|
cos-group group-id | Indicates the index of the CoS group. | Numeral type. Range: 0-7. |
Modes
GPON mode
Level
Operator level
Usage Guidelines
- Run the config command to enter global config mode, and then run the interface gpon command to enter GPON mode.
- When you need to limit the rate of packets with various
priorities, set these priorities into the same CoS group and then limit the rate
of the CoS group, do as follows:
- Run the traffic table ip command to configure the traffic profile.
- Run the cos-group-table command to set CoS combination in a CoS group profile.
- Run the car-mode command to set the CAR mode to port-based or priority-based.
- Run the car-port cos-group-table(profile-mode) or car-port cos-group-table(distributing-mode) command to bind a GEM port to a CoS group profile.
- Run the car-port cos-group(profile-mode) or car-port cos-group(distributing-mode) command to bind a CoS group to a traffic profile.
- The traffic profile can be used to limit the rate for the CoS group only after the GEM port is bound to the CoS-group profile. By default, a GEM port cannot be bound to a CoS group profile.
- If the CoS-based CAR is configured by running the car-port(profile-mode) or car-port(distributing-mode) command, existing configurations are deleted when a CoS group profile is bound. If a GEM port is bound to a CoS group profile, CoS-based CAR cannot be configured until the binding is deleted.
- Run the display car-port cos-group-table(profile-mode) or display car-port cos-group-table(distributing-mode) command to query binding between a GEM port and a CoS group profile.
Example
Assume that the index of the CoS group profile is 2 and the ID of the CoS
group is 2. To limit the rate of upstream or downstream packets with priorities
2 and 3 to be less than or equal to 2 Mbit/s on GEM port 1 of GPON port 0/3/0, do as follows:
huawei(config)#traffic table ip index 10 cir 2048 priority user-cos 2 priority-policy tag-In-package huawei(config)#cos-group-table { index<K> }:index { table-index<U><0,15> }:2 { cos0<K>|cos1<K>|cos2<K>|cos3<K>|cos4<K>|cos5<K>|cos6<K>|cos7<K> }:cos3 { groupid3<U><0,7> }:2 { <cr>|cos0<K>|cos1<K>|cos2<K>|cos4<K>|cos5<K>|cos6<K>|cos7<K> }: Command: cos-group-table index 2 cos3 2 huawei(config)#interface gpon 0/3 huawei(config-if-gpon-0/3)#car-mode port-cos huawei(config-if-gpon-0/3)#car-port { portid<U><0,7> }:0 { gemport<K> }:gemport { gemportid<U><128,3999> }:128 { cos-group-table<K>|cos-group<K>|cos<K> }:cos-group-table { table-index<U><0,15> }:2 Command: car-port 0 gemport 128 cos-group-table 2 huawei(config-if-gpon-0/3)#car-port { portid<U><0,7> }:0 { gemport<K> }:gemport { gemportid<U><128,3999> }:128 { cos-group-table<K>|cos-group<K>|cos<K> }:cos-group { group-id<U><0,7> }:2 { inbound<K> }:inbound { ip-traffic-table-index<U><0,1023>|traffic-table<K> }:10 { outbound<K> }:outbound { ip-traffic-table-index<U><0,1023>|traffic-table<K> }:10 Command: car-port 0 gemport 128 cos-group 2 inbound 10 outbound 10To cancel the rate limitation for packets with CoS-group index 5 on GEM port 128 of GPON port 0/4/0, do as follows:
huawei(config-if-gpon-0/3)#undo car-port { portid<U><0,7> }:0 { gemport<K> }:gemport { gemportid<U><128,3999> }:128 { <cr>|cos-group<K>|cos<K> }:cos-group { group-id<U><0,7> }:5 Command: undo car-port 0 gemindex 128 cos-group 5
System Response
- The system does not display any message after the command is executed successfully.
More blog:
No comments:
Post a Comment