H3C S12500R Ethernet Switch Router Series Config Examples-Release 36xx-6W100

HomeSupportSwitchesS12500R SeriesConfigure & DeployConfiguration ExamplesH3C S12500R Ethernet Switch Router Series Config Examples-Release 36xx-6W100
Table of Contents
Related Documents
30-Priority Mapping and Queue Scheduling Configuration Examples

 

H3C S12500R Device Router Series

Priority Mapping and Queue Scheduling Configuration Examples

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2021 New H3C Technologies Co., Ltd. All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.

Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.

The information in this document is subject to change without notice.

 



Introduction

This document provides examples for configuring priority mapping and queue scheduling profiles.

Prerequisites

The configuration examples in this document were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

This document assumes that you have basic knowledge of priority mapping and queue scheduling profiles.

Example: Configuring priority mapping and queue scheduling

Network configuration

As shown in Figure 1, the Internet-accessing traffic includes the following types: HTTP, FTP, and Email, with the DSCP values 33, 35, and 27, respectively.

Configure priority mapping and queue scheduling to meet the following requirements:

·     Access to the internal server farm—The traffic from the Administration department takes priority over the traffic from the R&D department. When congestion occurs, they are scheduled at a ratio of 2:1.

·     Access to the Internet—The traffic from the Administration department takes priority over the traffic from the R&D department. When congestion occurs, the traffic from the Administration department is scheduled preferentially. The traffic from the R&D department is scheduled when no traffic from the Administration department exists. The three types of Internet-accessing traffic are transmitted in the following priority order: HTTP > FTP > Email. When congestion occurs, the three types of traffic are transmitted at a ratio of 2:1:1.

Figure 1 Network diagram

 

Analysis

Priority configuration for the internal network traffic

To meet the network requirements, you must perform the following tasks:

·     For packets from the two departments to be marked with different 802.1p priorities, configure different port priority values for the interfaces connected to the two departments.

·     Because the 802.1p priorities are carried in VLAN tags, you must configure HundredGigE 1/0/1 on Device C to send packets carrying VLAN tags. This example uses the port link type trunk.

·     To make the marked 802.1p priority actually affect the packet transmission, configure trusting the 802.1p priorities of received packets on all input interfaces along the transmission path.

·     To schedule packets from different queues at the specified ratio when congestion occurs, enable WRR queuing and configure different weights for queues.

Priority configuration for the Internet traffic

To meet the network requirements, you must perform the following tasks:

·     To completely prioritize the traffic from the Administration department when the interface is congested in the outbound direction, perform the following tasks:

¡     Configure SP queuing on the interface.

¡     Assign the traffic from the Administration department to a higher-priority queue.

·     To determine the transmission priority based on the upper-layer protocols, configure trusting the DSCP values on the interface, so that the interface can enqueue packets based on the DSCP values.

·     To assign packets with DSCP value 33 to a higher-priority queue, modify the DSCP-to-802.1p priority mapping table to map DSCP value 33 to a higher 802.1p priority value than the default. By default, DSCP values 33, 35, 27 are mapped to local precedence values 4, 4, and 3, respectively, based on the DSCP-to-802.1p priority mapping table and the 802.1p-to-local priority mapping table.

·     To schedule packets from different queues at the specified ratio when congestion occurs, enable WRR queuing and configure different weights for queues.

Software versions used

This configuration example was created and verified on Release 3606.

Restrictions and guidelines

By default, interfaces on the device are disabled (in ADM or Administratively Down state). To have an interface operate, you must use the undo shutdown command to enable that interface.

Procedures

Configuring transmission priorities for the internal network traffic

1.     Configure Device C:

# Create VLANs 10 and 20.

<DeviceC> system-view

[DeviceC] vlan 10

[DeviceC-vlan10] quit

[DeviceC] vlan 20

[DeviceC-vlan20] quit

# Assign interface HundredGigE 1/0/2 to VLAN 10, and set the port priority to 6 for the interface. This enables the traffic from the Administration department to be marked with 802.1p priority value 6.

