Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Ingress Queuing Filter with Policing Functionality

Starting with Junos OS Release 18.1R1, on MPCs that support ingress queuing, you can implement policer actions, along with other filter actions, on traffic before the traffic is assigned to ingress queues. Ingress queuing policing filters allow you to rate limit traffic as well as count and set the forwarding class and packet loss priority for packets prior to ingress queue selection. Class-of-service (CoS) commands can then be used to select ingress queuing parameters.

Understanding the Ingress Queuing Policing Filter

The ingress queuing policing filter (iq-policing-filter) function similarly and at the same point as the ingress policing filter (ingress-queuing-filter), which was introduced in Junos OS Release 16.1, but provides the added benefit of accepting almost all filter actions, including policing and counting actions. The ingress queuing policing filter is also more efficient, requiring fewer system resources.

Note:

Ingress queuing filters are only available when the traffic manager mode is set to ingress-and-egress at the [edit chassis fpc fpc-id pic pic-id traffic-manager mode] hierarchy level.

The iq-policing-filter configuration statement is used at the [edit interfaces interface-name unit unit-number family family-name] hierarchy level to designate a previously configured firewall filter to be used as an ingress queuing policing filter. The following list shows which protocol families are compatible with the iq-policing-filter statement:

  • bridge

  • inet

  • vpls

Example: Configuring a Filter for Use as an Ingress Queuing Policing Filter

This example shows how to configure a firewall filter for use as an ingress queuing policing filter. The ingress queuing filter assists in ingress traffic policing operations by allowing you to rate limit traffic prior to ingress queue selection. The firewall filter must be configured within one of the following protocol families: bridge, inet, or vpls.

The ingress queuing policing filter can only be used on MX Series routers with MPCs that support ingress queuing. An error is generated at commit if the ingress queuing filter is applied to an interface on any other type of port concentrator.

Requirements

This example uses the following hardware and software components:

  • An MX Series router with an MPC that supports ingress queuing

In order for ingress queuing filters to function, ingress-and-egress must be configured as the traffic-manager mode at the [edit chassis fpc slot pic slot traffic-manager mode] hierarchy level.

Overview

In this example, you create a firewall filter named vpls_iqp_filter in the vpls protocol family that counts and polices voice and best effort traffic. You then apply the vpls_iqp_filter filter to the xe-0/0/0.0 logical interface as an ingress queuing policing filter.

To configure a firewall filter and apply it for use as an ingress queuing filter involves:

  • Creating a firewall filter named vpls_iqp_filter in the vpls protocol family with the following actions: count, forwarding- class and policer.

  • Applying the firewall filter to the xe-0/0/0.0 interface as an ingress queuing policing filter.

Configuration

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

Configuring the Firewall Filter and Applying It to an Interface as an Input Queuing Policing Filter

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

To configure the firewall filter, vpls_iqp_filter, and apply it to logical interface xe-0/0/0 unit 0:

  1. Create a firewall filter named vpls_iqp_filter.

  2. Apply the firewall filter to the logical interface.

Results

From configuration mode, confirm your configuration by entering the show firewall and the show interfaces xe-0/0/0.0 commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

If you are done configuring the device, enter commit from configuration mode.

Release History Table
Release
Description
18.1
Starting with Junos OS Release 18.1R1, on MPCs that support ingress queuing, you can implement policer actions, along with other filter actions, on traffic before the traffic is assigned to ingress queues.