• No results found

Configuring Traffic Management

1.16 Configuring QoS

1.16.1 Configuring Traffic Management

This topic describes how to configure traffic management on the MA5600.

Overview

The MA5600 supports traffic management for the inbound and outbound traffic streams of the system. Traffic management can be implemented based on the following two granularities: l Based on traffic profile

NOTE

For details on configuring traffic classification, see 3.4 Creating an xDSL Service Port.

In addition, the MA5600 supports rate limit on the Ethernet port and traffic suppression on inbound broadcast packets and unknown (multicast or unicast) packets.

Configuring Traffic Management Based on Traffic Profile

This topic describes how to configure traffic management based on traffic profile. When configuring a service port, you need to bind an IP traffic profile to the service port and manage the traffic of the service port through the traffic parameters defined in the profile.

Background Information

Traffic management based on service port is implemented by creating an IP traffic profile and then binding the IP traffic profile when creating the service port.

l The system has seven default IP traffic profiles with the IDs of 0-6. You can run the display traffic table command to query the traffic parameters of the default traffic profiles. l It is recommended that you use the default traffic profiles. A new IP traffic profile is created

only when the default traffic profiles cannot meet the requirements.

Table 1-16 lists the traffic parameters defined in the IP traffic profiles.

Table 1-16 Traffic parameters defined in the IP traffic profiles

Item Parameter Description

CAR CAR: committed access rate

Priority policies The priority policies are classified into the following two types: l user-cos: Copy the 802.1p priority in the outer VLAN tag of the

packet to the 802.1p priority in the VLAN tag of the outbound packet.

l user-tos: Copy the ToS priority in the VLAN tag of the packet to the 802.1p priority in the VLAN tag of the outbound packet.

Scheduling policies

There are two types of scheduling policies, which are available only to the inbound packet:

l Tag-In-Package: The system performs scheduling according to the 802.1p priority of the packet.

l Local-Setting: It is the local priority. That is, the system performs scheduling according to the 802.1p priority specified in the traffic profile bound to the traffic stream.

NOTE

"Outbound" (upstream) in this document refers to the direction from the user side to the network side, and "inbound" (downstream) refers to the direction from the network side to the user side.

Procedure

Step 1 Run the display traffic table command to query whether there is a proper traffic profile in the system.

Check whether an existing traffic profile meets the planned traffic management parameters, priority policy, and scheduling policy to confirm the index of the traffic profile to be used. If a proper traffic profile does not exist in the system, create an IP traffic profile.

Step 2 Run the traffic table command to create a traffic profile. The following is a detailed description:

l The traffic management parameters must contain at least CAR, which must be assigned with a value.

l Keyword priority must be entered to set the outer 802.1p priority of the packet. Two options are available for setting the priority policy:

–Enter a value in the range of 0-7 to specify a priority for the packet.

–If the priority of the user-side packet is copied according to user-cos or user-tos, you need to enter the default 802.1p priority of the packet (a value in the range of 0-7). If the user- side packet does not carry a priority, the specified default 802.1p priority of the packet is adopted as the priority of the outbound packet.

l Keyword priority-policy must be entered to specify a scheduling policy for the inbound packet. For details about the scheduling policies, see Table 1-16.

Step 3 Run the service port command to bind a proper traffic profile. ----End

Example

Assume that the CAR is 2048 kbit/s, 802.1p priority of the outbound packet is 6, and the scheduling policy of the inbound packet is Tag-In-Package. To add such an IP traffic profile, do as follows:

huawei(config)#traffic table ip car 2048 priority 6 priority-policy tag-In-Package Create traffic descriptor record successfully

--- TD Index : 7

Priority : 6 Priority policy : tag-pri CAR : 2048 kbps TD Type : NoClpNoScr Service category : ubr Referenced Status: not used EnPPDISC : on EnEPDISC : on Clp01Pcr : 2048 kbps

--- huawei(config)#display traffic table index 7

--- TD Index : 7

Priority : 6 Priority policy : tag-pri CAR : 2048 kbps TD Type : NoClpNoScr Service category : ubr Referenced Status: not used EnPPDISC : on EnEPDISC : on Clp01Pcr : 2048 kbps

