Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[MX] How to prioritize traffic generated by host/RE

0

0

Article ID: KB37318 KB Last Updated: 24 Aug 2021Version: 1.0
Summary:

This article demonstrates how to prioritize traffic generated by the host or the Routing Engine (RE), assign them to their respective outbound queues, and re-mark them. 

Symptoms:

User wants to prioritize traffic originating from the device over other data traffic.

Solution:

If you want to classify some host protocols into a high priority queue and others to a best effort queue, you need to configure a specific firewall filter and apply it on the loopback interface in the output direction to complete this selective per-protocol queue assignment.

A sample firewall filter configuration is given as follows:

+  interfaces {
+      lo0 {
+          unit 0 {
+              family inet {
+                  filter {
+                      output RE-EGRESS-REMARK;
+                  }
+                  address 192.168.1.1/32;
+              }
+          }
+      }
+  }
+  firewall {
+      family inet {
+          filter RE-EGRESS-REMARK {
+              term ALLOW-BGP {
+                  from {
+                      protocol tcp;
+                      port bgp;
+                  }
+                  then {
+                      forwarding-class FC3;
+                      dscp cs6;
+                  }
+              }
+              term ALLOW-TELNET-SSH {
+                  from {
+                      protocol tcp;
+                      port [ telnet ssh ];
+                  }
+                  then {
+                      forwarding-class FC1;
+                      dscp af42;
+                  }
+              }
+              term ACCEPT-ALL {
+                  then accept;
+              }
+          }
+      }
+  }

In this example, only the BGP and SSH/Telnet protocols are re-assigned to specific queues. This reclassification is also performed by the RE kernel. For other protocols that only match the last “term,” the RE uses the default queue assignment rules.

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search