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 > Creating Rate-Limit Profiles
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

  • Creating a One-Rate Rate-Limit Profile
  • Creating a Two-Rate Rate-Limit Profile
  • Percent-Based Rates for Rate-Limit Profiles Overview
  • rate-limit-profile
  • show rate-limit-profile
 

Creating Rate-Limit Profiles

Create rate-limit profiles with a rate based on percentage and a burst in milliseconds. The system creates a policy using these rate-limit profiles and then attaches them to different interfaces using different parameter values.

  1. Create policy parameter refRlpRate.
    host1(config)#policy-parameter refRlpRate reference-rate host1(config-policy-param-reference-rate)#reference-rate 100000 host1(config-policy-param-reference-rate)#exit
  2. Create rate-limit profile rlpData.
    host1(config)#ip rate-limit-profile rlpData host1(config-rate-limit-profile)#committed-rate refRlpRate percentage 10 host1(config-rate-limit-profile)#committed-burst millisecond 100 host1(config-rate-limit-profile)#peak-rate refRlpRate percentage 100 host1(config-rate-limit-profile)#peak-burst millisecond 150 host1(config-rate-limit-profile)#exit
  3. Create rate-limit profile rlpVoice.
    host1(config)#ip rate-limit-profile rlpVoice host1(config-rate-limit-profile)#committed-rate 64000 host1(config-rate-limit-profile)#committed-burst 100000 host1(config-rate-limit-profile)#peak-rate refRlpRate percentage 100 host1(config-rate-limit-profile)#peak-burst millisecond 150 host1(config-rate-limit-profile)#exit
  4. Create rate-limit profile rlpVideo.
    host1(config)#ip rate-limit-profile rlpVideo host1(config-rate-limit-profile)#committed-rate refRlpRate percentage 70 host1(config-rate-limit-profile)#committed-burst millisecond 100 host1(config-rate-limit-profile)#peak-rate refRlpRate percentage 100 host1(config-rate-limit-profile)#peak-burst millisecond 150 host1(config-rate-limit-profile)#exit
  5. Create the policy.
    host1(config)#ip policy-list P host1(config-policy)#classifier-group data host1(config-policy-classifier-group)#rate-limit-profile rlpData host1(config-policy-classifier-group)#exit host1(config-policy)#classifier-group voice host1(config-policy-classifier-group)#rate-limit-profile rlpVoice host1(config-policy-classifier-group)#exit host1(config-policy)#classifier-group video host1(config-policy-classifier-group)#rate-limit-profile rlpVideo host1(config-policy-classifier-group)#exit host1(config-policy)#exit
  6. Attach IP Policy P at interface atm5/0.1.
    host1(config)#interface atm 5/0.1 host1(config-if)#ip policy-parameter reference-rate refRlpRate 1000000 host1(config-if)#ip policy input P
  7. Attach IP Policy P at interface atm5/0.2 with merge.
    host1(config)#interface atm 5/0.2 host1(config-if)#ip policy input P stats enabled merge
  8. Display the policy list.
    host1#show policy-list
    
    Policy Table
    ------ -----
    IP Policy P
       Administrative state: enable
       Reference count:      1
       Classifier control list: data, precedence 100
          rate-limit-profile rlpData
       Classifier control list: voice, precedence 100
          rate-limit-profile rlpVoice
       Classifier control list: video, precedence 100
          rate-limit-profile rlpVideo
       Referenced by interfaces: 
          ATM5/0.1 input policy, statistics disabled, virtual-router default
          ATM5/0.2 input policy, statistics enabled, virtual-router default
       Referenced by profiles: 
          None
       Referenced by merge policies:
          None
  9. Display the rate-limit profiles.
    host1#show rate-limit-profile
    
    Rate Limit Profile Table
    ---- ----- ------- -----
    IP Rate-Limit-Profile: rlpData
       Profile Type:                   two-rate
       Reference count:                1
       Committed rate:                 refRlpRate % 10
       Committed burst:                100 milliseconds
       Peak rate:                      refRlpRate % 100
       Peak burst:                     150 milliseconds
       Mask:                           255
       Committed rate action:          transmit
       Conformed rate action:          transmit
       Exceeded rate action:           drop
    IP Rate-Limit-Profile: rlpVoice
       Profile Type:                   two-rate
       Reference count:                1
       Committed rate:                 64000
       Committed burst:                100000
       Peak rate:                      refRlpRate % 100
       Peak burst:                     150 milliseconds
       Mask:                           255
       Committed rate action:          transmit
       Conformed rate action:          transmit
       Exceeded rate action:           drop
    IP Rate-Limit-Profile: rlpVideo
       Profile Type:                   two-rate
       Reference count:                1
       Committed rate:                 refRlpRate % 70
       Committed burst:                100 milliseconds
       Peak rate:                      refRlpRate % 100
       Peak burst:                     150 milliseconds
       Mask:                           255
       Committed rate action:          transmit
       Conformed rate action:          transmit
       Exceeded rate action:           drop
  10. Display policy parameters. If a rate-limit profile uses this parameter twice then it increases the reference count by 2.
    host1#show policy-parameter brief
    Reference-rate refRlpRate: 100000, 6 references
           Display policy parameters
    host1#show policy-parameter
    Policy Parameter refRlpRate
        Type: reference-rate
        Rate: 100000
        Reference count: 6
        Referenced by interfaces: 1 references
          IP interface ATM5/0.1: 1000000
        Referenced by rate-limit profiles: 5 references
          rlpData
          rlpVoice
          rlpVideo
  11. Display interface atm5/0.1.
    host1#show ip interface atm 5/0.1
    ATM5/0.1 line protocol Atm1483 is down, ip is down (ready)
      Network Protocols: IP
      Internet address is 1.1.1.1/255.255.255.255
      Broadcast address is 255.255.255.255
      Operational MTU = 0  Administrative MTU = 0
      Operational speed = 100000000 Administrative speed = 0
      Discontinuity Time = 0
      Router advertisement = disabled
      Proxy Arp = disabled
      Network Address Translation is disabled
      TCP MSS Adjustment = disabled
      Administrative debounce-time = disabled 
      Operational debounce-time    = disabled 
      Access routing = disabled 
      Multipath mode = hashed
      Auto Configure = disabled
      Auto Detect = disabled
      Inactivity Timer = disabled
      In Received Packets 0, Bytes 0
        Unicast Packets 0, Bytes 0
        Multicast Packets 0, Bytes 0
      In Policed Packets 0, Bytes 0
      In Error Packets 0
      In Invalid Source Address Packets 0
      In Discarded Packets 0
      Out Forwarded Packets 0, Bytes 0
        Unicast Packets 0, Bytes 0
        Multicast Routed Packets 0, Bytes 0
      Out Scheduler Dropped Packets 0, Bytes 0
      Out Policed Packets 0, Bytes 0
      Out Discarded Packets 0
      IP policy input P
        Statistics are disabled
  12. Display interface atm5/0.2.
    host1#show ip interface atm 5/0.2
    ATM5/0.2 line protocol Atm1483 is down, ip is down (ready)
      Network Protocols: IP
      Internet address is 2.2.2.2/255.255.255.255
      Broadcast address is 255.255.255.255
      Operational MTU = 0  Administrative MTU = 0
      Operational speed = 100000000  Administrative speed = 0
      Discontinuity Time = 0
      Router advertisement = disabled
      Proxy Arp = disabled
      Network Address Translation is disabled
      TCP MSS Adjustment = disabled
      Administrative debounce-time = disabled 
      Operational debounce-time    = disabled 
      Access routing = disabled 
      Multipath mode = hashed
      Auto Configure = disabled
      Auto Detect = disabled
      Inactivity Timer = disabled
      In Received Packets 0, Bytes 0
        Unicast Packets 0, Bytes 0
        Multicast Packets 0, Bytes 0
      In Policed Packets 0, Bytes 0
      In Error Packets 0
      In Invalid Source Address Packets 0
      In Discarded Packets 0
      Out Forwarded Packets 0, Bytes 0
        Unicast Packets 0, Bytes 0
        Multicast Routed Packets 0, Bytes 0
      Out Scheduler Dropped Packets 0, Bytes 0
      Out Policed Packets 0, Bytes 0
      Out Discarded Packets 0
      IP policy input P
        classifier-group data entry 1
          0 packets, 0 bytes
          rate-limit-profile rlpData
               committed rate: 10000 bps, committed burst: 125 bytes
               peak Rate: 100000 bps, peak burst: 1875 bytes
            committed: 0 packets, 0 bytes, action: transmit
            conformed: 0 packets, 0 bytes, action: transmit
            exceeded:  0 packets, 0 bytes, action: drop
        classifier-group voice entry 1
          0 packets, 0 bytes
          rate-limit-profile rlpVoice
               committed rate: 64000 bps, committed burst: 100000 bytes
               peak Rate: 100000 bps, peak burst: 1875 bytes
            committed: 0 packets, 0 bytes, action: transmit
            conformed: 0 packets, 0 bytes, action: transmit
            exceeded:  0 packets, 0 bytes, action: drop
        classifier-group video entry 1
          0 packets, 0 bytes
          rate-limit-profile rlpVideo
               committed rate: 70000 bps, committed burst: 875 bytes
               peak Rate: 100000 bps, peak burst: 1875 bytes
            committed: 0 packets, 0 bytes, action: transmit
            conformed: 0 packets, 0 bytes, action: transmit
            exceeded:  0 packets, 0 bytes, action: drop

