Figure 2-5 Networking diagram for configuring traffic shaping
802.1p = 6
802.1p = 5
Core
network
GE 1/0/1
GE 2/0/1
Phone
TV
802.1p = 2
PC
LSW Switch Router
Configuration Roadmap
The configuration roadmap is as follows:
1. Configure priority mapping based on simple traffic classification to map priorities of
packets to PHBs.
2. Configure traffic shaping on an interface to limit the bandwidth of the interface.
3. Configure traffic shaping in an interface queue to limit the CIRs of voice, video, and data
services.
Data Preparation
To complete the configuration, you need the following data:
l 802.1p priorities being 6, 5, and 2 mapped to PHBs
l Rate for traffic shaping on an interface
l Rate for traffic shaping in each interface queue
Procedure
Step 1 Create VLANs and configure interfaces.
# Create VLAN 10.
<Quidway> system-view
[Quidway] sysname Switch
[Switch] vlan batch 10
# Configure the type of GE 1/0/1 and GE 2/0/1 as trunk, and then add GE1/0/1 and GE2/0/1 to
VLAN 10.
[Switch] interface gigabitethernet1/0/1
[Switch-GigabitEthernet1/0/1] port link-type trunk
[Switch-GigabitEthernet1/0/1] port trunk allow-pass vlan 10
[Switch-GigabitEthernet1/0/1] quit
[Switch] interface gigabitethernet2/0/1
[Switch-GigabitEthernet2/0/1] port link-type trunk
[Switch-GigabitEthernet2/0/1] port trunk allow-pass vlan 10
[Switch-GigabitEthernet2/0/1] quit
Quidway S7700 Smart Routing Switch
Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
73