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:
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:
-
Enable per-logical interface queuing on the interface:
[edit interfaces et-fpc/pic/port]
user@host# set per-unit-scheduler
-
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
-
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
-
Configure per-logical interface 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:
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.
-
(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
-
(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
-
(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.
-
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:
[edit class-of-service]
user@host# set interfaces et-fpc/pic/port unit logical-unit-number scheduler-map scheduler-map-name
-
(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.
-
Specify the name of a traffic control profile:
[edit class-of-service]
user@host# set traffic-control-profiles profile-name
-
Specify a shaping rate for the traffic control profile:
[edit class-of-service traffic-control-profiles profile-name]
user@host set shaping-rate (percent percentage | rate)
-
Specify a scheduler map for the traffic control profile:
[edit class-of-service traffic-control-profiles profile-name]
user@host# set scheduler-map map-name
-
Apply the traffic control profile to the logical interface:
[edit class-of-service]
user@host# set interfaces et-fpc/pic/port unit logical-unit-number output-traffic-control-profile profile-name