Configuring Rate Limitation on an Upstream Port

This topic describes how to configure upstream rate limitation on a specified Ethernet port.

Background Information

l The MA5600 supports the rate limitation on only the Ethernet upstream port and does not support the rate limitation on service ports.

l The limited rate must be an integer multiple of 64. l Traffic streams exceeding the specified rate are discarded.

Procedure

Step 1 In the global config mode, run the line-rate command to configure upstream rate limitation on a specified Ethernet port.

The main parameters are as follows:

l target-rate: Indicates the limited rate of the port, in the unit of kbit/s. l port: Indicates the shelf ID/slot ID/port ID.

Step 2 You can run the display qos-info line-rate port command to query the configured rate limitation on the specified Ethernet port

----End

Example

To limit the rate of Ethernet port 0/7/0 to 6400 kbit/s, do as follows: huawei(config)#line-rate 6400 port 0/7/0

huawei(config)#display qos-info line-rate port 0/7/0

line-rate: port 0/7/0: Line rate: 6400 Kbps

Configuring the Traffic Suppression for the Upstream Port

This topic describes how to configure the traffic suppression for the upstream port. The purpose of the traffic suppression for the upstream port is to ensure the provisioning of the normal service of system users by suppressing the broadcast, unknown multicast, and unknown unicast packets received by the system.

Background Information

Traffic suppression can be configured based on a board or based on the port on a board.

Procedure

l Select one of the following modes according to the board configured in the system: – Run the interface scu command to enter the SCU mode.

l Query the thresholds of traffic suppression.

Run the display traffic-suppress all command to query the thresholds of traffic suppression.

l Run the traffic-suppress command to suppress the traffic of the port on the ETH or SCU board.

The main parameters are as follows:

broadcast: Suppresses the broadcast traffic.

multicast: Suppresses the unknown multicast traffic.

unicast: Suppresses the unknown unicast traffic.

value: Indicates the index of the traffic suppression level. You can run the display

traffic-suppress all command to query this index value. ----End

Example

To suppress the broadcast packets according to traffic suppression level 8 on port 0 on the SCU board in slot 0/7, do as follows:

huawei(config)#interface scu 0/7

huawei(config-if-scu-0/7)#display traffic-suppress all Traffic suppression ID definition:

--- NO. Min bandwidth(kbps) Max bandwidth(kbps) Package number(pps) /Jumbo frame enable(kbps)

--- 1 6 145 / 884 12 2 12 291 / 1769 24 3 24 582 / 3538 48 4 48 1153 / 7004 95 5 97 2319 / 14082 191 6 195 4639 / 28164 382 7 390 9265 / 56254 763 8 781 18531 / 112508 1526 9 1562 37063 / 225017 3052 10 3125 74126 / 450035 6104 11 6249 148241 / 899997 12207 12 12499 296483 / 1799995 24414 --- --- PortID Broadcast_index Multicast_index Unicast_index

--- 0 7 -- 7 1 7 -- 7 2 7 -- 7 3 7 -- 7 4 7 -- 7 5 7 -- 7 --- huawei(config-if-scu-0/7)#traffic-suppress all broadcast value 8

huawei(config-if-scu-0/7)#display traffic-suppress 0 Traffic suppression ID definition:

--- NO. Min bandwidth(kbps) Max bandwidth(kbps) Package number(pps) /Jumbo frame enable(kbps)

--- 1 6 145 / 884 12 2 12 291 / 1769 24 3 24 582 / 3538 48 4 48 1153 / 7004 95

5 97 2319 / 14082 191 6 195 4639 / 28164 382 7 390 9265 / 56254 763 8 781 18531 / 112508 1526 9 1562 37063 / 225017 3052 10 3125 74126 / 450035 6104 11 6249 148241 / 899997 12207 12 12499 296483 / 1799995 24414 --- Current traffic suppression ID of broadcast : 8

Current traffic suppression ID of multicast :-- Current traffic suppression ID of unicast : 7

Related documents