Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Ingress Rate Limiting on MX Series Routers with MPCs

date_range 13-Jan-21

Beginning with Junos OS Release 16.2R1, on MPCs that support ingress queueing, you can perform rate limiting on incoming packets based on the forwarding class and packet loss priority (PLP) defined for each packet at ingress. You can define the ingress forwarding class either through behavior aggregate (BA) classification or through multifield (MF) ingress-queuing-filter classification.

A packed entering an interface that has ingress queuing and ingress rate-limiting enabled has the following path through the device:

content_copy zoom_out_map
Packet in -> BA classification -> MF classification -> Ingress rate-limiting -> Ingress queuing -> Loopback through the interface -> BA classification -> MF classification -> Firewall filters -> Routing -> Egress pipeline

As the packet enters the interface, BA and MF classification are used to determine the forwarding class and PLP for the packet. Ingress rate-limiting is applied to the packet based on the forwarding class and PLP just determined. If no BA classifier is defined for the packet, the default BA classifier is used. Use of MF classification is optional and overrides any BA classification, including default BA classification.

Ingress rate limiting can be applied to physical and logical interfaces as well as interface sets.

To configure ingress rate-limiting:

  1. Configure the traffic-manager statement with ingress-and-egress mode:

    content_copy zoom_out_map
    [edit chassis fpc slot-number pic pic-number]
    user@router# set traffic-manager mode ingress-and-egress;
    
  2. Configure a rate-limited scheduler. For example:

    content_copy zoom_out_map
    [edit class-of-service]
    user@router# set schedulers sched_RL transmit-rate percent 70;
    user@router# set schedulers sched_RL transmit-rate rate-limit;
    
  3. Apply the scheduler to a scheduler map. For example:

    content_copy zoom_out_map
    [edit class-of-service]
    user@router# set scheduler-maps SMap_RL forwarding-class expedited-forwarding scheduler sched_RL;
    
  4. Apply the scheduler map as an input-scheduler-map to a physical or logical interface or interface set. For example:

    content_copy zoom_out_map
    [edit class-of-service]
    user@router# set interfaces interface-set my-set input-scheduler-map SMap_RL;
    user@router# set interfaces ge-8/0/2 input-scheduler-map SMap_RL;
    user@router# set interfaces ge-8/0/3 unit 0 input-scheduler-map SMap_RL;
    
    Note:

    Alternatively, apply the scheduler map to a traffic control profile, then apply the traffic control profile as an input-traffic-control-profile to a physical or logical interface or interface set.

footer-navigation