Table 26: Operators For Parameter Expressions; Specifying A Range In Expressions - Juniper JUNOSE 11.1.X - QUALITY OF SERVICE CONFIGURATION GUIDE 3-21-2010 Configuration Manual

For e series broadband services routers - quality of service configuration
Table of Contents

Advertisement

Table 26: Operators for Parameter Expressions

Operator
%
*
/
+
-
min
max

Specifying a Range in Expressions

You can use the min and max operators to specify the allowable range of an
expression result.
For example, to specify a shaping rate at a minimum of 1 Mbps and a maximum of
5 Mbps, use the following expression:
host1(config)#scheduler-profile subscriber-rate
host1(config-scheduler-profile)#shaping-rate (( subscriber-rate max 1000000 ) min
5000000 )
Operations Using This Expression
Take the max of the subscriber-rate scheduler profile, or 1 Mbps, and name it
1.
x.
Take the min of x and 5 Mbps.
2.
The value of the subscriber-rate scheduler profile is less than 1 Mbps, specifically
Example 1
500,000.
The max of 500K and1 Mbps is 1 Mbps
The min of 1Mbps and 5 Mbps is 1 Mbps
Description
Precedence
Percent in the range
1
1–100
Multiplication
1
Division
1
Addition
2
Subtraction
2
Minimum
3
Maximum
3
Scheduler Profiles and Parameter Expressions for QoS Administrators
Chapter 25: Configuring a QoS Parameter
Examples
max-subscriber-bw % 100
max-subscriber-bw % 10
5 * maxBandwidth
maxBandwidth / 64000
max-subscriber-bw + 50000
max-subscriber-bw + l2c-rate
max-subscriber-bw - 50000
max-subscriber-bw - l2c-rate
max-subscriber-bw min 50000
max-subscriber-bw min l2c-rate
max-subscriber-bw max 50000
max-subscriber-bw max l2c-rate
237

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose 11.1.x

Table of Contents