To configure a policy-parameter at an interface with the increase keyword:

  1. Create policy list P2.
    host1(config)#ip policy-list P2 host1(config-policy)#classifier-group data2 host1(config-policy-classifier-group)#rate-limit-profile rlpData host1(config-policy-classifier-group)#exit host1(config-policy)#exit
  2. Attach IP Policy P2 at interface atm5/0.2 with the merge keyword.
    host1(config)#interface atm 5/0.2 host1(config-If)#ip policy-parameter reference-rate refRlpRate 100000

    This increases from 0.

    host1(config)#ip policy-parameter reference-rate refRlpRate increase 100000

    This increases from the existing 100000.

    host1(config)#ip policy input P2 merge
  3. Verify the configuration.
    host1#show policy-parameter
    Policy Parameter refRlpRate
        Type: reference-rate
        Rate: 100000
        Reference count: 7
        Referenced by interfaces: 2 references
          IP interface ATM5/0.1: 1000000
          IP interface ATM5/0.2: 200000
        Referenced by rate-limit profiles: 5 references
          rlpData
          rlpVoice
          rlpVideo
 

Related Documentation

  • Creating a One-Rate Rate-Limit Profile
  • Creating a Two-Rate Rate-Limit Profile
  • Percent-Based Rates for Rate-Limit Profiles Overview
  • rate-limit-profile
  • show rate-limit-profile
 

Published: 2012-06-21

 
  • 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