Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configure GBR Forwarding on Junos Multi-Access User Plane

Overview

This example shows how to configure GBR and best-effort forwarding on the Junos Multi-Access User Plane. GBR queues enable you to prioritize traffic. You can also guarantee a minimum bandwidth for GBR traffic.

Junos OS handles subscriber traffic differently depending on the Transport Level Marking (TLM) assigned to it. The TLM contains a DSCP value, which classifiers use to map the traffic to the appropriate forwarding class. Each forwarding class is associated with an output queue on the VRF loopback interface of the anchor Packet Forwarding Engine.

We support eight queues on the VRF interface, of which four are GBR queues and four are best-effort queues. These queues are preconfigured with a fixed set of attributes. You cannot modify the queue configurations.

Table 1: Forwarding Queues on the VRF Loopback Interface
Queue Number Queue Name Description
0 be-low-0 Best effort queue with lowest priority
1 be-low-1 Best effort queue with low to medium priority
2 be-high-0 Best effort queue with medium to high priority
3 be-high-1 Best effort queue with highest priority
4 gbr-low GBR queue with low priority
5 gbr-med GBR queue with medium priority
6 gbr-high GBR queue with high priority
7 express GBR queue with highest priority
CAUTION:

Make sure that you map the forwarding classes to the correct queues. You can use different names for the forwarding classes, but you must map the queues correctly.

If the TLM provided for a new or modified GBR bearer or flow maps to a non-GBR queue, the system rejects the session establishment or modification. Make sure that the TLM configurations for the control plane and user plane are consistent.

In this example, we define eight forwarding classes and map the classes to the VRF queues. We define a classifier, upf-class-1, and configure the forwarding classes, their PLP values, and the applicable DSCP values. We define another classifier called upf-class-2 and configure the default mapping for DSCP. We add these classifiers to peer routing instances associated with the outgoing interfaces on the gateway upf. Classifier upf-class-1 handles traffic for routing instances 4g-access and 4g-core. Classifier upf-class-2 handles traffic for all other routing instances. You can optionally define the fraction of the system bandwidth reserved for GBR queues.

Requirements

This example uses the following hardware and software components:

  • MX480 (can also be MX240, MX960) router configured as an SAEGW-U or a UPF

  • Junos OS Releases 22.2R1 or later

Configuration

CLI Quick Configuration

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

Step-By-Step Procedure

To configure GBR and best-effort forwarding, follow the steps below:

  1. Define eight forwarding classes and map them to the output queues on the VRF loopback interface.

  2. Define and configure the classifiers that will map the DSCP values to the forwarding classes. You can configure the forwarding class, the PLP value, and the DSCP values that the classifier applies to.

  3. Assign the classifiers to routing instances associated with the outgoing interfaces. If you do not assign any routing instance to a classifier, the system uses the classifier for all routing instances without an assigned classifier.

  4. (Optional) Reserve a percentage of the total bandwidth for the express and GBR queues. The system reserves the same percentage of bandwidth across all anchor Packet Forwarding Engines.

Results

From configuration mode, confirm your configuration by entering the show services and show class-of-service commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

Verification

Use various show commands to verify that the GBR forwarding is functioning properly.

Verify Forwarding Queue Configuration

Purpose

Display the configuration of the forwarding queues and verify that the system reserves bandwidth for the GBR queues.

Action

At the CLI, enter the show services mobile-edge anchor class-of-service command.

Verify GBR and Non-GBR Flows

Purpose

Verify that the system classifies traffic into GBR and non-GBR bearers or flows.

Action

At the CLI, enter the show services mobile-edge sessions summary command.