As shown in Figure 1, GE0/0/2 on SwitchA connects to the router. Department 1 can access the network through SwitchA and the router. Department 1 belongs to VLAN 100.
Department 1 requires better QoS guarantee. The 802.1p priority of packets from department 1 is 0. In the default DiffServ domain, 802.1p priority 0 of the incoming VLAN packets needs to be mapped to PHB AF4. By default, the 802.1p priority of outgoing VLAN packets with the PHB of AF4 is 4. Therefore, when leaving SwitchA, the 802.1p priority of packets sent from department 1 is 4.
# Create VLAN 100.
<HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] vlan batch 100
# Configure GE0/0/1 and GE0/0/2 as trunk interfaces and add them to VLAN 100.
[SwitchA] interface gigabitethernet 0/0/1 [SwitchA-GigabitEthernet0/0/1] port link-type trunk [SwitchA-GigabitEthernet0/0/1] port trunk allow-pass vlan 100 [SwitchA-GigabitEthernet0/0/1] quit [SwitchA] interface gigabitethernet 0/0/2 [SwitchA-GigabitEthernet0/0/2] port link-type trunk [SwitchA-GigabitEthernet0/0/2] port trunk allow-pass vlan 100 [SwitchA-GigabitEthernet0/0/2] quit
# In the default DiffServ domain on SwitchA, map 802.1p priority 0 of incoming VLAN packets to PHB AF4.
[SwitchA] diffserv domain default [SwitchA-dsdomain-default] 8021p-inbound 0 phb af4 [SwitchA-dsdomain-default] quit
By default, the 802.1p priority of outgoing VLAN packets with the PHB of AF4 is 4. Therefore, when leaving SwitchA, the 802.1p priority of packets from department 1 is 4.
SwitchA configuration file
# sysname SwitchA # vlan batch 100 # diffserv domain default 8021p-inbound 0 phb af4 # interface GigabitEthernet0/0/1 port link-type trunk port trunk allow-pass vlan 100 # interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 100 # return
Technology Forum
QoS Issues - Issue 3 QoS Implementation - Simple Traffic Classification and Re-marking