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

Configuring Queuing and Shaping on Logical Interfaces on PTX Series Routers

date_range 10-Jun-24

You can enable per-logical interface queuing (sometimes called per-unit scheduling) on on PTX Series Packet Transport Routers and specify a traffic-shaping rate for each logical interface. In conjunction, you can also configure other class-of-service (CoS) features, including classifiers, schedulers, and rewrite rules.

  • On PTX5000 Series routers:

    • Only 100-Gigabit Ethernet interfaces are supported.

    • You can configure a maximum of 10 logical interfaces on each physical interface.

    • The maximum shaping rate cannot exceed 100 Gbps for all logical interfaces configured on an interface.

    • You cannot configure per-logical interface queuing on Aggregated Ethernet interfaces.

  • On PTX10000 Series routers:

    • Only 400-Gigabit Ethernet interfaces are supported.

    • You can configure a maximum of 6 logical interfaces with per-unit scheduling enabled on each interface (maximum of 2 logical interfaces per interface on PTX10016 routers).

    • The maximum shaping rate cannot exceed 100 Gbps combined for all logical interfaces configured on an interface.

  • You cannot configure per-logical interface queuing if you have configured strict priority scheduling on any interface on the router.

  • The interface wildcard character (*) is not supported—for example, the following configuration is not supported and should not be used:

    content_copy zoom_out_map
    set class-of-service interface et-* unit * shaping-rate 1g
    set class-of-service interface et-* unit * scheduler-map sch0
    

To configure per-logical interface queuing and traffic shaping on PTX Series routers:

  1. Enable per-logical interface queuing on the interface:
    content_copy zoom_out_map
    [edit interfaces et-fpc/pic/port]
    user@host# set per-unit-scheduler
    
  2. Enable the reception and transmission of 8021.q VLAN-tagged frames on the interface:
    content_copy zoom_out_map
    [edit interfaces et-fpc/pic/port]
    user@host# set vlan-tagging
    
  3. Configure logical interface properties.
    1. Specify a VLAN identifier for each logical interface:
      content_copy zoom_out_map
      [edit interfaces et-fpc/pic/port unit logical-unit-number]
      user@host# set vlan-id number
      
    2. Specify a protocol family and IP address for each logical interface:
      content_copy zoom_out_map
      [edit interfaces et-fpc/pic/port unit logical-unit-number]
      user@host# set family (inet | inet6 | mpls) address ip-address
      
  4. Configure per-logical interface traffic shaping by specifying the amount of bandwidth to be allocated to each logical interface:
    content_copy zoom_out_map
    [edit class-of-service interfaces et-fpc/pic/port unit logical-unit-number]
    user@host# set shaping-rate rate 
    
    Note:

    If you do not configure a shaping rate, then the line rate of the physical interface is evenly distributed across all logical interfaces, with each logical interface's portion considered its shaping rate.

  5. (Optional) Configure one or more classifiers and apply them to the logical interface.
    1. Define one or more behavior aggregate (BA) classifiers:
      content_copy zoom_out_map
      [edit class-of-service classifiers]
      user@host# set classifier-type classifier-name
      
    2. Define one or more forwarding classes for each classifier:
      content_copy zoom_out_map
      [edit class-of-service classifiers classifier-type classifier-name]
      user@host# set forwarding-class forwarding-class-name loss-priority level code-points [ aliases ] [ bit-patterns ]
      
    3. Apply one or more classifiers to the logical interface:
      content_copy zoom_out_map
      [edit class-of-service interfaces interface-name unit logical-unit-number]
      user@host# set classifiers classifier-type classifier-name
      
  6. (Optional) Configure one or more rewrite rules to set CoS bits on outgoing packets.
    1. Define one or more rewrite rules:
      content_copy zoom_out_map
      [edit class-of-service rewrite-rules]
      user@host# set traffic-type rewrite-rule-name
      
    2. Define one or more forwarding classes for each rewrite rule:
      content_copy zoom_out_map
      [edit class-of-service rewrite-rules traffic-type rewrite-rule-name]
      user@host# set forwarding-class forwarding-class-name loss-priority level code-points [ aliases ] [ bit-patterns ]
      
    3. Apply one or more rewrite rules to the logical interface for outgoing traffic:
      content_copy zoom_out_map
      [edit class-of-service interfaces interface-name unit logical-unit-number]
      user@host# set rewrite-rules traffic-type rewrite-rule-name
      
  7. (Optional) Configure one or more scheduler maps and apply them to the logical interface. Use a scheduler map to associate the properties of the output queues you define in schedulers with forwarding classes.
    1. Specify the name of a scheduler map:
      content_copy zoom_out_map
      [edit class-of-service]
      user@host# set scheduler-maps scheduler-map-name 
      
    2. Specify the name of a forwarding class to associate with the scheduler map:
      content_copy zoom_out_map
      [edit class-of-service scheduler-maps scheduler-map-name]
      user@host set forwarding-class forwarding-class-name
      
    3. Specify the name of a scheduler configured at the [edit class-of-service schedulers scheduler-name] hierarchy level to associate with the scheduler map:
      content_copy zoom_out_map
      [edit class-of-service scheduler-maps scheduler-map-name]
      user@host# set schedulers scheduler-name
      
    4. Apply the scheduler map to the logical interface:
      content_copy zoom_out_map
      [edit class-of-service]
      user@host# set interfaces et-fpc/pic/port unit logical-unit-number scheduler-map scheduler-map-name
      
  8. (Optional) Configure one or more traffical control profiles and apply them to the logical interface. Use a traffic control profile to configure traffic shaping and scheduling profiles for the logical interface.
    1. Specify the name of a traffic control profile:
      content_copy zoom_out_map
      [edit class-of-service]
      user@host# set traffic-control-profiles profile-name 
      
    2. Specify a shaping rate for the traffic control profile:
      content_copy zoom_out_map
      [edit class-of-service traffic-control-profiles profile-name]
      user@host set shaping-rate (percent percentage | rate)
      
    3. Specify a scheduler map for the traffic control profile:
      content_copy zoom_out_map
      [edit class-of-service traffic-control-profiles profile-name]
      user@host# set scheduler-map map-name
      
    4. Apply the traffic control profile to the logical interface:
      content_copy zoom_out_map
      [edit class-of-service]
      user@host# set interfaces et-fpc/pic/port unit logical-unit-number output-traffic-control-profile profile-name
      
footer-navigation