Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring Queuing and Shaping on Logical Interfaces in PTX Series Packet Transport Routers

You can enable per-logical interface queuing on interfaces on PTX Series Packet Transport Routers and specify a scheduler map and traffic-shaping rate for each logical interface.

Requirements

This example uses the following hardware and software components:

  • Junos OS Evolved Release 24.2R1 or later.

  • One PTX10004 router with LC1201 or LC1202 line card.

Overview

This example shows how to configure six VLANs on six logical interfaces, enable per-logical interface queuing, and specify a scheduler map and traffic-shaping rate for each logical interface. The total traffic-shaping rate combined for all logical interfaces cannot exceed 100 Gbps.

Configuration

CLI Quick Configuration

To configure logical interface queuing and traffic shaping on the PTX10004 router, copy the following commands and paste them into the terminal window of the router:

Procedure

Step-by-Step Procedure

To configure the PTX10004 router:

  1. Enable the reception and transmission of 8021.q VLAN-tagged frames on the interface:

  2. Enable per-logical interface scheduling on the interface:

  3. Specify a VLAN identifier for each logical interface:

  4. Define classifiers to assign incoming packets to forwarding classes based on each packet's code point value and loss priority:

  5. Assign each forwarding class to a queue:

  6. Define schedulers, each with their own transmit rate and priority:

  7. Define a scheduler map that maps a scheduler to each forwarding class (and therefore queue):

  8. Assign the scheduler map to each logical interface:

    Note:

    Keep in mind, with per-logical interface queueing, each logical interface has eight queues and can have its own scheduler map for its own service profile.

  9. Specify the amount of bandwidth to allocate to each logical interface:

Results

Confirm your results by entering the show interfaces and show class-of-service commands: