Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Applying Scheduler Maps and Shaping Rate to Logical Interfaces and VLANs

By default, output scheduling is not enabled on logical interfaces. Logical interfaces without shaping configured share a default scheduler. This scheduler has a committed information rate (CIR) that equals 0. (The CIR is the guaranteed rate.) The default scheduler has a peak information rate (PIR) that equals the physical interface shaping rate.

Note:

If you apply a shaping rate, you must keep in mind that the transit statistics for physical interfaces are obtained from the packet forwarding engine, but the traffic statistics are supplied by the PIC. Therefore, if shaping is applied to the PIC, the count of packets in the transit statistics fields do not always agree with the counts in the traffic statistics. For example, the IPv6 transit statistics will not necessarily match the traffic statistics on the interface. However, at the logical interface level, both transit and traffic statistics are obtained from the Packet Forwarding Engine and will not show any difference.

Logical interface scheduling (also called per-unit scheduling) allows you to enable multiple output queues on a logical interface and associate customized output scheduling and shaping for each queue.

Note:

Ingress scheduling does not support logical interface scheduling.

For supported PICs, you can configure a shaping rate for a VLAN or logical interface and oversubscribe the physical interface by including the shaping-rate statement at the [edit class-of-service traffic-control-profiles] hierarchy level. With this configuration approach, you can independently control the delay-buffer rate, as described in Oversubscribing Interface Bandwidth.

Physical interfaces (for example, xe-0/0/0, xe-0/0/0:0, and ge-0/0/0) support scheduling with any encapsulation type pertinent to that physical interface. For a single port, you cannot apply scheduling to the physical interface if you apply scheduling to one or more of the associated logical interfaces.

Note:

In the Junos OS implementation, the term logical interfaces generally refers to interfaces you configure by including the unit statement at the [edit interfaces interface-name] hierarchy level. As such, logical interfaces have the logical descriptor at the end of the interface name, as in xe-0/0/0.1 or xe-0/0/0:0.1, where the logical unit number is 1.

Within the [edit class-of-service] hierarchy level, you cannot use the .logical descriptor when you assign properties to logical interfaces. Instead, you must include the unit statement in the configuration. For example:

Table 1 shows the MICs and MPCs that support fine-grained queuing and scheduling.

Table 1: Fine-Grained Queuing and Scheduling Support by MIC or MPC Type

MPC

MIC

Supported

Example Configuration

Fixed Configuration MPCs

16x10GE MPC

No

Yes

[edit class-of-service interfaces ge-0/0/0 unit 1]
scheduler-map map-1;

32x10GE MPC4E

No

Yes

[edit class-of-service interfaces ge-0/0/0 unit 1]
scheduler-map map-1;

2x100GE + 8x10GE MPC4E

No

Yes

[edit class-of-service interfaces ge-0/0/0 unit 1]
scheduler-map map-1;

6x40GE + 24x10GE MPC5E

No

No

No

6x40GE + 24x10GE MPC5EQ

No

Yes

[edit class-of-service interfaces ge-0/0/0 unit 1]
scheduler-map map-1;

2x100GE + 4x10GE MPC5E

No

No

No

2x100GE + 4x10GE MPC5EQ

No

Yes

[edit class-of-service interfaces ge-0/0/0 unit 1]
scheduler-map map-1;
MPCs

MPC1

No

No

No

MPC1E

No

No

No

MPC1 Q

Any supported MIC

Yes

Example of supported configuration:

[edit class-of-service interfaces ge-0/0/0 unit 1]
scheduler-map map-1;

MPC1E Q

Any supported MIC

Yes

Example of supported configuration:

[edit class-of-service interfaces ge-0/0/0 unit 1]
scheduler-map map-1;

MPC2

No

No

No

MPC2E

No

No

No

MPC2 Q

Any supported MIC

Yes

Example of supported configuration:

[edit class-of-service interfaces ge-0/0/0 unit 1]
scheduler-map map-1;

MPC2E Q

Any supported MIC

Yes

Example of supported configuration:

[edit class-of-service interfaces ge-0/0/0 unit 1]
scheduler-map map-1;

MPC2 EQ

Any supported MIC

Yes

Example of supported configuration:

[edit class-of-service interfaces ge-0/0/0 unit 1]
scheduler-map map-1;

MPC2E EQ

Any supported MIC

Yes

Example of supported configuration:

[edit class-of-service interfaces ge-0/0/0 unit 1]
scheduler-map map-1;

MPC2E P

No

No

No

MPC3E

10-Gigabit Ethernet MIC with SFP+

Yes

Example of supported configuration:

[edit class-of-service interfaces xe-0/0/0 unit 1]
scheduler-map map-1;

40-Gigabit Ethernet MIC with QSFP+

Yes

Example of supported configuration:

[edit class-of-service interfaces et-0/0/0 unit 1]
scheduler-map map-1;

100-Gigabit Ethernet MIC with CXP

Yes

Example of supported configuration:

[edit class-of-service interfaces et-0/0/0 unit 1]
scheduler-map map-1;

MPC6E

Any supported MIC

Yes

Example of supported configuration:

[edit class-of-service interfaces et-0/0/0 unit 1]
scheduler-map map-1;

To configure scheduling on logical interfaces:

  1. Enable per-unit scheduling on the interface by including the per-unit-scheduler statement at the [edit interfaces interface-name] hierarchy level:

    When including the per-unit-scheduler statement, you must also include the vlan-tagging statement or the flexible-vlan-tagging statement (to apply scheduling to VLANs) or the encapsulation frame-relay statement (to apply scheduling to DLCIs) at the [edit interfaces interface-name] hierarchy level.

    When you include this statement, the maximum number of VLANs supported is 768 on a single-port Gigabit Ethernet IQ PIC. On a dual-port Gigabit Ethernet IQ PIC, the maximum number is 384.

    See Scaling of Per-VLAN Queuing on Non-Queuing MPCs for scaling information on non-queuing MPCs.

  2. Associate a scheduler with the interface by including the scheduler-map statement at the [edit class-of-service interfaces interface-name unit logical-unit-number] hierarchy level:

    Alternatively, associate a scheduler with the interface by including the scheduler-map statement at the [edit class-of-service traffic-control-profiles traffic control profile name] hierarchy level and then include the output-traffic-control-profile statement at the [edit class-of-service interfaces interface name unit logical unit number] hierarchy level.

  3. Configure shaping on the interface by including the shaping-rate statement at the [edit class-of-service interfaces interface-name unit logical-unit-number] hierarchy level:

    Note:

    You can also apply the shaping rate to the traffic control profile.

    By default, the logical interface bandwidth is the average of unused bandwidth for the number of logical interfaces that require default bandwidth treatment. You can specify a peak bandwidth rate in bps, either as a complete decimal number or as a decimal number followed by the abbreviation k (1000), m (1,000,000), or g (1,000,000,000).