[DeviceC] interface hundredgige 1/0/2

[DeviceC-HundredGigE1/0/2] port link-mode bridge

[DeviceC-HundredGigE1/0/2] port access vlan 10

[DeviceC-HundredGigE1/0/2] qos priority 6

[DeviceC-HundredGigE1/0/2] quit

# Assign interface HundredGigE 1/0/3 to VLAN 20, and set the port priority to 4 for the interface. This enables the traffic from the R&D department to be marked with 802.1p priority value 4.

[DeviceC] interface hundredgige 1/0/3

[DeviceC-HundredGigE1/0/3] port link-mode bridge

[DeviceC-HundredGigE1/0/3] port access vlan 20

[DeviceC-HundredGigE1/0/3] qos priority 4

[DeviceC-HundredGigE1/0/3] quit

# Configure interface HundredGigE 1/0/1 as a trunk port, assign the interface to VLAN 10 and VLAN 20, and remove the interface from VLAN 1.

[DeviceC] interface hundredgige 1/0/1

[DeviceC-HundredGigE1/0/1] port link-mode bridge

[DeviceC-HundredGigE1/0/1] port link-type trunk

[DeviceC-HundredGigE1/0/1] port trunk permit vlan 10 20

[DeviceC-HundredGigE1/0/1] undo port trunk permit vlan 1

[DeviceC-HundredGigE1/0/1] quit

2.     Configure Device B:

# Create VLANs 10, 20, 30, and 40.

<DeviceB> system-view

[DeviceB] vlan 10

[DeviceB-vlan10] quit

[DeviceB] vlan 20

[DeviceB-vlan20] quit

[DeviceB] vlan 30

[DeviceB-vlan30] quit

[DeviceB] vlan 40

[DeviceB-vlan40] quit

# Configure interface HundredGigE 1/0/1 as a trunk port.

[DeviceB] interface hundredgige 1/0/1

[DeviceB-HundredGigE1/0/1] port link-mode bridge

[DeviceB-HundredGigE1/0/1] port link-type trunk

# Assign interface HundredGigE 1/0/1 to VLANs 10 and 20.

[DeviceB-HundredGigE1/0/1] port trunk permit vlan 10 20

# Remove interface HundredGigE 1/0/1 from VLAN 1.

[DeviceB-HundredGigE1/0/1] undo port trunk permit vlan 1

# Configure HundredGigE 1/0/1 to trust the 802.1p priority of received packets. Based on the 802.1p-to-local priority mapping table, traffic with 802.1p priority 4 is assigned to queue 4, and traffic with 802.1p priority 6 is assigned to queue 6.

[DeviceB-HundredGigE1/0/1] qos trust dot1p

[DeviceB-HundredGigE1/0/1] quit

# Assign interface HundredGigE 1/0/20 to VLAN 30.

[DeviceB] interface hundredgige 1/0/20

[DeviceB-HundredGigE1/0/20] port link-mode bridge

[DeviceB-HundredGigE1/0/20] port access vlan 30

# Create VLAN interfaces and configure routing protocols to enable communication between network segments. For more information about these configurations, see H3C S12500R Device Router Series Layer 3—IP Routing Configuration Guide-R3606.

# Enable byte-count WRR on interface HundredGigE 1/0/20. By default, byte-count WRR is enabled.

[DeviceB-HundredGigE1/0/20] qos wrr byte-count

# Configure the weight of queue 6 as two times that of queue 4. In this example, set the weight value to 4 for queue 6 and 2 for queue 4.

[DeviceB-HundredGigE1/0/20] qos wrr 4 group 1 byte-count 2

[DeviceB-HundredGigE1/0/20] qos wrr 6 group 1 byte-count 4

[DeviceB-HundredGigE1/0/20] quit

# Assign interface HundredGigE 1/0/10 to VLAN 40.

[DeviceB] interface hundredgige 1/0/10

[DeviceB-HundredGigE1/0/10] port link-mode bridge

[DeviceB-HundredGigE1/0/10] port access vlan 40

