Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Support
Technical Documentation
Content Explorer New
 
Enterprise MIBs
 
EOL Documentation
 
Feature Explorer Login required New
 
File Format Help
 
Glossary
 
Portable Libraries
 
 
Home > Support > Technical Documentation > JunosE Software > Using Expressions for Bandwidth and Burst Values in a Scheduler Profile
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...
 

Related Documentation

  • Scheduler Profiles and Parameter Expressions for QoS Administrators
  • Configuring Rate Shaping for a Scheduler Node or Queue
  • Configuring Port Shaping
  • Configuring an Assured Rate for a Scheduler Node or Queue
  • Configuring the HRR Weight for a Scheduler Node or Queue
  • Configuring Simple Shared Shaping
  • Configuring Compound Shared Shaping
 

Using Expressions for Bandwidth and Burst Values in a Scheduler Profile

Expressions are combinations of constants and operators. You can specify some scheduler profile attributes using an expression, such as the shaping rate. All operations within expressions are performed using 64 bit unsigned math, resulting is a 32 bit, signed integer value.

Expressions consist of both operators and operand values. Operators are mathematical functions, and operand values are the inputs for the mathematical function. Operand values can be an integer. You specify an expression consisting of an operand, followed by zero or more [ operator, operand ] pairs.

You can specify bandwidth as a percentage and burst in milliseconds or bytes by using expressions with the shaping-rate, shared-shaping-rate, assured-rate, and weight commands.

When calculating constant shaping rates, use the following formula to translate burst values from bytes to milliseconds (ms):

Time (ms) = [ (burstValueBytes * 8 bits/byte )/ Rate (bps) ] * 1000 (ms/s)

Using this formula, a 2 Mbps service with a 500 KB burst yields 4 Mb per 2 seconds or 2000 ms:

[ (500000 * 8) / 2000000 ] * 1000 = 2000 ms

The shaping rate is calculated when the QoS profile is attached based on the parameter instance. For example:

host1(config)# scheduler-profile sp-1mbs (config-scheduler-profile)# shaping-rate video-bandwidth % 100 burst 2000 milliseconds

When the shaping rate for video-bandwidth is 2 Mbps, the burst value is calculated using the following formula:

Burst Value (bits) = Rate (bps) * [ Time (ms) / 1000 (ms/s) ]

The burst value in bits is calculated as:

Burst Value (bits) = 2000000 * [ 2000 / 1000 ] = 4000000

The burst value in bytes is calculated as:

Burst Value (bytes) = 4000000 / 8 = 500000

 

Related Documentation

  • Scheduler Profiles and Parameter Expressions for QoS Administrators
  • Configuring Rate Shaping for a Scheduler Node or Queue
  • Configuring Port Shaping
  • Configuring an Assured Rate for a Scheduler Node or Queue
  • Configuring the HRR Weight for a Scheduler Node or Queue
  • Configuring Simple Shared Shaping
  • Configuring Compound Shared Shaping
 

Published: 2012-06-19

 
  • About Juniper
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Green Networking
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Developers
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out