Example for Configuring Congestion Management on the S2700EI
Networking Requirements
The Switch is connected to the router through GE 0/0/1. The 802.1p priorities of voice, video, and data services from the Internet are 7, 5, and 2, and these services can reach residential users through the router and Switch, as shown in Figure 4-1. To reduce the impact of network congestion and ensure bandwidth for high-priority and low-delay services, you need to set the related parameters according to the following table.
Configuration Roadmap
Configure the VLAN for each interface so that devices can communicate with each other.
Configure interfaces to trust 802.1p priorities of packets.
Set scheduling parameters of queues.
Procedure
- Configure the VLAN for each interface so that devices can communicate with each other.
<Quidway> system-view [Quidway] sysname Switch [Switch] vlan batch 10 20 30 [Switch] interface ethernet 0/0/1 [Switch-Ethernet0/0/1] port link-type trunk [Switch-Ethernet0/0/1] port trunk allow-pass vlan 10 20 30 [Switch-Ethernet0/0/1] quit [Switch] interface ethernet 0/0/2 [Switch-Ethernet0/0/2] port link-type trunk [Switch-Ethernet0/0/2] port trunk allow-pass vlan 10 20 30 [Switch-Ethernet0/0/2] quit [Switch] interface gigabitethernet 0/0/1 [Switch-GigabitEthernet0/0/1] port link-type trunk [Switch-GigabitEthernet0/0/1] port trunk allow-pass vlan 10 20 30 [Switch-GigabitEthernet0/0/1] quit
- Configure interfaces to trust 802.1p priorities of packets.
[Switch] interface gigabitethernet 0/0/1 [Switch-GigabitEthernet0/0/1] trust 8021p [Switch-GigabitEthernet0/0/1] quit
- Configure congestion management.
# Set the scheduling mode of each queue on all interfaces of the Switch.
[Switch] qos queue 3 wrr weight 0 [Switch] qos queue 2 wrr weight 20 [Switch] qos queue 1 wrr weight 10
- Verify the configuration.
# View scheduling parameters of the interface queue.
[Switch] display this Current sred configuration: qos queue 1 wrr weight 10 qos queue 2 wrr weight 20 qos queue 3 wrr weight 0
Configuration Files
- Configuration file of the Switch
# sysname Switch # vlan batch 10 20 30 # qos queue 1 wrr weight 10 qos queue 2 wrr weight 20 qos queue 3 wrr weight 0 # interface Ethernet0/0/1 port link-type trunk port trunk allow-pass vlan 10 20 30 # interface Ethernet0/0/2 port link-type trunk port trunk allow-pass vlan 10 20 30 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 10 20 30 trust 8021p # return