Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Setting a Two-Rate Rate-Limit-Profile

    You can use the rate-limit-profile two-rate command to create a rate-limit profile and enter Rate Limit Profile Configuration mode, from which you can configure attributes for the rate-limit profile. See the Policy Action Applied Based on Rate Settings and Traffic Rate table in Two-Rate Rate-Limits Overview.

    Note: The JunosE Software includes the layer 2 headers in the calculations it uses to enforce the rates that you specify in rate-limit profiles.

    Use one of the ip, ipv6, l2tp, or mpls keywords in front of the command to specify the type of rate-limit profile you want to create or modify. If you do not include one of the keywords, the router creates an IP rate-limit profile by default.

    For hierarchical rate limits, do not specify the interface type, but add the hierarchical keyword at the end. In Parent Group Configuration Mode, associates a rate limit for a parent group. The color-aware keyword is only supported on hierarchical rate limits.

    If you do not include a one-rate or two-rate keyword, the default is a two-rate rate-limit profile. If you enter a rate-limit-profile command and then type exit, the router creates a rate-limit profile with the default values listed in Table 1:

    Table 1: Two-Rate Rate-Limit-Profile Defaults

    Policy Attribute

    Default Value

















    mask (IP and IPv6 rate-limit profiles)


    exp-mask (MPLS rate-limit profiles)


    During a software upgrade, certain values are set as follows:

    • Committed burst size—Set to 8192 if it was less than that value before the upgrade
    • Peak burst size—Set to 8192 if it was less than that value before the upgrade
    • Peak rate—Set to 0 if it was nonzero but less than the committed rate before the upgrade

      Note: We recommend that you do not configure a committed or peak burst size smaller than the MTU of the interface. Doing so causes large packets to be dropped even when they are transmitted at a very low rate.

    • Issue the ip rate-limit-profile command in Global Configuration mode:
      host1(config)#ip rate-limit-profile hardlimit9Mb two-rate

      Note: Commands that you issue in Rate Limit Profile Configuration mode do not take effect until you exit from that mode.

    Published: 2014-08-14