Supported Platforms
Related Documentation
- ACX, M, MX, PTX, T Series
- per-unit-scheduler
- EX, M, MX, PTX, T Series
- Junos CoS Components
- shaping-rate
- PTX Series
- Example: Configuring Virtual LAN Queuing and Shaping in PTX Series Packet Transport Routers
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:
- 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
Configure logical interface properties.
- 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.
- 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
- Specify a VLAN identifier for each logical interface:
- Enable per-VLAN queuing on the interface:[edit interfaces et-fpc/pic/port]user@host# set per-unit-scheduler
- 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).
- (Optional) Configure one or more classifiers and apply
them to the logical interface.
- Define one or more behavior aggregate (BA) classifiers:[edit class-of-service classifiers]user@host# set classifier-type classifier-name
- 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 ]
- 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
- Define one or more behavior aggregate (BA) classifiers:
- (Optional) Configure one or more rewrite rules to set
CoS bits on outgoing packets.
- Define one or more rewrite rules:[edit class-of-service rewrite-rules]user@host# set traffic-type rewrite-rule-name
- 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 ]
- 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
- Define one or more rewrite rules:
- (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.
- Specify the name of a scheduler map:[edit class-of-service]user@host# set scheduler-maps scheduler-map-name
- 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
- 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
- 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
- Specify the name of a scheduler map:
Related Documentation
- ACX, M, MX, PTX, T Series
- per-unit-scheduler
- EX, M, MX, PTX, T Series
- Junos CoS Components
- shaping-rate
- PTX Series
- Example: Configuring Virtual LAN Queuing and Shaping in PTX Series Packet Transport Routers
Published: 2013-10-31
Supported Platforms
Related Documentation
- ACX, M, MX, PTX, T Series
- per-unit-scheduler
- EX, M, MX, PTX, T Series
- Junos CoS Components
- shaping-rate
- PTX Series
- Example: Configuring Virtual LAN Queuing and Shaping in PTX Series Packet Transport Routers