Example 2: SPQ with Shaping

We send two Streams (Stream0, Stream1) from port1 to port-2. Both streams each have 100 Mbps. Stream0 includes VLAN (Virtual LAN) Priority0, Stream1 includes VLAN Priority7. Stream3 and Stream4 only for learning which make sure the traffic are not flooding.

Expected Result

We expect PORT-2 only can receive 20Mbps of Stream1, and 80Mbps of Stream0. This case will help you to understand how SPQ works on the ISW.

Click to expand in new window
VDSL port VLAN Priority & Queue Mapping
../Graphics/image90.png
Click to expand in new window
../Graphics/image91.png

Stream0:

  • Dst Mac : 00:00:00:00:20:01
  • Src Mac : 00:00:00:00:10:01
  • Vlan : 100
  • Vlan prio : 0
  • Send rate : 100Mbps
  • Packet length: 1518bytes

Stream1:

  • Dst Mac : 00:00:00:00:20:02
  • Src Mac : 00:00:00:00:10:02
  • Vlan : 100
  • Vlan prio : 7
  • Send rate : 100Mbps
  • Packet length: 1518bytes

Stream3: (for Learning)

  • Dst Mac : 00:00:00:00:10:01
  • Src Mac : 00:00:00:00:20:01
  • Vlan : 100
  • Vlan prio : 0
  • Send rate : 10Mbps
  • Packet length: 1518bytes

Stream4: (for Learning)

  • Dst Mac : 00:00:00:00:10:02
  • Src Mac : 00:00:00:00:20:02
  • Vlan : 100
  • Vlan prio : 0
  • Send rate : 10Mbps
  • Packet length: 1518bytes

Web Management

  1. Navigate to Configuration > QoS > Port Shaping and create a QoS (Quality of Service) profile on Port 2.
    Click to expand in new window
    ../Graphics/config_qos_port_shaper.png
  2. Select schedule mode Strict Priority and set shaping rate for queue 0 and queue 7 as below.
Click to expand in new window
../Graphics/config_qos_port_shaper_set.png

CLI Configuration

interface GigabitEthernet 1/2
switchport trunk native vlan 100
switchport trunk allowed vlan 1,100
switchport trunk vlan tag native
switchport mode trunk
qos queue-shaper queue 0 80000
qos queue-shaper queue 7 20000