No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CX11x, CX31x, CX710 (Earlier Than V6.03), and CX91x Series Switch Modules V100R001C10 Configuration Guide 12

The documents describe the configuration of various services supported by the CX11x&CX31x&CX91x series switch modules The description covers configuration examples and function configurations.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuration Examples

Configuration Examples

This section provides several configuration examples of congestion avoidance and congestion management.

Example for Configuring Congestion Avoidance and Congestion Management

Networking Requirements

Users can obtain the voice, video, and data service information from a server using a switch. When a large volume of data is sent from the server to hosts, congestion may occur on the switch because the rate on the inbound interface is greater than the rate on the outbound interface.

The voice, video, and data services are in descending order of priority. Users want to have differentiated services provided so that high-priority services are first processed. Users also want to prevent congestion on the outbound interfaces. The following tables list parameters to be configured.

Table 13-15 Congestion avoidance parameters

Service Type

Color

Lower Drop Threshold (%)

Upper Drop Threshold (%)

Drop Probability

Voice

Green

80

100

10

Video

Yellow

60

80

20

Data

Red

40

60

40

Table 13-16 Congestion management parameters

Service Type

CoS

Scheduling

Weight

Voice

EF

PQ

-

Video

AF3

WRR

100

Data

AF1

WRR

50

Figure 13-32 Networking diagram for configuring congestion avoidance and congestion management

Configuration Roadmap
The configuration roadmap is as follows:
  1. Map 802.1p priorities of voice, data, and video service packets to PHBs and colors to classify packets.

  2. Configure a WRED drop profile that contains drop parameters of packets of different colors, including the upper drop threshold, lower drop threshold, and drop probability. In this way, congestion is relived and resolved.

  3. Set scheduling parameters such as the scheduling mode and weight of each CoS to implement differentiated scheduling for queues of different priorities.