[DeviceB-HundredGigE1/0/10] quit

Configuring transmission priorities for the traffic to the Internet

1.     Configure Device B:

# Enable SP queuing on interface HundredGigE 1/0/10.

[DeviceB] interface hundredgige 1/0/10

[DeviceB-HundredGigE1/0/10] qos sp

2.     Configure Device A:

# Configure interface HundredGigE 1/0/1 to trust the DSCP values of received packets.

[DeviceA] interface hundredgige 1/0/1

[DeviceA-HundredGigE1/0/1] qos trust dscp

# Modify the DSCP-to-802.1p priority mapping table to map DSCP value 33 to 802.1p priority 5 (queue 5).

[DeviceA] qos map-table dscp-dot1p

[DeviceA-maptbl-dscp-dot1p] import 33 export 5

[DeviceA-maptbl-dscp-dot1p] quit

The configuration assigns the three types of packets (HTTP, FTP, and Email) to queues 5, 4, and 3, respectively.

# Enable byte-count WRR on interface HundredGigE 1/0/2. By default, byte-count WRR is enabled.

[DeviceA] interface hundredgige 1/0/2

[DeviceA-HundredGigE1/0/2] qos wrr byte-count

# Set the weights of the three queues at a ratio of 2:1:1 (6, 3, and 3 in this example).

[DeviceA-HundredGigE1/0/2] qos wrr 5 group 1 byte-count 6

[DeviceA-HundredGigE1/0/2] qos wrr 4 group 1 byte-count 3

[DeviceA-HundredGigE1/0/2] qos wrr 3 group 1 byte-count 3

Verifying the configuration

Verify the configuration on any interface on any device, for example, HundredGigE 1/0/2 on Device A.

# Verify the WRR configuration.

[DeviceA] display qos queue wrr interface hundredgige 1/0/2

Interface: HundredGigE1/0/2

 Output queue: Weighted Round Robin queuing

 Queue ID     Queue name     Group     Byte count

 ---------------------------------------------------

 0            be             1         1

 1            af1            1         2

 2            af2            1         3

 3            af3            1         3

 4            af4            1         3

 5            ef             1         6

 6            cs6            1         7

 7            cs7            1         8

 Output queue: Weighted Round Robin queuing

 Queue ID     Queue name     Group     Byte count

 ---------------------------------------------------

 0            be             1         1

 1            af1            1         2

 2            af2            1         3

 3            af3            1         3

 4            af4            1         3

 5            ef             1         6

 6            cs6            1         13

 7            cs7            1         15

Configuration files

·     Device A:

#

qos map-table dscp-dot1p

 import 33 export 5

#

interface HundredGigE1/0/1

 port link-mode bridge

 qos trust dscp

#

interface HundredGigE1/0/2

 port link-mode bridge

 qos wrr af3 group 1 byte-count 3

 qos wrr af4 group 1 byte-count 3

 qos wrr ef group 1 byte-count 6

#

return

·     Device B:

#

vlan 10

#

vlan 20

#

vlan 30

#

vlan 40 

#

interface HundredGigE1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 20

 qos trust dot1p

#

interface HundredGigE1/0/10

 port link-mode bridge

 port access vlan 40

#

interface HundredGigE1/0/20

 port link-mode bridge

 port access vlan 30

 qos wrr af4 group 1 byte-count 2

 qos wrr cs6 group 1 byte-count 4

#

return

·     Device C:

#

vlan 10

#

vlan 20

#

interface HundredGigE1/0/1

 port link-mode bridge

 port link-type trunk

 undo port trunk permit vlan 1

 port trunk permit vlan 10 20

#

interface HundredGigE1/0/2

 port link-mode bridge

 port access vlan 10

 qos priority 6

#

interface HundredGigE1/0/3

 port link-mode bridge

 port access vlan 20

 qos priority 4

#

return

Related documentation

·     H3C S12500R Switch Router Series ACL and QoS Command Reference-R3606

·     H3C S12500R Switch Router Series ACL and QoS Configuration Guide-R3606

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网