Patton electronic 2800 user manual Structure of a Service-Policy Profile

Models: 2800

1 135
Download 135 pages 34.01 Kb
Page 103
Image 103

OnSite 2800 Series User Manual

8 • Link scheduler configuration

 

 

 

 

 

profile service-policy <profile-name>

 

 

 

 

 

link rate, arbitration

 

common settings

 

 

 

 

 

common parameters

 

 

 

 

 

source traffic-class <x>

 

 

 

 

 

 

bandwidth, packet mark

 

 

settings for class x

 

 

 

 

queue-size, etc.

 

 

 

 

 

 

 

 

 

source traffic-class <y>

 

 

 

 

 

 

 

 

settings for class y

 

 

 

 

 

 

source traffic-class default

 

settings for all other traffic-classes not listed

Figure 22. Structure of a Service-Policy Profile

The template shown above specifies an arbiter with three inputs which we call “sources”: x, y and “default”. The traffic-class “default” stands for all other packets that belong neither to traffic-class x nor y. There is no limit on the number of sources an arbiter can have.

Example: Creating a service policy profile

The following example shows how to create a top service-policy profile named sample. This profile does not include any hierarchical sub-profiles. The bandwidth of the outbound link is limited to 512 kbps therefore the interface rate-limit is set to 512. In addition weighted fair queuing (wfq) is used as arbitration scheme among the source classes.

profile service-policy sample rate-limit 512

mode wfq

source traffic-class Web share 30

source traffic-class local-default share 20

source traffic-class default queue-limit 40

share 50

The first line specifies the name of the link arbiter profile to configure. On the second line the global band- width limit is set. The value defining the bandwidth is given in kilobits per second. Each service-policy profile must have a “rate-limit” except if no scheduling is used i.e. the link scheduler is used for packet marking only (like setting the TOS byte).

How the bandwidth on an IP interface is shared among the source classes is defined on the third line. The mode command allows selecting between the weighted fair queuing and shaping arbitration mode. The default mode is wfq - the command shown above can therefore be omitted.

The following lines configure the source traffic-classes. When using weighted fair queuing (wfq) each user- specified source traffic-class needs a value specifying its share of the overall bandwidth. For this purpose the share command is used, which defines the relative weights of the source traffic-classes and policies.

Link scheduler configuration task list

103

Page 103
Image 103
Patton electronic 2800 user manual Structure of a Service-Policy Profile