Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configuring Virtual LAN Queuing and Shaping on PTX Series Packet Transport Routers

You can enable virtual LAN (VLAN) queuing on 100-Gigabit Ethernet interfaces on PTX Series Packet Transport Routers and specify a traffic-shaping rate for each VLAN. In conjunction, you can also configure other class-of-service (CoS) features, including classifiers, schedulers, and rewrite rules.

  • Only 100-Gigabit Ethernet interfaces are supported.
  • You can configure a maximum of 10 VLANs on each interface.
  • The maximum shaping rate cannot exceed 100 Gbps for all VLANs configured on an interface.
  • Aggregated Ethernet interfaces are not supported.
  • The interface wildcard character (*) is not supported—for example, the following configuration is not supported and should not be used:
    set class-of-service interface et-* unit * shaping-rate 1gset class-of-service interface et-* unit * scheduler-map sch0

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

  1. Enable the reception and transmission of 8021.q VLAN-tagged frames on the interface:
    [edit interfaces et-fpc/pic/port]user@host# set vlan-tagging
  2. Configure logical interface properties.

    1. Specify a VLAN identifier for each logical interface:
      [edit interfaces et-fpc/pic/port unit logical-unit-number]user@host# set vlan-id number

      Note: You can specify a maximum of 10 VLAN identifiers for each physical interface.

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

    Note: The shaping rate for all VLANs cannot exceed 100 percent of the bandwidth available on the interface (100 Gbps).

  5. (Optional) Configure one or more classifiers and apply them to the logical interface.
    1. Define one or more behavior aggregate (BA) classifiers:
      [edit class-of-service classifiers]user@host# set classifier-type classifier-name
    2. Define one or more forwarding classes for each classifier:
      [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:
      [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:
      [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:
      [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:
      [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, that is, VLAN. 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:
      [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:
      [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:
      [edit class-of-service scheduler-maps scheduler-map-name]user@host# set schedulers scheduler-name
    4. Apply the scheduler map to the logical interface, that is, VLAN:
      [edit class-of-service]user@host# set interfaces et-fpc/pic/port unit logical-unit-number scheduler-map scheduler-map-name

Published: 2013-10-31