Está en la página 1de 2

L4 shaping

For L4 shaping , we need to have two custom scheduler eg (C1 and C2) ,where one
scheduler(C2) will be the parent scheduler for another one (C1) and root port
scheduler will be the parent of this parent scheduler (C2).

Below is the detailed configuration to create L4 Shaping scenario

Set up

2-20-----> 2/4 ---------------- 1/4------->1/15


node 1 node 2

1. create subport and attach the subport to virtual switch.

2. create two custom scheduler with profile Sch-parent and sch-child

traffic-services queuing scheduler-profile create profile Sch-1-parent cir 120000


cbs 32 eir 40000 ebs 32 tap-point-count 1

NOTE - Here tap-point-count 1 indicates that it will take input from one scheduler

traffic-services queuing scheduler-profile create profile Sch-2-child cir 110000


cbs 32 eir 60000 ebs 32 tap-point-count 4

NOTE - Here tap-point-count 4 indicates that it can take input from 4 custom queues

3. Adding egress root port scheduler as parent for scheduler Sch-1-parent

traffic-services queuing scheduler-profile add profile Sch-1-parent instance 1


parent-scheduler 1/15-Root port 1/15

3. Adding scheduler Sch-1-parent as parent scheduler of Sch-2-child

traffic-services queuing scheduler-profile add profile Sch-2-child instance 1 port


1/15 parent-scheduler Sch-1-parent parent-instance 1

4. create custom queues and apply shaping configuration

traffic-services queuing queue-group-profile create profile Q1-Sch1 queue-count 4

note - here queue-count of Q1-Sch1 should match with tap-point-count of Sch-2-child

5. apply shaping to custom queues

traffic-services queuing queue-group-profile set queue 1 profile Q1-Sch1 cir 60000


cbs 32 eir 10000 ebs 32
traffic-services queuing queue-group-profile set queue 3 profile Q1-Sch1 cir 20000
cbs 32 eir 10000 ebs 32
traffic-services queuing queue-group-profile set queue 5 profile Q1-Sch1 cir 20000
cbs 32 eir 10000 ebs 32
traffic-services queuing queue-group-profile set queue 7 profile Q1-Sch1 cir 0 cbs
0 eir 10000 ebs 32

6. adding Sch-2-child as parent scheduler for custom queue group Q1-Sch1


traffic-services queuing queue-group-profile add profile Q1-Sch1 instance 1 parent-
scheduler Sch-2-child port 1/15 parent-instance 1

7. apply profile to egress subport

sub-port set sub-port SP_1_15 queue-group-profile Q1-Sch1 queue-group-instance 1

Hence, following heirarchy is created

Q1-Sch1 -----> Sch-2-child -------> Sch-1-parent ------> 1/15-Root

For L3 shaping ,only difference is that there will be only one Custom scheduler
rather than two, as was the case with L4 shaper. So, for L3 shaping following
hierarchy will be there -

Q1-Sch1 -----> Sch-1-parent ------> 1/15-Root

También podría gustarte