You are here: Cookbook > Quality of Service (QoS) > QoS Control

QoS Control

This examples shows how to control Internet bandwidth allocation to different users and applications. The key feature that applies in this situation is 2-Stage QoS flow control.

As shown in the topology below, a company of 155 MB Internet bandwidth has a 2-Stage QoS requirement:

  • In 1st Stage QoS: Within the 155 Mbps bandwidth, 40 Mbps will be allocated to Department A, 40 Mbps to Department B, and the remaining 75 Mbps will be shared by all employees.
  • In 2nd Stage QoS: The total P2P flow is limited to 10 Mbps, in which downloading is limited to 2 Mbps, streaming video is limited to 8 Mbps, and within the video bandwidth, Youku streaming is limited to 6 Mbps.

Step 1: Creating address entries for Dept. A and Dept. B

Select Object > Address Entry, and click New.

  • Name: DeptA
  • Member: select IP Range, and enter "10.89.9.2" and "10.89.9.50" and click Add.

Create another address entry:

  • Name: DeptB
  • Member: select IP Range, and enter "10.89.9.52" and "10.89.9.60" and click Add.
Step 2: Create a root pipe of 155 Mbps under Level-1 Control

Select Policy > QoS, click Level-1 Control, and click New > Pipe.

  • Pipe Name: TotalBW

In the same tab, click New.

  • Source Information
    • Interface: ethernet0/2

Under the Action tab:

  • Forward
    • Pipe Bandwidth: 155000 Kbps
  • Backward
    • Pipe Bandwidth: 155000 Kbps
Step 3: Creating sub-pipes for two departments below root pipe

Select root pipe "TotalBW"and click New.

  • Pipe Name: pipeA
  • Click New, and under Source Information, select "DeptA" as Address.
  • Click the Action tab:
    • Forward: Bandwidth: min: 40000 Kbps; max: 155000 Kbps
    • Backward Bandwidth: min:40000 Kbps; max: 155000 Kbps

Use the same steps to create "pipe B":

  • Pipe name: pipeB
  • Source address: DeptB
  • (Forward and Backward) min bandwidth: 40000 kbps
  • (Forward and Backward) max bandwidth: 155000 kbps
 
Step 4: Creating root pipe "p2p" under Level-2 control to limit P2P total to 10 Mbps

Select Policy > QoS, select Level-2 Control and click New > Pipe.

  • Pipe Name: p2p

In the same tab, click New.

  • Source Information
    • Interface: ethernet0/2
  • Other
    • APP/APP Group: P2P. P2P_Stream

Under the Action tab:

  • Forward
    • Bandwidth: 10000 kbps
  • Backward:
    • Bandwidth: 10000 kbps
Step 5: Creating sub pipes under root pipe "p2p"

1. Creating a sub-pipe to limit p2p software

Under Level-2 Control, select root pipe "p2p", and click New > Pipe.

  • Pipe Name: p2p_soft
  • Click New: in the prompt, select P2P as APP/APP Group.
  • Select the Action tab:
    • Forward bandwidth: min: 32; max 2000
    • Backward bandwidth: min: 32; max: 2000

2. Creating a sub-pipe to limit p2p video streaming

Under Level-2 Control, select root pipe "p2p", and click New > Pipe.

  • Pipe Name: p2p_stream
  • Click New: in the prompt, select P2P_Stream as APP/APP Group.
  • Select the Action tab:
    • Forward bandwidth: min: 32; max 8000
    • Backward bandwidth: min: 32; max: 8000

3. Creating a sub-pipe to limit p2p video streaming

Under Level-2 Control, select sub pipe "p2p_stream", and click New > Pipe.

  • Pipe Name: p2p_stream
  • Click New: in the prompt, select Youku and Youku_Stream as APP/APP Group.
  • Select the Action tab:
    • Forward bandwidth: min: 32; max 6000
    • Backward bandwidth: min: 32; max: 6000