Procedure

  1. Configure VLANs for each interface so that devices can communicate with each other at the link layer.

    # Configure 10GE1/17/1 and 10GE1/17/2 on Switch Module as access interfaces (by default) and 10GE1/17/3 as a trunk interface. Add 10GE1/17/1 to VLAN 100, 10GE1/17/2 to VLAN 200, and 10GE1/17/3 to VLAN 100 and VLAN 200.

    <HUAWEI> system-view
    [~HUAWEI] sysname Switch Module
    [*HUAWEI] commit
    [~Switch Module] vlan batch 100 200
    [*Switch Module] interface 10ge 1/17/1
    [*Switch Module-10GE1/17/1] port default vlan 100
    [*Switch Module-10GE1/17/1] quit
    [*Switch Module] interface 10ge 1/17/2
    [*Switch Module-10GE1/17/2] port default vlan 200
    [*Switch Module-10GE1/17/2] quit
    [*Switch Module] interface 10ge 1/17/3
    [*Switch Module-10GE1/17/3] port link-type trunk
    [*Switch Module-10GE1/17/3] port trunk allow-pass vlan 100 200
    [*Switch Module-10GE1/17/3] quit
    [*Switch Module] commit
    

  2. Configure priority mappings based on traffic classification.

    # Create DiffServ domain ds1. In the DiffServ domain, map 802.1p priorities 6, 5, 2 to PHBs EF, AF3, and AF1 and to colors green, yellow, and red.

    [~Switch Module] diffserv domain ds1
    [*Switch Module-dsdomain-ds1] 8021p-inbound 6 phb ef green
    [*Switch Module-dsdomain-ds1] 8021p-inbound 5 phb af3 yellow
    [*Switch Module-dsdomain-ds1] 8021p-inbound 2 phb af1 red
    [*Switch Module-dsdomain-ds1] quit
    

    # Bind DiffServ domain ds1 to 10GE1/17/1 and 10GE1/17/2 of the Switch Module.

    [*Switch Module] interface 10ge 1/17/1
    [*Switch Module-10GE1/17/1] trust upstream ds1
    [*Switch Module-10GE1/17/1] quit
    [*Switch Module] interface 10ge 1/17/2
    [*Switch Module-10GE1/17/2] trust upstream ds1
    [*Switch Module-10GE1/17/2] quit
    [*Switch Module] commit
    

  3. Configure congestion avoidance.

    # Create WRED drop profile wred1 on the Switch Module and set scheduling parameters in WRED drop profile wred1.

    [~Switch Module] drop-profile wred1
    [*Switch Module-drop-wred1] color green low-limit 80 high-limit 100 discard-percentage 10
    [*Switch Module-drop-wred1] color yellow low-limit 60 high-limit 80 discard-percentage 20
    [*Switch Module-drop-wred1] color red low-limit 40 high-limit 60 discard-percentage 40
    [*Switch Module-drop-wred1] quit
    

    # Apply WRED drop profile wred1 to queues of 10GE1/17/3 on the Switch Module. For details about mappings between CoS values (internal priorities) and queues, see Table 13-6 in Default Configuration.

    [*Switch Module] interface 10ge 1/17/3
    [*Switch Module-10GE1/17/3] qos queue 5 wred wred1
    [*Switch Module-10GE1/17/3] qos queue 3 wred wred1
    [*Switch Module-10GE1/17/3] qos queue 1 wred wred1
    [*Switch Module-10GE1/17/3] quit
    [*Switch Module] commit
    

  4. Configure congestion management.

    # Set scheduling parameters of each queue on the outbound interface 10GE1/17/3 of the Switch Module.

    [~Switch Module] interface 10ge 1/17/3
    [~Switch Module-10GE1/17/3] qos pq 5 to 7 wrr 0 to 4
    [*Switch Module-10GE1/17/3] qos queue 3 wrr weight 100
    [*Switch Module-10GE1/17/3] qos queue 1 wrr weight 50
    [*Switch Module-10GE1/17/3] quit
    [*Switch Module] commit
    [~Switch Module] quit

  5. Verify the configurations.

    # Check the configuration of DiffServ domain ds1.

    <Switch Module> display diffserv domain ds1
    Diffserv domain name:ds1
     8021p-inbound 0 phb af4 green
     8021p-inbound 1 phb af1 green
     8021p-inbound 2 phb af1 red
     8021p-inbound 3 phb af1 green
     8021p-inbound 4 phb af4 green
     8021p-inbound 5 phb af3 yellow
     8021p-inbound 6 phb ef green
     8021p-inbound 7 phb cs7 green
     8021p-outbound be green map 0
     8021p-outbound be yellow map 0
     8021p-outbound be red map 0
    ¡­¡­
    

    # Check the configuration of WRED drop profile wred1.

    <Switch Module> display drop-profile wred1
    Drop-profile[3]: wred1
    Color     Low-limit   High-limit  Discard-percentage
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Green     80          100         10
    Yellow    60          80          20
    Red       40          60          40
    Non-tcp   100         100         100
    -----------------------------------------------------------------
    

    # Check the configuration of 10GE1/17/3.

    <Switch Module> display qos configuration interface 10GE 1/17/3
     interface 10GE1/17/3
     --------------------------------------------------------------------------
     trust flag                  | outer 8021p
     ds name                     | default
     dei enable                  | disable
     port priority               | 0
     phb marking                 | enable
     port wred                   | --     
     port lr                     | outbound, cir = --, cbs = --
     port car name               | --
     --------------------------------------------------------------------------
     queue-index | configuration |
     --------------------------------------------------------------------------
     0           | shaping       | cir = --, cbs = --
                 |               | pir = --, pbs = --
                 | schedule      | wrr, weight = 1
                 | wred          | --
     --------------------------------------------------------------------------
     1           | shaping       | cir = --, cbs = --
                 |               | pir = --, pbs = --
                 | schedule      | wrr, weight = 50
                 | wred          | wred1
     --------------------------------------------------------------------------
     2           | shaping       | cir = --, cbs = --
                 |               | pir = --, pbs = --
                 | schedule      | wrr, weight = 1
                 | wred          | --
     --------------------------------------------------------------------------
     3           | shaping       | cir = --, cbs = --
                 |               | pir = --, pbs = --
                 | schedule      | wrr, weight = 100
                 | wred          | wred1
     --------------------------------------------------------------------------
     4           | shaping       | cir = --, cbs = --
                 |               | pir = --, pbs = --
                 | schedule      | wrr, weight = 1
                 | wred          | --
     --------------------------------------------------------------------------
     5           | shaping       | cir = --, cbs = --
                 |               | pir = --, pbs = --
                 | schedule      | pq
                 | wred          | wred1
     --------------------------------------------------------------------------
     6           | shaping       | cir = --, cbs = --
                 |               | pir = --, pbs = --
                 | schedule      | pq
                 | wred          | --
     --------------------------------------------------------------------------
     7           | shaping       | cir = --, cbs = --
                 |               | pir = --, pbs = --
                 | schedule      | pq
                 | wred          | --
     --------------------------------------------------------------------------

Configuration Files
  • Configuration file of the Switch Module
    #
    sysname Switch Module
    #
    drop-profile wred1
     color green low-limit 80 high-limit 100 discard-percentage 10
     color yellow low-limit 60 high-limit 80 discard-percentage 20
     color red low-limit 40 high-limit 60 discard-percentage 40
    #
    vlan batch 100 200
    #
    diffserv domain ds1
     8021p-inbound 2 phb af1 red
     8021p-inbound 5 phb af3 yellow
     8021p-inbound 6 phb ef green
    #
    interface 10GE1/17/1
     port default vlan 100
     trust upstream ds1
    #
    interface 10GE1/17/2
     port default vlan 200
     trust upstream ds1
    #
    interface 10GE1/17/3
     port link-type trunk
     port trunk allow-pass vlan 100 200
     qos queue 1 wred wred1
     qos queue 3 wred wred1
     qos queue 5 wred wred1
     qos wrr 0 to 4 
     qos queue 1 wrr weight 50 
     qos queue 3 wrr weight 100 
    #
    return
    
Translation
Download
Updated: 2019-08-09

Document ID: EDOC1000041694

Views: 59615

Downloads: 3623

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next