Professional Documents
Culture Documents
Junos OS
Published
2020-03-18
ii
Juniper Networks, the Juniper Networks logo, Juniper, and Junos are registered trademarks of Juniper Networks, Inc. in
the United States and other countries. All other trademarks, service marks, registered marks, or registered service marks
are the property of their respective owners.
Juniper Networks assumes no responsibility for any inaccuracies in this document. Juniper Networks reserves the right
to change, modify, transfer, or otherwise revise this publication without notice.
®
Junos OS Hierarchical Class of Service User Guide
Copyright © 2020 Juniper Networks, Inc. All rights reserved.
The information in this document is current as of the date on the title page.
Juniper Networks hardware and software products are Year 2000 compliant. Junos OS has no known time-related
limitations through the year 2038. However, the NTP application is known to have some difficulty in the year 2036.
The Juniper Networks product that is the subject of this technical documentation consists of (or is intended for use with)
Juniper Networks software. Use of such software is subject to the terms and conditions of the End User License Agreement
(“EULA”) posted at https://support.juniper.net/support/eula/. By downloading, installing or using such software, you
agree to the terms and conditions of that EULA.
iii
Table of Contents
About the Documentation | xiv
Services to Subscribers | 6
Services to Businesses | 6
Wireless Backhaul | 7
Scheduling and Shaping in Hierarchical CoS Queues for Traffic Routed to GRE Tunnels | 22
Configuration Overview | 23
Configuration Caveats | 23
Example: Performing Output Scheduling and Shaping in Hierarchical CoS Queues for Traffic Routed
to GRE Tunnels | 24
Configuring Hierarchical Class of Service on MICs, MPCs, MLCs, and Aggregated Ethernet
Interfaces | 46
Guaranteed Bandwidth and Weight of an Interface Node on MIC and MPC Interfaces | 48
Hierarchical Scheduling for MIC and MPC Interfaces in Oversubscribed PIR Mode | 48
Per-Unit Queuing and Hierarchical Queuing for MIC and MPC Interfaces | 51
Dedicated Queue Scaling for CoS Configurations on MIC and MPC Interfaces Overview | 55
Example: Maintaining a Constant Traffic Flow by Configuring a Static VLAN Interface with a
Dynamic Profile for Subscriber Access | 95
Guidelines for Configuring Dynamic Interface Sets in a Subscriber Access Network | 110
Configuring CoS Two-Level Hierarchical Scheduling for MPLS Pseudowire Subscriber Interfaces | 142
vi
Configuring CoS Three-Level Hierarchical Scheduling for MPLS Pseudowire Subscriber Interfaces
(Logical Interfaces over a Transport Logical Interface) | 147
Configuring CoS Three-Level Hierarchical Scheduling for MPLS Pseudowire Subscriber Interfaces
(Logical Interfaces over a Pseudowire Interface Set) | 149
Guidelines for Configuring Shaping-Rate Adjustments for Subscriber Local Loops | 166
Configuring the Minimum Adjusted Shaping Rate on Scheduler Nodes for Subscribers | 168
Overview | 168
Overview | 170
Configuring Static Logical Interface Sets to Serve as CoS Hierarchical Scheduler Nodes for
Subscriber Loops | 173
Configuring the Logical Interfaces That Compose the Static Logical Interface Sets | 174
Configuring Hierarchical CoS on the Static Logical Interface Sets That Serve as Hierarchical
Scheduler Nodes for Subscriber Local Loops | 174
Configuring ANCP Functionality That Supports and Drives Shaping-Rate Adjustments for
Subscriber Local Loops | 177
Example: Configuring Hierarchical CoS Shaping-Rate Adjustments for Subscriber Local Loops | 180
Verifying the Configuration of Shaping-Rate Adjustments for Subscriber Local Loops | 183
Using Hierarchical CoS to Adjust Shaping Rates Based on Multicast Traffic | 185
Providing Accurate Scheduling for a Demux Subscriber Interface of Aggregated Ethernet Links | 191
Configuring the Distribution Type for Demux Subscribers on Aggregated Ethernet Interfaces | 192
viii
Configuring Link and Module Redundancy for Demux Subscribers in an Aggregated Ethernet
Interface | 193
Example: Separating Targeted Multicast Traffic for Demux Subscribers on Aggregated Ethernet
Interfaces | 196
Configuring the Distribution Type for PPPoE Subscribers on Aggregated Ethernet Interfaces | 209
Subscriber Interfaces That Provide Initial CoS Parameters Dynamically Obtained from RADIUS | 212
Predefined Variables for Dynamic Configuration of Initial Scheduling and Queuing | 214
CoS Traffic Shaping Attributes for Dynamic Interface Sets and Member Subscriber Sessions
Overview | 221
CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets and Member Subscriber
Sessions | 222
Guidelines for Configuring CoS Traffic Shaping Attributes for Dynamic Interface Sets and Member
Subscriber Sessions | 223
Configuring Static Default Values for Traffic Scheduling and Shaping | 225
Applying CoS Traffic-Shaping Attributes to Dynamic Interface Sets and Member Subscriber
Sessions | 227
CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets | 229
accept | 250
authentication-order | 259
auto-configure | 261
adjust-minimum | 263
adjust-percent | 264
atm-service | 265
cbr | 268
delay-buffer-rate | 276
dhcp-local-server | 291
dhcp-relay | 308
drop-profiles | 331
dynamic-profiles | 340
egress-shaping-overhead | 354
excess-bandwidth-share | 356
excess-priority | 358
family | 366
flexible-vlan-tagging | 384
guaranteed-rate | 392
hierarchical-scheduler | 394
ieee-802.1ad | 397
input-excess-bandwidth-share | 399
input-scheduler-map | 400
input-traffic-control-profile | 405
input-traffic-control-profile-remaining | 406
interfaces | 413
internal-node | 425
interpolate | 426
max-queues | 430
max-queues-per-interface | 432
member-link-scheduler | 434
output-traffic-control-profile | 437
output-traffic-control-profile-remaining | 439
overhead-accounting | 441
peak-rate | 443
per-unit-scheduler | 444
protocols | 461
proxy-arp | 465
qos-adjust-hierarchical | 467
radius-server | 473
server-group | 493
shaping-rate-excess-high | 502
shaping-rate-excess-low | 504
shaping-rate-priority-high | 506
shaping-rate-priority-low | 508
shaping-rate-priority-medium | 510
shared-instance | 513
shared-scheduler | 514
simple-filter | 516
stacked-vlan-tagging | 521
traffic-control-profiles | 527
traffic-manager | 530
transparent | 537
unit | 541
xiii
vlan-model | 555
vlan-ranges | 556
vlan-tag | 558
vlan-tags | 559
vlan-tags-outer | 560
IN THIS SECTION
Use this guide to understand and configure hierarchical class of service (CoS) features in Junos OS to
define service levels that provide different delay, jitter, and packet loss characteristics to particular
applications served by specific traffic flows. Applying CoS features to each device in your network ensures
quality of service (QoS) for traffic throughout your entire network.
®
To obtain the most current version of all Juniper Networks technical documentation, see the product
documentation page on the Juniper Networks website at https://www.juniper.net/documentation/.
If the information in the latest release notes differs from the information in the documentation, follow the
product Release Notes.
Juniper Networks Books publishes books by Juniper Networks engineers and subject matter experts.
These books go beyond the technical documentation to explore the nuances of network architecture,
deployment, and administration. The current list can be viewed at https://www.juniper.net/books.
If you want to use the examples in this manual, you can use the load merge or the load merge relative
command. These commands cause the software to merge the incoming configuration into the current
candidate configuration. The example does not become active until you commit the candidate configuration.
xv
If the example configuration contains the top level of the hierarchy (or multiple hierarchies), the example
is a full example. In this case, use the load merge command.
If the example configuration does not start at the top level of the hierarchy, the example is a snippet. In
this case, use the load merge relative command. These procedures are described in the following sections.
1. From the HTML or PDF version of the manual, copy a configuration example into a text file, save the
file with a name, and copy the file to a directory on your routing platform.
For example, copy the following configuration to a file and name the file ex-script.conf. Copy the
ex-script.conf file to the /var/tmp directory on your routing platform.
system {
scripts {
commit {
file ex-script.xsl;
}
}
}
interfaces {
fxp0 {
disable;
unit 0 {
family inet {
address 10.0.0.1/24;
}
}
}
}
2. Merge the contents of the file into your routing platform configuration by issuing the load merge
configuration mode command:
[edit]
user@host# load merge /var/tmp/ex-script.conf
load complete
xvi
Merging a Snippet
1. From the HTML or PDF version of the manual, copy a configuration snippet into a text file, save the
file with a name, and copy the file to a directory on your routing platform.
For example, copy the following snippet to a file and name the file ex-script-snippet.conf. Copy the
ex-script-snippet.conf file to the /var/tmp directory on your routing platform.
commit {
file ex-script-snippet.xsl; }
2. Move to the hierarchy level that is relevant for this snippet by issuing the following configuration mode
command:
[edit]
user@host# edit system scripts
[edit system scripts]
3. Merge the contents of the file into your routing platform configuration by issuing the load merge
relative configuration mode command:
For more information about the load command, see CLI Explorer.
Documentation Conventions
Laser warning Alerts you to the risk of personal injury from a laser.
Table 2 on page xvii defines the text and syntax conventions used in this guide.
Bold text like this Represents text that you type. To enter configuration mode, type
the configure command:
user@host> configure
Fixed-width text like this Represents output that appears on user@host> show chassis alarms
the terminal screen.
No alarms currently active
Italic text like this • Introduces or emphasizes important • A policy term is a named structure
new terms. that defines match conditions and
• Identifies guide names. actions.
Italic text like this Represents variables (options for Configure the machine’s domain
which you substitute a value) in name:
commands or configuration
[edit]
statements.
root@# set system domain-name
domain-name
Text like this Represents names of configuration • To configure a stub area, include
statements, commands, files, and the stub statement at the [edit
directories; configuration hierarchy protocols ospf area area-id]
levels; or labels on routing platform hierarchy level.
components. • The console port is labeled
CONSOLE.
< > (angle brackets) Encloses optional keywords or stub <default-metric metric>;
variables.
# (pound sign) Indicates a comment specified on the rsvp { # Required for dynamic MPLS
same line as the configuration only
statement to which it applies.
[ ] (square brackets) Encloses a variable for which you can community name members [
substitute one or more values. community-ids ]
GUI Conventions
xix
Bold text like this Represents graphical user interface • In the Logical Interfaces box, select
(GUI) items you click or select. All Interfaces.
• To cancel the configuration, click
Cancel.
> (bold right angle bracket) Separates levels in a hierarchy of In the configuration editor hierarchy,
menu selections. select Protocols>Ospf.
Documentation Feedback
We encourage you to provide feedback so that we can improve our documentation. You can use either
of the following methods:
• Online feedback system—Click TechLibrary Feedback, on the lower right of any page on the Juniper
Networks TechLibrary site, and do one of the following:
• Click the thumbs-up icon if the information on the page was helpful to you.
• Click the thumbs-down icon if the information on the page was not helpful to you or if you have
suggestions for improvement, and use the pop-up form to provide feedback.
Technical product support is available through the Juniper Networks Technical Assistance Center (JTAC).
If you are a customer with an active Juniper Care or Partner Support Services support contract, or are
xx
covered under warranty, and need post-sales technical support, you can access our tools and resources
online or open a case with JTAC.
• JTAC policies—For a complete understanding of our JTAC procedures and policies, review the JTAC User
Guide located at https://www.juniper.net/us/en/local/pdf/resource-guides/7100059-en.pdf.
• JTAC hours of operation—The JTAC centers have resources available 24 hours a day, 7 days a week,
365 days a year.
For quick and easy problem resolution, Juniper Networks has designed an online self-service portal called
the Customer Support Center (CSC) that provides you with the following features:
• Find solutions and answer questions using our Knowledge Base: https://kb.juniper.net/
To verify service entitlement by product serial number, use our Serial Number Entitlement (SNE) Tool:
https://entitlementsearch.juniper.net/entitlementsearch/
You can create a service request with JTAC on the Web or by telephone.
• Visit https://myjuniper.juniper.net.
CHAPTER 1
IN THIS CHAPTER
Scheduling and Shaping in Hierarchical CoS Queues for Traffic Routed to GRE Tunnels | 22
Example: Performing Output Scheduling and Shaping in Hierarchical CoS Queues for Traffic Routed to GRE
Tunnels | 24
Hierarchical class of service (HCoS) is the ability to apply traffic schedulers and shapers to a hierarchy of
scheduler nodes. Each level of the scheduler hierarchy can be used to shape traffic based on different
criteria such as application, user, VLAN, and physical port.
This allows you to support the requirements of different services, applications, and users on the same
physical device and physical infrastructure.
HCoS is implemented primarily using traffic classifiers at the ingress and hierarchical schedulers and shapers
at the egress.
A classifier is a filter that labels traffic at the device ingress based on configurable parameters such as
application or destination. Traffic is classified into what is called a forwarding equivalence class (FEC). The
FEC defines a class of traffic that receives common treatment.
3
Schedulers, and their associated shapers, is the function that controls the traffic bandwidth, jitter (delay
variation), and packet loss priority at the egress of the device.
Hierarchical schedulers are used to apply multiple levels of scheduling and shaping with each level applied
to different classifications such as forwarding equivalence class, VLAN, and physical interface (port) as
shown in Figure 1 on page 3.
NOTE: Hierarchical class of service is also referred to as Hierarchical Quality of Service (HQoS)
in other vendor’s documentation.
A typical application of HCoS is to configure multiple levels of egress schedulers and shapers, at the
subscriber edge, using dynamic profiles to provide traffic shaping and prioritization at the subscriber VLAN
level and for multiple classes of traffic.
Dynamic profiles are a mechanism that allows you to dynamically apply schedulers and shapers to individual
subscribers or groups of subscribers.
4
To learn more about HCoS, the following topics are very helpful:
• CoS Features of the Router Hardware, PIC, MIC, and MPC Interface Families
The Junos OS hierarchical schedulers support up to five levels of scheduler hierarchies on MX Series
devices when using enhanced queuing Dense Port Concentrators (DPCs) or fine-grained queuing Modular
Port Concentrators (MPCs), and Modular Interface Cards (MICs). It is important to know the capabilities
of your hardware with respect to HCoS. The following are a few tips to help you:
• The number of queues and logical interfaces supported is dependent upon exactly what hardware you
are using.
• The MX Series Packet Forwarding Engine handles guaranteed bandwidth and scheduler node weight
differently than other Packet Forwarding Engines.
• The fine-grained queuing MPCs and MICs have a certain granularity with respect to the shaping and
delay buffer values. The values used are not necessarily exactly the values configured.
To learn more about platform support for HCoS, use the Juniper Networks Feature Explorer
(https://pathfinder.juniper.net/feature-explorer/). In the Feature Explorer, search on hierarchical schedulers.
• HCoS is most frequently used to enforce service level agreements at the subscriber edged using dynamic
traffic control profiles.
• Hierarchical schedulers can also be applied to Ethernet pseudowire interfaces, aggregated Ethernet
interfaces, Layer 2 Tunnel Protocol (L2TP) network server (LNS) inline services, and GRE tunnels.
• Hierarchical ingress policing is a feature that is complimentary to and often used in conjunction with
HCoS.
• There are other features in Junos OS that have similar sounding names.
NOTE: The hierarchical scheduler and shaper feature supported on the SRX Series devices is not
the HCoS feature described here.
5
Before planning HCoS for you network, you should learn about HCoS, define you needs, plan how you
want to implement HCoS, and test the operation in a simulated environment.
Document Description
Day One: Deploying Basic QoS Juniper This book is a good resource for learning the basics of CoS on Juniper
Networks Books Networks devices.
Juniper MX-Series O'Reilly Media Learn about the advanced features of HCoS. This book provides an
in-depth description of how HCoS works and how it can be deployed.
It also provides a lab tested topology and configuration example.
Day One: Dynamic Subscriber Management Learn how to use HCoS in conjunction with dynamic traffic control
Juniper Networks Books profiles for subscriber management. This book also includes
troubleshooting.
QoS Enabled Networks John Wiley & Sons This book is an additional source for studying QoS.
Documentation related to HCoS is consolidated in the Hierarchical Class of Service User Guide.
RELATED DOCUMENTATION
Hierarchical class of service (HCoS) can be used to provide granular control of traffic for a variety of
different applications.
NOTE: Hierarchical class of service is also referred to as Hierarchical Quality of Service (HQoS)
in other vendor’s documentation.
Services to Subscribers
Multiservice network operators face a challenge to provide different types of services on the same
infrastructure to residential and business subscribers. The network operator needs to make sure each
subscriber gets the network resources they paid for and each service gets the network resources it needs
to operate properly.
If no CoS is applied, one service could consume most of the bandwidth of the transmission infrastructure
and starve the other services.
Using hierarchical class of service, the network edge device can have up to five levels of scheduling and
prioritization. So the traffic can be shaped and prioritized per customer and per service type. Controlling
traffic in this way provides the ability to deliver the required service level for each subscriber for each
service type.
By allowing network operators to consolidate different services and multiple customers on the same
physical infrastructure, hierarchical class of service helps maximize the ability to offer revenue generating
services while simultaneously minimizing capital cost.
Services to Businesses
Hierarchical class of service is a valuable tool for service providers that support business customers who
are running applications with different prioritization and scheduling requirements over the same
infrastructure. In this scenario hierarchical class of service allows lower priority traffic to fully utilize the
available bandwidth on a port, while simultaneously ensuring low latency and guaranteed bandwidth to
higher priority traffic on the same port.
This allows a provider to consolidate different services on the same physical device and physical
infrastructure thus optimizing network resources while maintaining the required level of service.
Wireless Backhaul
In a cellular network the operator might want to offer business services along with its cell tower traffic.
One of the main challenges is to make sure that the time-sensitive cell traffic is not affected by the business
services running on the same infrastructure. Each type of traffic has its own priority flows and bandwidth
constraints. For example, wireless backhaul is very sensitive to fluctuations in the packet stream (Jitter)
because it relies on synchronization.
In this scenario, hierarchical class of service allows each type of traffic to receive the required resources
and quality of service while being delivered over the same infrastructure.
By consolidate different services on the same physical infrastructure, HCoS helps maximize revenue and
minimize cost.
RELATED DOCUMENTATION
IN THIS SECTION
Hierarchical class of service (HCoS) is a set of capabilities that enable you to apply unique CoS treatment
for network traffic based on criteria such as user, application, VLAN, and physical port.
This allows you to support the requirements of different services, applications, and users on the same
physical device and physical infrastructure.
Hierarchical scheduling introduces some new CoS terms and also uses some familiar terms in different
contexts:
• Customer VLAN (C-VLAN)—A C-VLAN, defined by IEEE 802.1ad. A stacked VLAN contains an outer
tag corresponding to the S-VLAN, and an inner tag corresponding to the C-VLAN. A C-VLAN often
corresponds to CPE. Scheduling and shaping is often used on a C-VLAN to establish minimum and
maximum bandwidth limits for a customer. See also S-VLAN.
• Interface set—A logical group of interfaces that describe the characteristics of set of service VLANs,
logical interfaces, customer VLANs, or aggregated Ethernet interfaces. Interface sets establish the set
and name the traffic control profiles. See also Service VLAN.
• Scheduler— A scheduler defines the scheduling and queuing characteristics of a queue. Transmit rate,
scheduler priority, and buffer size can be specified. In addition, a drop profile may be referenced to
describe WRED congestion control aspects of the queue. See also Scheduler map.
• Scheduler map—A scheduler map is referenced by traffic control profiles to define queues. The scheduler
map establishes the queues that comprise a scheduler node and associates a forwarding class with a
scheduler. See also Scheduler.
• Stacked VLAN—An encapsulation on an S-VLAN with an outer tag corresponding to the S-VLAN, and
an inner tag corresponding to the C-VLAN. See also Service VLAN and Customer VLAN.
• Service VLAN (S-VLAN)—An S-VLAN, defined by IEEE 802.1ad, often corresponds to a network
aggregation device such as a DSLAM. Scheduling and shaping is often established for an S-VLAN to
provide CoS for downstream devices with little buffering and simple schedulers. See also Customer VLAN.
• Traffic control profile—Defines the characteristics of a scheduler node. Traffic control profiles are used
at several levels of the CLI, including the physical interface, interface set, and logical interface levels.
Scheduling and queuing characteristics can be defined for the scheduler node using the shaping-rate,
guaranteed-rate, and delay-buffer-rate statements. Queues over these scheduler nodes are defined by
referencing a scheduler map. See also Scheduler and Scheduler map.
Scheduler hierarchies are composed of nodes and queues. Queues terminate the hierarchy. Nodes can be
either root nodes, leaf nodes, or internal (non-leaf) nodes. Internal nodes are nodes that have other nodes
as “children” in the hierarchy.
Scheduler hierarchies consist of levels, starting with Level 1 at the physical port. This chapter establishes
a four-level scheduler hierarchy which, when fully configured, consists of the physical interface (Level 1),
the interface set (Level 2), one or more logical interfaces (Level 3), and one or more queues (Level 4).
9
NOTE: Beginning with Junos OS Release 16.1, certain MPCs on MX Series devices support up
to five levels of scheduler hierarchies. The concepts presented in this topic apply similarly to five
scheduler hierarchy levels.
Table 4 on page 9 describes the possible combinations of scheduler nodes and their corresponding node
level designations for a hierarchical queuing MIC or MPC.
One or more traffic control profiles Physical interface — One or more One or more
configured on logical interfaces, but no logical interfaces queues
interface-sets configured
Fully configured scheduler nodes Physical interface Interface-set One or more One or more
logical interfaces queues
The table illustrates how the configuration of an interface set or logical interface affects the terminology
of hierarchical scheduler nodes. For example, suppose you configure an interface-set statement with
logical interfaces (such as unit 0 and unit 2) and a queue. In this case, the interface-set is an internal node
at Level 2 of the scheduler node hierarchy. However, if there are no traffic control profiles attached to
logical interfaces, then the interface set is at Level 3 of the hierarchy.
Whereas standard CoS scheduling is based on the scheduling and queuing characteristics of a router’s
egress ports and their queues, hierarchical CoS scheduling is based on the scheduling and queuing
characteristics that span a hierarchy of scheduler nodes over a port. The hierarchy begins at Level 1, a
root node at the physical interface (port) level of the CLI hierarchy and terminates at Level 4, a leaf node
at the queue level. Between the root and leaf nodes of any scheduler hierarchy are one or more
internal nodes, which are non-root nodes that have other nodes as “children” in the hierarchy.
10
Whereas you configure standard CoS scheduling by applying a scheduler map to each egress port to specify
a forwarding class and a queue priority level, you configure hierarchical CoS scheduling with additional
parameters. To configure hierarchical CoS scheduling, you apply a scheduler map to the queue level (Level 4)
of a scheduler hierarchy, and you can apply a different traffic control profile at each of the other levels. A
traffic control profile specifies not only a scheduler map (forwarding class and queue priority level) but
also optional shaping rate (PIR), guaranteed transmit rate (CIR), burst rate, delay buffer rate, and drop
profile.
Release Description
16.1 Beginning with Junos OS Release 16.1, certain MPCs on MX Series devices support up
to five levels of scheduler hierarchies.
Priority propagation is performed for MX Series router output Interfaces on Enhanced Queuing DPCs,
MICs, and MPCs, and for M Series and T Series router output interfaces on IQ2E PICs. Priority propagation
is useful for mixed traffic environments when, for example, you want to make sure that the voice traffic
of one customer does not suffer due to the data traffic of another customer. Nodes and queues are serviced
in the order of their priority. The default priority of a queue is low, and you can explicitly configure a queue
priority by including the priority statement at the [edit class-of-service schedulers scheduler-name] hierarchy
level.
You cannot directly configure the priorities of all hierarchical scheduling elements. The priorities of internal
nodes, for example, are determined as follows:
• The highest priority of an active child, that is, a child currently containing traffic. (Interface sets only take
the highest priority of their active children.)
• Whether the node is above its configured guaranteed rate (CIR) or not (this is only relevant if the physical
interface is in CIR mode).
Each queue has a configured priority and a hardware priority. The usual mapping between the configured
priority and the hardware priority is shown in Table 5 on page 11.
11
Strict-high 0
High 0
Medium-high 1
Medium-low 1
Low 2
MPCs also have configurable CLI priorities of excess-priority high, excess-priority medium-high, excess-priority
medium-low, and excess-priority low. These priorities only take effect above the guaranteed rate.
In CIR mode, the priority for each internal node depends on whether the highest active child node is above
or below the guaranteed rate. The mapping between the highest active child’s priority and the hardware
priority below and above the guaranteed rate is shown in Table 6 on page 11.
Strict-high 0 0
High 0 3
Medium-high 1 3
Medium-low 1 3
Low 2 3
* MPCs only
12
In PIR-only mode, nodes cannot send if they are above the configured shaping rate. The mapping between
the configured priority and the hardware priority is for PIR-only mode is shown in Table 7 on page 12.
Strict-high 0
High 0
Medium-high 1
Medium-low 1
Low 2
A physical interface with hierarchical schedulers configured is shown in Figure 2 on page 12. The configured
priorities are shown for each queue at the top of the figure. The hardware priorities for each node are
shown in parentheses. Each node also shows any configured shaping rate (PIR) or guaranteed rate (CIR)
and whether or not the queues is above or below the CIR. The nodes are shown in one of three states:
above the CIR (clear), below the CIR (dark), or in a condition where the CIR does not matter (gray).
In the figure, the strict-high queue for customer VLAN 0 (cvlan 0) receives service first, even though the
customer VLAN is above the configured CIR (see Table 6 on page 11 for the reason: strict-high always
has hardware priority 0 regardless of CIR state). Once that queue has been drained, and the priority of the
node has become 3 instead of 0 (due to the lack of strict-high traffic), the system moves on to the medium
queues next (cvlan 1 and cvlan 3), draining them in a round robin fashion (empty queue lose their hardware
priority). The low queue on cvlan 4 (priority 2) is sent next, because that mode is below the CIR. Then the
high queues on cvlan 0 and cvlan2 (both now with priority 3) are drained in a round robin fashion, and
finally the low queue on cvlan 0 is drained (thanks to svlan 0 having a priority of 3).
13
RELATED DOCUMENTATION
In metro Ethernet environments, a virtual LAN (VLAN) typically corresponds to a customer premises
equipment (CPE) device and the VLANs are identified by an inner VLAN tag on Ethernet frames (called
the customer VLAN, or C-VLAN, tag). A set of VLANs can be grouped at the DSL access multiplexer
(DSLAM) and identified by using the same outer VLAN tag (called the service VLAN, or S-VLAN, tag). The
service VLANs are typically gathered at the Broadband Remote Access Server (B-RAS) level.Hierarchical
schedulers let you provide shaping and scheduling at the service VLAN level as well as other levels, such
as the physical interface. In other words, you can group a set of logical interfaces and then apply scheduling
and shaping parameters to the logical interface set as well as to other levels.
On Juniper Networks MX Series 5G Universal Routing Platforms and systems with Enhanced IQ2 (IQ2E)
PICs, you can apply CoS shaping and scheduling at one of four different levels, including the VLAN set
level. You can only use this configuration on MX Series routers or IQ2E PICs. Beginning with Junos OS
Release 16.1, certain MPCs support up to five levels of scheduler hierarchies.
Users can specify a traffic control profile (output-traffic-control-profile that can specify a shaping rate, a
guaranteed rate, and a scheduler map with transmit rate and buffer delay. The scheduler map contains the
mapping of queues (forwarding classes) to their respective schedulers (schedulers define the properties
for the queue). Queue properties can specify a transmit rate and buffer management parameters such as
buffer size and drop profile.
To configure CoS hierarchical scheduling, you must enable hierarchical scheduling by including the
hierarchical-scheduler statement at the physical interface.
RELATED DOCUMENTATION
14
When used, the interface set level of the hierarchy falls between the physical interface level (Level 1) and
the logical interface (Level 3). Queues are always Level 4 of the hierarchy.
NOTE: Beginning with Junos OS Release 16.1, certain MPCs on MX Series devices support up
to five levels of scheduler hierarchies. The concepts presented in this topic apply similarly to five
scheduler hierarchy levels.
Hierarchical schedulers add CoS parameters to the interface-set level of the configuration. They use traffic
control profiles to set values for parameters such as shaping rate (the peak information rate [PIR]),
guaranteed rate (the committed information rate [CIR] on these interfaces), scheduler maps (assigning
queues and resources to traffic), and so on.
The following CoS configuration places the following parameters in traffic control profiles at various levels:
Once configured, the traffic control profiles must be applied to the proper places in the CoS interfaces
hierarchy.
In all cases, the properties for level 4 of the hierarchical schedulers are determined by the scheduler map.
Release Description
16.1 Beginning with Junos OS Release 16.1, certain MPCs on MX Series devices support up
to five levels of scheduler hierarchies.
RELATED DOCUMENTATION
16
IN THIS SECTION
This section provides a more complete example of building a 4-level hierarchy of schedulers. The
configuration parameters are shown in Figure 3 on page 16. The queues are shown at the top of the figure
with the other three levels of the hierarchy below.
The figure’s PIR values are configured as the shaping rates and the CIRs are configured as the guaranteed
rate on the Ethernet interface ge-1/0/0. The PIR can be oversubscribed (that is, the sum of the children
17
PIRs can exceed the parent’s, as in svlan 1, where 200 + 200 + 100 exceeds the parent rate of 400)).
However, the sum of the children node level’s CIRs must never exceed the parent node’s CIR, as shown
in all the service VLANs (otherwise, the guaranteed rate could never be provided in all cases).
This configuration example presents all details of the CoS configuration for the interface in the figure
(ge-1/0/0), including:
[edit interfaces]
interface-set svlan-0 {
interface ge-1/0/0 {
unit 0;
unit 1;
}
}
interface-set svlan-1 {
interface ge-1/0/0 {
unit 2;
unit 3;
unit 4;
}
}
The keyword to configure hierarchical schedulers is at the physical interface level, as is VLAN tagging and
the VLAN IDs. In this example, the interface sets are defined by logical interfaces (units) and not outer
VLAN tags. All VLAN tags in this example are customer VLAN tags.
unit 3 {
vlan-id 103;
}
unit 4 {
vlan-id 104;
}
The traffic control profiles hold parameters for levels above the queue level of the scheduler hierarchy.
This section defines traffic control profiles for both the service VLAN level (logical interfaces) and the
customer VLAN (VLAN tag) level.
shaping-rate 200m;
guaranteed-rate 150m;
scheduler-map tcp-map-cvlanx; # Applies scheduler maps to customer VLANs
}
tcp-cvlan4 {
shaping-rate 100m;
guaranteed-rate 50m;
scheduler-map tcp-map-cvlanx; # Applies scheduler maps to customer VLANs
}
The schedulers hold the information about the queues, the last level of the hierarchy. Note the consistent
naming schemes applied to repetitive elements in all parts of this example.
This section configures the drop profiles for the example. For more information about interpolated drop
profiles, see Managing Congestion Using RED Drop Profiles and Packet Loss Priorities.
This section configures the scheduler maps for the example. Each one references a scheduler configured
in “Configuring the Schedulers” on page 19.
This section applies the traffic control profiles to the proper levels of the hierarchy.
NOTE: Although a shaping rate can be applied directly to the physical interface, hierarchical
schedulers must use a traffic control profile to hold this parameter.
NOTE: You should be careful when using a show interfaces queue command that references
nonexistent class-of-service logical interfaces. When multiple logical interfaces (units) are not
configured under the same interface set or physical interface, but are referenced by a command
such as show interfaces queue ge-10/0/1.12 forwarding-class be or show interfaces queue
ge-10/0/1.13 forwarding-class be (where logical units 12 and 13 are not configured as a
class-of-service interfaces), these interfaces display the same traffic statistics for each logical
interface. In other words, even if there is no traffic passing through a particular unconfigured
logical interface, as long as one or more of the other unconfigured logical interfaces under the
same interface set or physical interface is passing traffic, this particular logical interface displays
statistics counters showing the total amount of traffic passed through all other unconfigured
logical interfaces together.
IN THIS SECTION
Configuration Overview | 23
Configuration Caveats | 23
On MX Series routers running Junos OS Release 12.3R4 or later revisions, 13.2R2 or later revision, or
13.3R1 or later, you can manage CoS scheduling and shaping of traffic routed to generic route encapsulation
(GRE) tunnel interfaces configured on MPC1 Q, MPC2 Q, or MPC2 EQ modules.
A single egress logical interface can be converted to multiple GRE tunnel interfaces. A GRE tunnel physical
interface can support many logical interfaces, but one or more of those logical interfaces might not have
an output traffic control profiles attached. If a GRE tunnel logical interface is not attached to an output
traffic control profile, the router does not assign the interface a dedicated scheduler. Instead, the interface
23
uses a reserved scheduler intended for all unshaped tunnel traffic (traffic entering a GRE tunnel logical
interface that does not have an explicit traffic control profile configuration).
Configuration Overview
At GRE tunnel interfaces, the output-traffic-control-profile configuration statement can apply an output
traffic scheduling and shaping profile at the physical or logical interface level, while the
output-traffic-control-profile-remaining configuration statement can apply an output traffic scheduling
and shaping profile for remaining traffic at the physical interface level only. Interface sets (sets of interfaces
used to configure hierarchical CoS schedulers on supported Ethernet interfaces) are not supported on
GRE tunnel interfaces.
By default—if you do not attach an output traffic control profile to the GRE tunnel physical interface—traffic
entering the interface is scheduled and shaped using the default 95/5 scheduler with parameters as
specified in the tunnel-services configuration.
If you use an output traffic control profile to configure the shaping rate at the GRE tunnel physical interface,
the shaping-rate specified by the attached traffic control profile overrides the bandwidth specified as the
tunnel services default value.
Configuration Caveats
When configuring hierarchical CoS scheduling and shaping of traffic routed to GRE tunnels, keep the
following guidelines in mind:
• You must first configure and commit a hierarchical scheduler on the GRE tunnel physical interface,
specifying a maximum of two hierarchical scheduling levels for node scaling. After you commit the
hierarchical-scheduler configuration, you can configure scheduling and queuing parameters at the GRE
tunnel physical or logical interfaces.
• GRE tunnel interfaces support eight egress queues only. For interfaces on MPC1 Q, MPC2 Q, and
MPC2 EQ modules, you can include the max-queues-per-interface 4 statement at the [edit fpc slot-number
pic pic-number] hierarchy level to configure four-queue mode for the interface. However, any GRE tunnel
interfaces configured on those ports have eight queues.
• Queuing and scheduling calculations include Layer 3 fields. For GRE interfaces, Layer 3 fields include
the delivery header (the outer IP header), the 4-byte GRE header, and the payload protocol header and
data.
RELATED DOCUMENTATION
Example: Performing Output Scheduling and Shaping in Hierarchical CoS Queues for Traffic Routed
to GRE Tunnels | 24
24
Per-Unit Queuing and Hierarchical Queuing for MIC and MPC Interfaces | 51
Understanding Hierarchical Scheduling for MIC and MPC Interfaces | 46
IN THIS SECTION
Requirements | 24
Overview | 25
Configuration | 25
Verification | 39
This example shows how to configure a generic routing encapsulation (GRE) tunnel device to perform CoS
output scheduling and shaping of IPv4 traffic routed to GRE tunnels. This feature is supported on MX
Series routers running Junos OS Release 12.3R4 or later revisions, 13.2R2 or later revision, or 13.3R1 or
later, with GRE tunnel interfaces configured on MPC1 Q, MPC2 Q, or MPC2 EQ modules.
Requirements
This example uses the following Juniper Networks hardware and Junos OS software:
• GRE tunnel device—One MX80 router installed as an ingress provider edge (PE) router.
• Input and output logical interfaces configurable on two ports of the built-in 10-Gigabit Ethernet Modular
Interface Card (MIC):
• Input logical interface ge-1/1/0.0 for receiving traffic that is to be transported across the network.
• Output logical interfaces ge-1/1/1.0, ge-1/1/1.1, and ge-1/1/1.2 to convert to GRE tunnel source
interfaces gr-1/1/10.1, gr-1/1/10.2, and gr-1/1/10.3.
For information about interfaces hosted on modules in MX80 routers, see the following topics:
Overview
In this example, you configure the router with input and output logical interfaces for IPv4 traffic, and then
you convert the output logical interface to four GRE tunnel source interfaces. You also install static routes
in the routing table so that input traffic is routed to the four GRE tunnels.
NOTE: Before you apply a traffic control profile with a scheduler-map and shaping rate to a GRE
tunnel interface, you must configure and commit a hierarchical scheduler on the GRE tunnel
physical interface, specifying a maximum of two hierarchical scheduling levels for node scaling.
Configuration
IN THIS SECTION
Configuring Interfaces, Hierarchical Scheduling on the GRE Tunnel Physical Interface, and Static Routes | 29
Configuring Output Scheduling and Shaping at GRE Tunnel Physical and Logical Interfaces | 33
To configure scheduling and shaping in hierarchical CoS queues for traffic routed to GRE tunnel interfaces
configured on MPC1Q, MPC2Q, or MPC2 EQ modules on an MX Series router, perform these tasks:
Configuring Interfaces, Hierarchical Scheduling on the GRE Tunnel Physical Interface, and Static Routes
set chassis fpc 1 pic 1 tunnel-services bandwidth 1g
set interfaces ge-1/1/1 unit 0 family inet address 10.70.1.1/24 arp 10.70.1.3
mac 00:00:03:00:04:00
set interfaces ge-1/1/1 unit 0 family inet address 10.80.1.1/24 arp 10.80.1.3
mac 00:00:03:00:04:01
26
set interfaces ge-1/1/1 unit 0 family inet address 10.90.1.1/24 arp 10.90.1.3
mac 00:00:03:00:04:02
set interfaces ge-1/1/1 unit 0 family inet address 10.100.1.1/24 arp 10.100.1.3
mac 00:00:03:00:04:04
Configuring Output Scheduling and Shaping at GRE Tunnel Physical and Logical Interfaces
set class-of-service forwarding-classes queue 0 be
Configuring Interfaces, Hierarchical Scheduling on the GRE Tunnel Physical Interface, and Static Routes
Step-by-Step Procedure
To configure GRE tunnel interfaces (including enabling hierarchical scheduling) and static routes:
1. Configure the amount of bandwidth for tunnel services on the physical interface.
[edit]
user@host# set chassis fpc 1 pic 1 tunnel-services bandwidth 1g
[edit]
user@host# set interfaces ge-1/1/0 unit 0 family inet address 10.6.6.1/24
[edit]
user@host# set interfaces ge-1/1/1 unit 0 family inet address 10.70.1.1/24 arp 10.70.1.3 mac
00:00:03:00:04:00
user@host# set interfaces ge-1/1/1 unit 0 family inet address 10.80.1.1/24 arp 10.80.1.3 mac
00:00:03:00:04:01
user@host# set interfaces ge-1/1/1 unit 0 family inet address 10.90.1.1/24 arp 10.90.1.3 mac
00:00:03:00:04:02
user@host# set interfaces ge-1/1/1 unit 0 family inet address 10.100.1.1/24 arp 10.100.1.3 mac
00:00:03:00:04:04
[edit]
user@host# set interfaces gr-1/1/10 unit 1 family inet address 10.100.1.1/24
user@host# set interfaces gr-1/1/10 unit 1 tunnel source 10.70.1.1 destination 10.70.1.3
user@host# set interfaces gr-1/1/10 unit 2 family inet address 10.200.1.1/24
user@host# set interfaces gr-1/1/10 unit 2 tunnel source 10.80.1.1 destination 10.80.1.3
user@host# set interfaces gr-1/1/10 unit 3 family inet address 10.201.1.1/24
30
user@host# set interfaces gr-1/1/10 unit 3 tunnel source 10.90.1.1 destination 10.90.1.3
user@host# set interfaces gr-1/1/10 unit 4 family inet address 10.202.1.1/24
user@host# set interfaces gr-1/1/10 unit 4 tunnel source 10.100.1.1 destination 10.100.1.3
[edit]
user@host# set interfaces gr-1/1/10 hierarchical-scheduler
6. Install static routes in the routing table so that the device routes IPv4 traffic to the GRE tunnel source
interfaces.
Traffic destined to the subnets 10.2.2.0/24, 10.3.3.0/24, 10.4.4.0/24, and 10.5.5.0/24 is routed to the
tunnel interfaces at IP addresses 10.70.1.1, 10.80.1.1, 10.90.1.1, and 10.100.1.1, respectively.
[edit]
user@host# set routing-options static route 10.2.2.0/24 next-hop gr-1/1/10.1
user@host# set routing-options static route 10.3.3.0/24 next-hop gr-1/1/10.2
user@host# set routing-options static route 10.4.4.0/24 next-hop gr-1/1/10.3
user@host# set routing-options static route 10.5.5.0/24 next-hop gr-1/1/10.4
[edit]
user@host# commit
Results
From configuration mode, confirm your configuration by entering the show chassis fpc 1 pic 1,
show interfaces ge-1/1/0, show interfaces ge-1/1/1, show interfaces gr-1/1/10, and show routing-options
commands. If the output does not display the intended configuration, repeat the instructions in this example
to correct the configuration.
Confirm the configuration of interfaces, hierarchical scheduling on the GRE tunnel physical interface, and
static routes.
}
}
unit 3 {
tunnel {
destination 10.90.1.3;
source 10.90.1.1;
}
family inet {
address 10.201.1.1/24;
}
}
unit 4 {
tunnel {
destination 10.100.1.3;
source 10.100.1.1;
}
family inet {
address 10.202.1.1/24;
}
}
Step-by-Step Procedure
To establish a baseline measurement, note the transmission rates at each GRE tunnel source.
1. Pass traffic through the GRE tunnel at logical interfaces gr-1/1/10.1, gr-1/1/10.2, and gr-1/1/10.3.
2. To display the traffic rates at each GRE tunnel source, use the show interfaces queue operational mode
command.
The following example command output shows detailed CoS queue statistics for logical interface
gr-1/1/10.1 (the GRE tunnel from source IP address 10.70.1.1 to destination IP address 10.70.1.3).
NOTE: This step shows command output for queue 0 (forwarding class be) only.
The command output shows that the GRE tunnel device transmits traffic from queue 0 at a rate of
4879 pps. Allowing for 182 bytes per Layer 3 packet, preceded by 24 bytes of GRE overhead (a 20-byte
delivery header consisting of the IPv4 packet header followed by 4 bytes for GRE flags plus encapsulated
protocol type), the traffic rate received at the tunnel destination device is 8,040,592 bps:
Configuring Output Scheduling and Shaping at GRE Tunnel Physical and Logical Interfaces
Step-by-Step Procedure
34
To configure the GRE tunnel device with scheduling and shaping at GRE tunnel physical and logical
interfaces:
[edit]
user@host# set class-of-service forwarding-classes queue 0 be
user@host# set class-of-service forwarding-classes queue 1 ef
user@host# set class-of-service forwarding-classes queue 2 af
user@host# set class-of-service forwarding-classes queue 3 nc
user@host# set class-of-service forwarding-classes queue 4 be1
user@host# set class-of-service forwarding-classes queue 5 ef1
user@host# set class-of-service forwarding-classes queue 6 af1
user@host# set class-of-service forwarding-classes queue 7 nc1
If you need to configure up to 16 forwarding classes with multiple forwarding classes mapped
to single queues for those interface types, use the class statement instead.
2. Configure BA classifier gr-inet that, based on IPv4 precedence bits set in an incoming packet, sets the
forwarding class, loss-priority value, and DSCP bits of the packet.
[edit]
user@host# set class-of-service classifiers inet-precedence gr-inet forwarding-class be loss-priority low
code-points 000
user@host# set class-of-service classifiers inet-precedence gr-inet forwarding-class ef loss-priority low
code-points 001
user@host# set class-of-service classifiers inet-precedence gr-inet forwarding-class af loss-priority low
code-points 010
user@host# set class-of-service classifiers inet-precedence gr-inet forwarding-class nc loss-priority low
code-points 011
user@host# set class-of-service classifiers inet-precedence gr-inet forwarding-class be1 loss-priority low
code-points 100
user@host# set class-of-service classifiers inet-precedence gr-inet forwarding-class ef1 loss-priority low
code-points 101
user@host# set class-of-service classifiers inet-precedence gr-inet forwarding-class af1 loss-priority low
code-points 110
35
user@host# set class-of-service classifiers inet-precedence gr-inet forwarding-class nc1 loss-priority low
code-points 111
3. Apply BA classifier gr-inet to the GRE tunnel device input at logical interface ge-1/1/0.0.
[edit]
user@host# set class-of-service interfaces ge-1/1/0 unit 0 classifiers inet-precedence gr-inet
[edit]
user@host# set class-of-service schedulers be_sch transmit-rate percent 30
user@host# set class-of-service schedulers ef_sch transmit-rate percent 40
user@host# set class-of-service schedulers af_sch transmit-rate percent 25
user@host# set class-of-service schedulers nc_sch transmit-rate percent 5
user@host# set class-of-service schedulers be1_sch transmit-rate percent 60
user@host# set class-of-service schedulers be1_sch priority low
user@host# set class-of-service schedulers ef1_sch transmit-rate percent 40
user@host# set class-of-service schedulers ef1_sch priority medium-low
user@host# set class-of-service schedulers af1_sch transmit-rate percent 10
user@host# set class-of-service schedulers af1_sch priority strict-high
user@host# set class-of-service schedulers nc1_sch shaping-rate percent 10
user@host# set class-of-service schedulers nc1_sch priority high
[edit]
user@host# set class-of-service scheduler-maps sch_map_1 forwarding-class be scheduler be_sch
user@host# set class-of-service scheduler-maps sch_map_1 forwarding-class ef scheduler ef_sch
user@host# set class-of-service scheduler-maps sch_map_1 forwarding-class af scheduler af_sch
user@host# set class-of-service scheduler-maps sch_map_1 forwarding-class nc scheduler nc_sch
user@host# set class-of-service scheduler-maps sch_map_2 forwarding-class be scheduler be1_sch
user@host# set class-of-service scheduler-maps sch_map_2 forwarding-class ef scheduler ef1_sch
user@host# set class-of-service scheduler-maps sch_map_3 forwarding-class af scheduler af_sch
user@host# set class-of-service scheduler-maps sch_map_3 forwarding-class nc scheduler nc_sch
[edit]
36
7. Apply CoS scheduling and shaping to the output traffic at the physical interface and logical interfaces.
[edit]
user@host# set class-of-service interfaces gr-1/1/10 output-traffic-control-profile gr-ifd-tcp
user@host# set class-of-service interfaces gr-1/1/10 output-traffic-control-profile-remaining gr-ifd-remain
user@host# set class-of-service interfaces gr-1/1/10 unit 1 output-traffic-control-profile gr-ifl-tcp1
user@host# set class-of-service interfaces gr-1/1/10 unit 2 output-traffic-control-profile gr-ifl-tcp2
user@host# set class-of-service interfaces gr-1/1/10 unit 2 output-traffic-control-profile gr-ifl-tcp3
[edit]
user@host# commit
Results
From configuration mode, confirm your configuration by entering the show class-of-service
forwarding-classes, show class-of-service classifiers, show class-of-service interfaces ge-1/1/0,
show class-of-service schedulers, show class-of-service scheduler-maps, show class-of-service
traffic-control-profiles, and show class-of-service interfaces gr-1/1/10 commands. If the output does not
display the intended configuration, repeat the instructions in this example to correct the configuration.
Confirm the configuration of output scheduling and shaping at the GRE tunnel physical and logical interfaces.
queue 5 ef1;
queue 6 af1;
queue 7 nc1;
shaping-rate 8m;
guaranteed-rate 3m;
}
gr-ifl-tcp2 {
scheduler-map sch_map_2;
guaranteed-rate 2m;
}
gr-ifl-tcp3 {
scheduler-map sch_map_3;
guaranteed-rate 5m;
}
gr-ifd-remain {
shaping-rate 7m;
guaranteed-rate 4m;
}
gr-ifd-tcp {
shaping-rate 10m;
}
Verification
IN THIS SECTION
Verifying That Scheduling and Shaping Are Attached to the GRE Tunnel Interfaces | 40
Verifying That Scheduling and Shaping Are Functioning at the GRE Tunnel Interfaces | 41
40
Verifying That Scheduling and Shaping Are Attached to the GRE Tunnel Interfaces
Purpose
Verify the association of traffic control profiles with GRE tunnel interfaces.
Action
Verify the traffic control profile attached to the GRE tunnel physical interface by using the show
class-of-service interface gr-1/1/10 detail operational mode command.
Meaning
Ingress IPv4 traffic routed to GRE tunnels on the device is subject to CoS output scheduling and shaping.
Verifying That Scheduling and Shaping Are Functioning at the GRE Tunnel Interfaces
Purpose
Verify the traffic rate shaping at the GRE tunnel interfaces.
Action
1. Pass traffic through the GRE tunnel at logical interfaces gr-1/1/10.1, gr-1/1/10.2, and gr-1/1/10.3.
2. To verify the rate shaping at each GRE tunnel source, use the show interfaces queue operational mode
command.
The following example command output shows detailed CoS queue statistics for logical interface
gr-1/1/10.1 (the GRE tunnel from source IP address 10.70.1.1 to destination IP address 10.70.1.3):
NOTE: This step shows command output for queue 0 (forwarding class be) and queue 1
(forwarding class ef) only.
Meaning
Now that traffic shaping is attached to the GRE tunnel interfaces, the command output shows that traffic
shaping specified for the tunnel at logical interface gr-1/1/10.1 (shaping-rate 8m and guaranteed-rate 3m)
is honored.
• For queue 0, the GRE tunnel device transmits traffic at a rate of 3039 pps. The traffic rate received at
the tunnel destination device is 5,008,272 bps:
• For queue 0, the GRE tunnel device transmits traffic at a rate of 1218 pps. The traffic rate received at
the tunnel destination device is 2,007,264 bps:
Compare these statistics to the baseline measurements taken without traffic shaping, as described in
“Measuring GRE Tunnel Transmission Rates Without Shaping Applied” on page 32.
RELATED DOCUMENTATION
Scheduling and Shaping in Hierarchical CoS Queues for Traffic Routed to GRE Tunnels | 22
Configuring Traffic Control Profiles for Shared Scheduling and Shaping
You can configure ingress CoS parameters, including hierarchical schedulers, on MX Series routers with
Enhanced Queuing DPCs (that is, line cards that have a queuing chip). In general, the supported configuration
statements apply to per-unit schedulers or to hierarchical schedulers.
NOTE: Ingress CoS is not supported on line cards that do not contain a queuing chip.
To configure ingress CoS for per-unit schedulers, include the following statements at the [edit
class-of-service interfaces interface-name] hierarchy level:
To configure ingress CoS for hierarchical schedulers, include the interface-set interface-set-name statement
at the [edit class-of-service interfaces] hierarchy level:
By default, ingress CoS features are disabled on the Enhanced Queuing DPC.
For an Enhanced Queuing (EQ) DPC on an MX Series router, CoS queuing and scheduling are enabled on
the egress side but disabled on the ingress side by default. To enable ingress CoS on the EQ DPC, you
must configure the traffic-manager statement with ingress-and-egress mode:
NOTE: If you enable ingress CoS settings and inline services on the same FPC, the FPC moves
to the offline state. This behavior is expected because traffic black hole detection is triggered
that causes the FPC to move to the offline state.
Configured CoS features on the ingress are independent of CoS features on the egress, with the following
exceptions:
• If you configure a per-unit or hierarchical scheduler at the [edit class-of-service interfaces] hierarchy
level, the schedulers apply in both the ingress and egress directions.
45
• You cannot configure the same logical interface on an ingress and an egress interface set. A logical
interface can only belong to one interface set.
• The DPC’s frame buffer of 512 MB is shared between ingress and egress configurations.
The following behavior aggregate (BA) classification tables are supported on the ingress side of the Enhanced
Queuing DPC:
• inet-precedence
• DSCP
• exp (MPLS)
• IEEE 802.1p
RELATED DOCUMENTATION
CHAPTER 2
IN THIS CHAPTER
Per-Unit Queuing and Hierarchical Queuing for MIC and MPC Interfaces | 51
Dedicated Queue Scaling for CoS Configurations on MIC and MPC Interfaces Overview | 55
IN THIS SECTION
Guaranteed Bandwidth and Weight of an Interface Node on MIC and MPC Interfaces | 48
Hierarchical Scheduling for MIC and MPC Interfaces in Oversubscribed PIR Mode | 48
In per-unit scheduling, the logical interfaces share a common level 2 node (one per port). In
hierarchical-scheduling, each logical interface has its own level 2 node. Thus, scaling is limited by the
number of level 2 nodes.
To better control system resources in hierarchical-scheduling mode, you can limit the number of scheduler
node levels to two. In this case, all logical interfaces and interface sets with CoS scheduling policy share
a single level 2 node. Consequently, the maximum number of logical interfaces with CoS scheduling policies
is increased (the interface sets must be at level 3).
To configure scheduler node scaling, include the hierarchical-scheduler statement and set the
maximum-hierarchy-levels option to 2 at the [edit interfaces xe-fpc/pic/port] hierarchy level.
[edit interfaces]
xe-2/0/0 {
hierarchical-scheduler {
maximum-hierarchy-levels 2;
}
}
NOTE: The maximum-hierarchy-levels option supports level 3 interface sets but not level 2
interface sets. If you configure level 2 interface sets with the maximum-hierarchy-levels option,
you generate Packet Forwarding Engine errors.
The queuing model used by MIC and MPC interfaces supports three priority levels for guaranteed scheduling
priority and two lower priority levels for excess scheduling priority. You can configure a queue with one
guaranteed priority and one excess priority. For example, you can configure a queue for guaranteed low
(GL) as the guaranteed priority and configure excess high (EH) as the excess priority.
You can associate a guaranteed level with only one excess level. You can associate an excess level with
any number of guaranteed priority levels, including none.
Interface nodes maintain their guaranteed priority level (for example, guaranteed high, GH) as long as they
do not exceed their guaranteed bandwidth. If the queue bandwidth exceeds the guaranteed rate, then the
priority drops to the excess priority (for example, excess high, EH). Because excess level priorities are lower
than their guaranteed counterparts, the bandwidth guarantees for each of the other levels can be maintained.
48
Guaranteed Bandwidth and Weight of an Interface Node on MIC and MPC Interfaces
The queuing model used by MIC and MPC interfaces separates the concepts of guaranteed bandwidth and
weight of an interface node, although the two terms are often used interchangeably. The guaranteed
bandwidth for an interface node is the bandwidth the node can use, independent of what is happening at
the other nodes of the scheduling hierarchy. The weight of an interface node, on the other hand, is a value
that determines how excess bandwidth is used. The weight of a node comes into play when other nodes
at the same hierarchical scheduling level use less than the sum of their guaranteed bandwidths
For some application traffic types (such as constant bit rate voice, where there is little concern about
excess bandwidth), the guaranteed bandwidth dominates the node. For other types of application traffic
(such as bursty data, where a well-defined bandwidth is not always possible), the concept of weight
dominates the node.
Hierarchical Scheduling for MIC and MPC Interfaces in Oversubscribed PIR Mode
In contrast to the Intelligent Queuing Enhanced (IQE) and Intelligent Queuing 2 Enhanced (IQ2E) PICs, the
interfaces on MICs and MPCs set the guaranteed rate to zero in oversubscribed peak information rate
(PIR) mode for the per-unit scheduler. Also, the configured rate is scaled down to fit the oversubscribed
value. For example, if there are two logical interface units with a shaping rate of 1 Gbps each on a 1-Gbps
port (which is, therefore, oversubscribed 2 to 1), then the guaranteed rate on each unit is scaled down to
500 Mbps (scaled down by 2).
With hierarchical schedulers in oversubscribed PIR mode, the guaranteed rate for every logical interface
unit is set to zero. This means that the queue transmit rates are always oversubscribed.
Because in oversubscribed PIR mode the queue transmit rates are always oversubscribed, the following
are true:
• If the queue transmit rate is set as a percentage, then the guaranteed rate of the queue is set to zero;
but the excess rate (weight) of the queue is set correctly.
• If the queue transmit rate is set as an absolute value and if the queue has guaranteed high or medium
priority, then traffic up to the queue’s transmit rate is sent at that priority level. However, for guaranteed
low traffic, that traffic is demoted to the excess low region. This means that best-effort traffic well within
the queue’s transmit rate gets a lower priority than out-of-profile excess high traffic. This differs from
the IQE and IQ2E PICs.
RELATED DOCUMENTATION
Per-Unit Queuing and Hierarchical Queuing for MIC and MPC Interfaces | 51
CoS Features and Limitations on MIC and MPC Interfaces
Jitter Reduction in Hierarchical CoS Queues | 58
49
Scheduling and Shaping in Hierarchical CoS Queues for Traffic Routed to GRE Tunnels | 22
CoS Three-Level Hierarchical Scheduling on MPLS Pseudowire Subscriber Interfaces | 144
You can configure ingress CoS parameters, including hierarchical schedulers, on MIC and MPC interfaces
on MX Series routers. In general, the supported configuration statements apply to per-unit schedulers or
to hierarchical schedulers.
To configure ingress CoS for per-unit schedulers, include the following statements at the [edit
class-of-service interfaces interface-name] hierarchy level:
To configure ingress CoS for hierarchical schedulers, include the interface-set interface-set-name statement
at the [edit class-of-service interfaces] hierarchy level:
By default, ingress CoS features are disabled on MIC and MPC interfaces. To enable ingress CoS on a MIC
or MPC interface, configure the traffic-manager statement with ingress-and-egress mode as shown in the
following example:
chassis {
fpc 7 {
pic 0 {
traffic-manager {
mode ingress-and-egress;
}
}
}
}
Configured CoS features on the ingress are independent of CoS features on the egress.
NOTE: Before Junos OS 16.1R1, for MIC-based MX80 and MX104 routers, only ten queues on
one MIC can be configured for ingress CoS. Starting with Junos OS 16.1R1, MX80 and MX104
routers support up to 12 ingress queues on any combination of both MIC and built-in ports.
Starting with Junos 17.4R2 on MX80 and MX104 routers, you can have precise control over
which ports have ingress CoS enabled by configuring traffic-manager at the port level ([edit
chassis fpc slot-number pic pic-number port port-number] hierarchy level). You cannot, however,
configure traffic-manager at both the port level and PIC level on the same device.
NOTE: HQoS MPC cards installed in MX240, MX480, MX960, MX2008, MX2010, and MX2020
routers have a hardware limitation with an ingress queuing CoS "ingress-and-egress" configuration.
Ingress queuing can be enabled for a maximum of 10 ports per MIC Slot, resulting in 20 ports
per MPC2E-3D-NG HQoS and MPC3E-3D-NG HQoS line card with 10 ports per MIC slot. In
the XM chip there are 16 loopback streams allocated per port group for PG0 and PG1, where
PG0 is mapped to MIC slot 0 and PG1 is mapped to MIC slot 1. On enabling ingress queuing on
a PIC slot, one loopback stream from the XM chip is allocated per interface from the respective
port group. Because there are only 16 loopback streams, out of which 2 are used by default and
4 are used for tunnel interfaces and inline services, 10 streams are left for ingress CoS.
51
The following behavior aggregate (BA) classification tables are supported on the ingress side of MIC and
MPC interfaces:
• DSCP
• exp (MPLS)
• IEEE 802.1p
• inet-precedence
Release Description
17.4R2 Starting with Junos 17.4R2 on MX80 and MX104 routers, you can have precise control over
which ports have ingress CoS enabled by configuring traffic-manager at the port level
16.1R1 Starting with Junos OS 16.1R1, MX80 and MX104 routers support up to 12 ingress queues
on any combination of both MIC and built-in ports.
RELATED DOCUMENTATION
Per-Unit Queuing and Hierarchical Queuing for MIC and MPC Interfaces
IN THIS SECTION
IN THIS SECTION
Interfaces hosted on Modular Interface Card (MIC) and Modular Port Concentrator (MPC) line cards in
MX Series 5G Universal Routing Platforms support the following models of class-of-service (CoS) queuing,
depending on MIC or MPC type:
NOTE: The nonqueuing MPC1 and MPC2 line cards do not support per-unit queuing.
On MPCs that support per-unit queuing, the following queuing capabilities are available:
The per-unit CoS queuing features also support pre-classification of incoming packets to protect high
priority packets in the event of congestion. Such features include ingress DSCP rewrite and per-VLAN
classification, ingress and egress policing, and rewrites.
Hierarchical queuing MICs and MPCs support all per-unit queuing functionality plus fine-grained queuing
abilities over four or five levels of hierarchical scheduling:
• Shaping—Committed Information Rate (CIR) and a peak information rate (PIR)—at all scheduling levels,
including queues.
• Three normal- priority levels and two excess- priority levels configurable at all scheduling levels, including
queues.
• Shaping for unconfigured customer VLANs (C-VLANs) and for service VLANs (S-VLANs).
IN THIS SECTION
Interfaces hosted on MICs and MPCs support different scheduler node levels, depending on MIC or MPC
type:
Figure 4 on page 54 illustrates scheduler node levels for an interface hosted on a per-unit queuing MPC.
54
Level 3
g017445
Level 3
For interfaces hosted on per-unit queuing MPCs, the level 2 node is always a dummy node.
Figure 5 on page 54 illustrates the scheduler node levels for an interface hosted on a hierarchical queuing
MIC or MPC.
Figure 5: Scheduler Node Levels for Interfaces on Hierarchical Queuing and Scheduling MICs and MPCs
The figure depicts scheduler nodes for an interface that does not include interface sets and for which
traffic control profiles are applied to the logical interfaces only.
NOTE: If an interface set has a CoS scheduling policy but none of its child logical interfaces has
a CoS scheduling policy, then the interface set is considered to be a leaf node and has one level 2
and one level 3 node.
55
RELATED DOCUMENTATION
Dedicated Queue Scaling for CoS Configurations on MIC and MPC Interfaces
Overview
Queuing Ethernet Modular Port Concentrators (MPCs) provide a set of dedicated queues for subscriber
interfaces configured with hierarchical scheduling or per-unit scheduling.
The dedicated queues offered on these MPCs enable service providers to reduce costs through different
scaling configurations. These queuing MPCs enable service providers to reduce the cost per subscriber
by allowing many subscriber interfaces to be created with four or eight queues.
This topic describes the overall queue, scheduler node, and logical interface scaling for subscriber interfaces
created on these MIC and MPC combinations.
MPC3E-3D-NG-Q
MPC5EQ-100G10G
56
CAUTION: The maximum scaling targets provided in Table 8 on page 55 are based
on system level design specifications. Actual realized subscriber or session scale is
highly dependent upon the configuration and can be influenced by configuration
variables including: the number of routes, the number of enabled services, the number
of policy and firewall filters, policers, counters, statistics and access model type. Once
you define a configuration, your Juniper account team can help characterize the
expected system level scale or scale range for your live deployment.
MPCs vary in the number of Packet Forwarding Engines on board. MPC2E-3D-NG-Q and MPC3E-3D-NG-Q
MPCs each have one Packet Forwarding Engine, allowing all 64,000 level 4 (subscriber) nodes to be
allocated to a single MIC. MPC5EQ MPCs have two Packet Forwarding Engines, one for each possible
MIC, each supporting 64,000 level 4 (subscriber) nodes.
In Junos OS releases earlier than Release 15.1R4, SNMP traps generate system log messages to notify
you:
• When the number of available dedicated queues on the MPC drops below 10 percent. For example:
• When the maximum number of dedicated queues on the MPCs is reached. For example,
57
When the maximum number of dedicated queues is allocated, the system does not provide subsequent
subscriber interfaces with a dedicated set of queues. For per-unit scheduling configurations, there are
no configurable queues remaining on the MPC.
For hierarchical scheduling configurations, remaining queues are available when the maximum number of
dedicated queues is reached on the MPC. Traffic from these logical interfaces is considered unclassified
and attached to a common set of queues that are shared by all subsequent logical interfaces. These common
queues are the default port queues that are created for every port. You can configure a traffic-control
profile and attach that to the interface to provide CoS parameters for the remaining queues. These subscriber
interfaces remain with this traffic-control profile, even if dedicated queues become available.
Release Description
16.1R1 Beginning with Junos OS Release 16.1R1, MPC7 line cards also support five levels of
hierarchical queuing.
RELATED DOCUMENTATION
Managing Dedicated and Remaining Queues for Dynamic CoS Configurations on MIC and MPC Interfaces
Understanding Hierarchical Scheduling for MIC and MPC Interfaces | 46
IN THIS SECTION
Each queuing chip on a Modular Interface Card (MIC) or Modular Port Concentrator (MPC) internally hosts
a rate wheel thread that updates the shaper credits into the shapers available at each level of scheduling
hierarchy. At each hierarchy level, the length of this update period determines two key characteristics of
scheduling:
• The minimum buffer needed for the queue to pass packets without dropping.
At each hierarchy level, the length of the rate wheel update period is dependent upon the number of
entities enabled for that node level. Because traffic is queued at Level 5 (queues) and scheduled upwards
to Level 1 (the port), the number of entities (queues) enabled at Level 5 determines the number of entities
(logical interfaces, interface-sets, or ports) enabled at the other levels of the scheduling hierarchy. By
extension, the number of queues enabled for a given scheduler node hierarchy determines the length of
the update period at all hierarchy levels. Consequently, limiting the maximum number of queues supported
by a hierarchical queuing MIC or MPC can reduce jitter in the queues. To configure the maximum number
of queues allowed per hierarchical queuing MIC or MPC, include the max-queues statement at the [edit
chassis fpc slot-number] hierarchy level.
The QX chip on a MIC or MPC consists of two symmetrical halves, and each half supports a maximum of
64 K queues (128 K queues per QX chip). The 2-port and 4-port 10-Gigabit Ethernet MICs with XFP and
the MPC1_Q line cards have one chipset and can support a maximum of 128 K queues, distributed across
59
the two partitions of the single QX chip. The MPC2 Q and MPC2 EQ line cards have two chipsets and can
support a maximum of 256 K queues, distributed across the four partitions of the two QX chips.
Table 9 on page 59 lists the maximum number of queues supported by default and the corresponding rate
wheel update period for each hierarchical queuing MIC or MPC.
Table 9: Default Maximum Queues and Corresponding Rate Wheel Update Periods
You can configure hierarchical queuing MICs and MPCs to support a reduced maximum number of queues.
Doing so reduces the rate wheel update period used by the QX chip, which in turn reduces jitter in the
queues for the egress interfaces hosted on the line card.
Reducing the length of the QX chip rate wheel update period, in addition to reducing jitter in the hierarchical
scheduling queues, also indirectly increases the shaping granularity.
60
For a given port line rate and scheduling hierarchy level, the shaping granularity is a function of the minimum
shaper credit size and the rate wheel update period in effect as a result of the number of queues supported
by the line card.
shaping granularity = minimum shaper credit size / rate wheel update period
Table 10 on page 60 shows how shaping granularity is calculated for non-enhanced hierarchical queuing
MIC and MPC line cards with default values for minimum shaper credit size and for rate wheel update
period.
Table 10: Default Shaping Granularities on Non-Enhanced Queuing MICs and MPCs
Non-EnhancedQueuingMICorMPCDefaults
PortType Hierarchy Level Minimum Credit Update Period Calculation of Shaping Granularity
1 Gbps Level 1 (port), 4 bytes = 32 bits 13.33 ms = 32 bits / 0.01333 sec = 2.4 Kbps
Queuing Level 4 (queues) 0.01333 sec
Level 2, Level 3 16 bytes = 1.66 ms = 128 bits / 0.01333 sec = 9.6 Kbps
128 bits 0.00166 sec
10 Gbps Level 1 (port), 16 bytes = 13.33 ms = 128 bits / 0.01333 sec = 9.6 Kbps
Queuing Level 4 (queues) 128 bits 0.01333 sec
Level 2, Level 3 64 bytes = 1.66 ms = 512 bits / 0.01333 sec = 38.4 Kbps
512 bits 0.00166 sec
RELATED DOCUMENTATION
IN THIS SECTION
Requirements | 61
Overview | 61
Configuration | 61
This example shows how to reduce jitter in the output queues for VLAN ports hosted on a hierarchical
queuing MPC.
Requirements
This example uses the following Juniper Networks hardware and Junos OS software:
• MX960 router in an IPv4 network and running Junos OS Release 13.2 or later.
• Available Gigabit Ethernet port hosted on FPC slot 2, PIC slot 0, port 0.
• Available Gigabit Ethernet port hosted on port 0 of a Gigabit Ethernet Modular Interface Card (MIC) in
PIC slot 0 of an MPC2 Q Modular Port Concentrator (MPC) in FPC slot 5.
Before you begin configuring this example, make sure that the maximum number of queues allowed for
the hierarchical queuing MPC in slot 5 has not yet been configured. When you enter the show chassis fpc
5 command from configuration mode, the max-queues statement should not display.
Overview
In this example you configure hierarchical scheduling on a VLAN port hosted on a hierarchical queuing
MPC. To reduce jitter in the queues for all egress ports hosted on the MPC, reduce the maximum number
of queues allowed for MPC.
Configuration
Baseline Configuration
Step-by-Step Procedure
Configure hierarchical scheduling at xe-5.0.0.
[edit]
user@host# set interfaces xe-2/0/0 per-unit-scheduler
user@host# set interfaces xe-2/0/0 flexible-vlan-tagging
user@host# set interfaces xe-2/0/0 unit 0 vlan-id 1
user@host# set interfaces xe-2/0/0 unit 0 family inet address 10.1.1.1/24
[edit]
user@host# set class-of-service forwarding-classes queue 0 be
user@host# set class-of-service forwarding-classes queue 1 ef
user@host# set class-of-service forwarding-classes queue 2 af
user@host# set class-of-service forwarding-classes queue 3 nc
[edit]
user@host# set class-of-service schedulers be_sch priority low
user@host# set class-of-service schedulers ef_sch priority low
user@host# set class-of-service schedulers af_sch priority strict-high
user@host# set class-of-service schedulers ef_sch priority low
4. Customize the default IEEE 802.1p classifier (BA classifier based on Layer 2 header) by defining different
values for iEEE 802.1p code points.
[edit]
user@host# set class-of-service classifiers ieee_jitter forwarding-class be loss-priority low code-points 000
user@host# set class-of-service classifiers ieee_jitter forwarding-class ef loss-priority low code-points 001
user@host# set class-of-service classifiers ieee_jitter forwarding-class af loss-priority low code-points 010
user@host# set class-of-service classifiers ieee_jitter forwarding-class nc loss-priority low code-points 011
[edit]
user@host# set interfaces xe-2/0/0 unit * classifiers ieee-802.1 ieee_jitter
6. Configure the scheduler map smap_jitter to map the forwarding classes to the schedulers.
[edit]
user@host# set class-of-service scheduler-maps smap_jitter forwarding-class be scheduler be_sch
user@host# set class-of-service scheduler-maps smap_jitter forwarding-class ef scheduler ef_sch
64
7. Configure the traffic control profile tcp to combine the scheduler map smap_jitter (that maps the
forwarding classes to the schedulers for port-based scheduling) with a shaping rate (for hierarchical
scheduling).
[edit]
user@host# set class-of-service traffic-control-profiles tcp scheduler-map smap_jitter
user@host# set class-of-service traffic-control-profiles tcp shaping-rate 6g
[edit]
user@host# set class-of-service-interfaces xe-5/0/0 unit * output-traffic-control-profile tcp
[edit]
user@host# commit
Results
Confirm your configuration by entering show interfaces and show cloass-of-service commands from
configuration mode. If the output does not display the intended configuration, repeat the instructions in
this example to correct the configuration.
[edit]
user@host# show interfaces
xe-2/0/0 {
per-unit-scheduler;
flexible-vlan-tagging;
unit 0 {
vlan-id 1;
family inet {
address 10.1.1.1/24;
}
}
}
65
xe-5/0/0 {
per-unit-scheduler;
flexible-vlan-tagging;
unit 0 {
vlan-id 1;
family inet {
address 10.2.1.1/24;
}
}
}
[edit]
user@host# show class-of-service
classifiers {
ieee-802.1 ieee_jitter {
forwarding-class be {
loss-priority low code-points 000;
}
forwarding-class ef {
loss-priority low code-points 001;
}
forwarding-class af {
loss-priority low code-points 010;
}
forwarding-class nc {
loss-priority low code-points 011;
}
}
}
forwarding-classes {
queue 0 be;
queue 1 ef;
queue 2 af;
queue 3 nc;
}
traffic-control-profiles {
tcp {
scheduler-map smap_jitter;
shaping-rate 6g;
}
}
interfaces {
xe-2/0/0 {
unit * {
66
classifiers {
ieee-802.1 ieee_jitter;
}
}
}
xe-5/0/0 {
unit * {
output-traffic-control-profile tcp;
}
}
}
scheduler-maps {
smap_jitter {
forwarding-class be scheduler be_sch;
forwarding-class ef scheduler ef_sch;
forwarding-class af scheduler af_sch;
forwarding-class nc scheduler nc_sch;
}
}
schedulers {
be_sch {
priority low;
}
ef_sch {
priority low;
}
af_sch {
priority strict-high;
}
nc_sch {
priority low;
}
}
Verification
IN THIS SECTION
Purpose
Establish a baseline measurement by noting the amount of jitter that occurs when the hierarchical queuing
line card hosting the egress port is configured with the default maximum number of queues.
Action
To measure jitter:
2. Measure the variation in packet delay for selected packets in the data flow.
Purpose
Reduce jitter in the VLAN port output queues.
Action
1. Configure a reduced maximum number of queues for egress ports on the hierarchical queuing MPC in
slot 5, thereby reducing the jitter in the port queues.
[edit]
user@host# set chassis fpc 5 max-queue 64k
[edit]
user@host# commit
Purpose
Measure the amount of jitter that occurs when the hierarchical queuing line card hosting the egress port
is configured with a reduced maximum number of queues.
Action
To measure jitter:
2. Measure the variation in packet delay for selected packets in the data flow.
RELATED DOCUMENTATION
On MX Series routers, you can apply hierarchical schedulers on aggregated ethernet bundles using interface
sets. This feature enables you to configure a group of virtual LANs (VLANs) and control their bandwidth.
This feature is supported at egress only.
You can configure interface sets for aggregated Ethernet (AE) interfaces created under static configurations.
You can configure class-of-service parameters on AE interfaces, in either link-protect or non-link-protect
mode. You can configure these parameters at the AE physical interface level. The CoS configuration is
fully replicated for all AE member links in link-protect mode. You can control the way these parameters
are applied to member links in non-link-protect mode by configuring the AE interface to operate in scaled
mode or replicate mode.
The link membership list and scheduler mode of the interface set is inherited from the underlying aggregated
Ethernet interface over which the interface set is configured. When an aggregated Ethernet interface
operates in link protection mode, or if scheduler mode is configured to replicate member links, the scheduling
parameters of the interface set are copied to each of the member links.
If the scheduler mode of the aggregated Ethernet interface is set to scale member links, the scheduling
parameters are scaled based on the number of active member links (scaling factor is 1/A where A is the
number of active links in the bundle) and applied to each of the AE interface member links.
To configure an interface set, include the interface-set statement at the [edit class-of-service interfaces]
hierarchy level.
To apply scheduling and queuing parameters to the interface set, include the output-traffic-control-profile
profile-name statement at the [edit class-of-service interfaces interface-name interface-set
interface-set-name] hierarchy level.
To apply an output traffic scheduling and shaping profile for the remaining traffic to the logical interface
or interface set, include the output-traffic-control-profile-remaining profile-name statement at the [edit
class-of-service interfaces interface-name] hierarchy level or the [edit class-of-service interfaces
interface-name interface-set interface-set-name] hierarchy level.
69
RELATED DOCUMENTATION
The following example shows the creation of an interface set for aggregated Ethernet interfaces in a static
Ethernet configuration.
To configure interface sets for aggregated Ethernet (AE) interfaces created under static configurations:
[edit]
user@host# show chassis | display set
set chassis aggregated-devices ethernet device-count 10
NOTE: You also need to configure the parameters of the traffic control profile. For more
information, see the Related Documentation section on this page.
RELATED DOCUMENTATION
You can configure class-of-service parameters, such as queuing or shaping parameters on aggregated
interfaces, in either link-protect or non-link-protect mode. You can configure these parameters for per-unit
schedulers, hierarchical schedulers, or shaping at the physical and logical interface level. You can control
the way these parameters are applied by configuring the aggregated interface to operate in scale or
replicate mode.
• MX Series router interfaces on MICs or MPCs through Junos OS Release 10.2 (non-link-protect mode
only)
You can configure the applied parameters for aggregated interfaces operating in non-link-protected mode.
In link-protected mode, only one link in the bundle is active at a time (the other link is a backup link) so
schedulers cannot be scaled or replicated. In non-link-protected mode, all the links in the bundle are active
and send traffic; however, there is no backup link. If a link fails or is added to the bundle in
non-link-protected mode, the links’ traffic is redistributed among the active links.
To set the scheduling mode for aggregated interfaces, include the scale or replicate option of the
member-link-scheduler statement at the [edit class-of-service interfaces aen] hierarchy level, where n is
the configured number of the interface:
By default, if you do not include the member-link-scheduler statement, scheduler parameters are applied
to the member links in the scale mode (also called “equal division mode”).
The aggregated Ethernet interfaces are otherwise configured as usual. For more information on configuring
aggregated Ethernet interfaces, see the Junos OS Network Interfaces Library for Routing Devices.
The following examples set scale mode on the ae0 interface and replicate mode on the ae1 interface.
[edit class-of-service]
interfaces ae0 {
member-link-scheduler scale;
}
[edit class-of-service]
interfaces ae1 {
member-link-scheduler replicate;
}
NOTE: The member-link-scheduler statement only appears for aggregated interfaces. You
configure this statement for aggregated interfaces in non-link-protected mode. For more
information about link protection modes, see the Network Interfaces Configuration Guide.
NOTE: The traffic-control-profiles statement is not supported for PTX Series Packet Transport
Routers.
72
When interface parameters are using the scale option of the member-link-scheduler statement, the
following parameters under the [edit class-of-service traffic-control-profiles traffic-control-profile-name]
configuration are scaled on egress when hierarchical schedulers are configured:
• shaping-rate (PIR)
• guaranteed-rate (CIR)
• delay–buffer-rate
When interface parameters are using the scale option of the member-link-scheduler statement, the
following parameters under the [edit class-of-service schedulers scheduler-name] configuration are scaled
on egress when per-unit schedulers are configured:
• transmit-rate
• buffer-size
NOTE: You cannot apply a hierarchical scheduler at the interface set level for an ae interface.
(Interface sets cannot be configured under an ae interface.)
The following configuration parameters are not supported on ae interfaces in non-link-protection mode:
• The scheduler-map-chassis statement and the derived option for the ae interface. Chassis scheduler
maps should be applied under the physical interfaces.
• Dynamic and demux interfaces are not supported as part of the ae bundle.
Depending on the whether the scale or replicate option is configured, the member-link-scheduler statement
operates in either scaled mode (also called “equal division mode”) or replicated mode, respectively.
In scaled mode, a VLAN can have multiple flows that can be sent over multiple member links of the ae
interface. Likewise, a member link can receive traffic from any VLAN in the ae bundle. In scaled mode, the
physical interface bandwidth is divided equally among all member links of the ae bundle.
In scaled mode, the following scheduler parameter values are divided equally among the member links:
• When the parameters are configured using traffic control profiles, then the parameters scaled are the
shaping rate, guaranteed rate, and delay buffer rate.
73
• When the parameters are configured using scheduler maps, then the parameters scaled are the transmit
rate and buffer size. Shaping rate is also scaled if you configure it in bits per second (bps). Shaping rate
is not scaled if you configure it as a percentage of the available interface bandwidth.
For example, consider an ae bundle between routers R1 and R2 consisting of three links. These are ge-0/0/1,
ge-0/0/2 and ge-0/0/3 (ae0) on R1; and ge-1/0/0, ge-1/0/1, and ge-1/0/2 (ae2) on R2. Two logical
interfaces (units) are also configured on the ae0 bundle on R1: ae0.0 and ae0.1.
• ae0.0 (VLAN 100 at the logical interface level) has a PIR of 150 Mbps and a CIR of 90 Mbps.
• ae0.1 (VLAN 200 at the logical interface level) has a PIR of 90 Mbps and a CIR of 60 Mbps.
In scaled mode, the ae0 PIR is first divided among the member physical interfaces. Because there are three
members, each receives 450 / 3 = 150 Mbps as a derived value. So the scaled PIR for the members interfaces
is 150 Mbps each.
However, there are also two logical interfaces (ae0.0 and ae0.1) and VLANs (100 and 200) on ae0. Traffic
can leave on any of the three physical interfaces (ge-0/0/1, ge-0/0/2, or ge-0/0/3) in the bundle. Therefore,
two derived logical interfaces are added to the member links to represent the two VLANs.
There are now six logical interfaces on the physical interfaces of the links making up the ae bundle, one
set for VLAN 100 and the other for VLAN 200:
The traffic control profile parameters configured on ae0.0 are divided across all the underlying logical
interfaces (the unit 0s). In the same way, the traffic control profile parameters configured on ae0.1 are
divided across all the underlying logical interfaces (the unit 1s).
Therefore, the derived values of the scaled parameters on the interfaces are:
• For ge-0/0/1.0 and ge-0/0/2.0 and ge-0/0/3.0, each CIR = 90 / 3 = 30 Mbps, and each PIR = 150 / 3
= 50 Mbps.
• For ge-0/0/1.1 and ge-0/0/2.1 and ge-0/0/3.1, each CIR = 60 / 3 = 20 Mbps, and each PIR = 90 / 3 =
30 Mbps.
PIR = 50m PIR = 30m PIR = 50m PIR = 30m PIR = 50m PIR = 30m
CIR = 30m CIR = 20m CIR = 30m CIR = 20m CIR = 30m CIR = 20m
g017366
ae0 PIR = 450m
In scaled mode, when a new member link is added to the bundle, or an existing member link is either
removed or fails, then the scaling factor (based on the number of active links) is recomputed and the new
scheduler or traffic control profile parameters are reassigned. Only the PIR, CIR, and buffer parameters
are recomputed: all other parameters are simply copied at each level.
NOTE: In show class-of-service scheduler-map commands, values derived in scaled mode instead
of explicitly configured are flagged with &**sf**n suffix, where n indicates the value of the scaling
factor.
The following sample shows the output for the scheduler map named smap-all-abs with and without a
scaling factor:
NOTE: There can be multiple scheduler maps created with different scaling factors, depending
on when the child interfaces come up. For example, if there are only two active children on a
parent interface, a new scheduler map with a scaling factor of 2 is created. The scheduler map
name is smap-all-abs&**sf**2.
In replicated mode, in contrast to scaled mode, the configured scheduler parameters are simply replicated,
not divided, among all member links of the ae bundle.
In replicated mode, the following scheduler parameter values are replicated among the member links and
logical interfaces:
• When the parameters are configured using traffic control profiles, then the parameters replicated are
the shaping rate, guaranteed rate, and delay buffer rate.
• When the parameters are configured using scheduler maps, then the parameters replicated are the
transmit rate and buffer size.
If the scheduler parameters in the example configuration between routers R1 and R2 are applied with the
member-link-scheduler replicate statement and option, the following parameters are applied:
• The ae0 PIR is copied among the member physical interfaces. Each receives 450 Mbps as a PIR.
• For each logical interface unit .0, the configured PIR and CIR for ae0.0 is replicated (copied). Each logical
interface unit .0 receives a PIR of 150 Mbps and a CIR of 90 Mbps.
• For each logical interface unit .1, the configured PIR and CIR for ae0.1 is replicated (copied). Each logical
interface unit .1 receives a PIR of 90 Mbps and a CIR of 60 Mbps.
PIR = 150m PIR = 90m PIR = 150m PIR = 90m PIR = 150m PIR = 90m
CIR = 90m CIR = 60m CIR = 90m CIR = 60m CIR = 90m CIR = 60m
g017367
ae0 PIR = 450m
In replicated mode, when a new member link is added to the bundle, or an existing member link is either
removed or fails, the values are either copied or deleted from the required levels.
RELATED DOCUMENTATION
Queuing MPCs contain a queuing chip that enables rich-queuing features such as hierarchical and per-vlan
queuing. By default, all traffic passing through an interface on one of these MPCs also passes through the
queuing chip, which decreases the available bandwidth of the interface. If you do not require hierarchical
or per-vlan queuing on a particular interface of a queuing MPC, you can bypass the queuing chip to increase
the available bandwidth.
Starting with Junos OS 18.2R1, you can enable this option on vMX routers to save a vCPU when scheduling
is not needed on an interface.
To bypass the queuing chip on a queuing MPC, you must be running Junos OS Release 14.2 or later. On
vMX routers, you must be running Junos OS Release 18.2 or later. You can bypass the queuing chip on
the following line cards:
• MPC1 Q
• MPC1E Q
• MPC2 Q
77
• MPC2 EQ
• MPC2E Q
• MPC2E EQ
NOTE: It is not possible to bypass the queuing chip on an interface if per-unit or hierarchical
scheduling is configured on that interface.
For example:
[edit interfaces]
user@router# set interface- name bypass-queuing-chip
[edit interfaces]
user@router# show
interface-name {
bypass-queueing-chip;
}
BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering:
Disabled,
Flow control: Enabled, Auto-negotiation: Enabled, Remote fault: Online
Pad to minimum frame size: Disabled
Device flags : Present Running
78
Release Description
18.2R1 Starting with Junos OS 18.2R1, you can enable this option on vMX routers to save a vCPU
when scheduling is not needed on an interface.
14.2 To bypass the queuing chip on a queuing MPC, you must be running Junos OS Release 14.2
or later. On vMX routers, you must be running Junos OS Release 18.2 or later.
RELATED DOCUMENTATION
bypass-queuing-chip
2 PART
CHAPTER 3
IN THIS CHAPTER
Example: Maintaining a Constant Traffic Flow by Configuring a Static VLAN Interface with a Dynamic Profile
for Subscriber Access | 95
Hierarchical CoS enables you to apply traffic scheduling and queuing parameters (which can include a
delay-buffer bandwidth) and packet transmission scheduling parameters (which can include buffer
management parameters) to an individual subscriber interface rather than to all interfaces configured on
the port. HCoS enables you to dynamically modify queues when subscribers require services.
The logical interface set construct in a five-level scheduler hierarchy is the key feature that enables HCoS.
The interface set feature allows you to group subscribers into aggregate classes with specific guaranteed
and peak rates that map to service classes. Service classes ultimately map to how much you can charge
for the differentiated service levels.
HCoS can be applied dynamically through the use of dynamic traffic profiles and RADIUS vendor-specific
attributes (VSAs).
81
Dynamic traffic profiles are used to dynamically apply CoS to individual subscribers or groups of subscribers.
This enables you, as a service provider, to deploy a BRAS solution without having to manually provision
each customer. In a dynamic traffic profile, variables are used to represent the values for things like shaping
rate and drop priority.
Dynamic traffic profiles are used in conjunction with dynamic profiles. Dynamic profiles allow you to
dynamically provision IP service definitions by creating a template configuration and having the specific
variable values assigned in real time when the subscriber authenticates to the network.
NOTE: For a complete list of the Junos OS system variables, see: Junos OS Predefined Variables.
To learn more about how to use HCoS in conjunction with dynamic traffic control profiles for subscriber
management, read the Day One: Dynamic Subscriber Management book. Note that you will need to have
a login and password to access this document.
Before applying dynamic HCoS on your network, you should learn about HCoS, define your needs, plan
how you want to implement HCoS, and test the operation in a simulated environment.
RELATED DOCUMENTATION
Hierarchical CoS enables you to apply traffic scheduling and queuing parameters and packet transmission
scheduling parameters to an individual subscriber interface rather than to all interfaces configured on a
port. Hierarchical CoS enables you to dynamically modify queues when subscribers require services.
82
Hierarchical CoS is supported on MX Series routers with either Enhanced Queuing DPCs or queuing
MPCs/MICs installed. Beginning with Junos OS Release 16.1, five levels of hierarchy are supported on
MPC5E 3D Q line cards.
Interfaces support up to a five-level CoS scheduling hierarchy that, when fully configured, generally consists
of the physical interface (level 1), an interface set or underlying interface (level 2), one or more underlying
logical interfaces (level 3), one or more session or customer VLANs (level 4), and one or more queues (level
5). Although all CoS scheduling hierarchies are five-level, level 1 is always the physical interface and level
5 is always the queue. Hierarchical scheduling configurations consist of the type of interfaces you
configure—for example, a logical interface or an interface set—and where those interfaces reside in the
scheduling hierarchy—level 2, level 3, or level 4. Because many hierarchical scheduling configurations are
possible, we use the terms two-level hierarchical scheduling, three-level hierarchical scheduling, four-level
hierarchical scheduling in this topic.
NOTE: Starting with Junos OS 18.4R1, you can apply dynamic and static logical interfaces in
the same dynamic interface set on all MPCs that support 4 and 5-level hierarchical CoS. You can
also apply dynamic interface sets in dynamic interface sets.
Starting with Junos OS 19.3R1, you can apply an input traffic control profile (TCP) to a dynamic
logical interface set in 4-level hierarchical scheduling or to two dynamic logical interface sets in
5-level hierarchical scheduling. Thus, Junos CoS enables you to dynamically assign a static input
TCP with shaping-rate to a dynamic interface-set to enforce a customer’s SLA. If no such SLA
enforcement is needed, you can configure a static TCP that is designated as the default input
TCP assigned to any dynamic interface-set that does not already have an explicitly assigned
input TCP.
Two-level hierarchical scheduling limits the number of hierarchical levels in the scheduling hierarchy to
two as shown in Figure 5 on page 54. In this configuration, interface sets are not configured and only the
logical interfaces have traffic control profiles (TCPs). Configuring two levels of hierarchy on MPCs that
support more levels preserves resources and allows the system to scale higher.
83
g017446
Level 3 Level 2 node
In a two-level scheduling hierarchy, all logical interfaces and interface sets share a single node; no hierarchical
relationship is formed.
You control two-level hierarchical scheduling by setting the maximum-hierarchy-levels option under the
[edit interfaces interface-name hierarchical-scheduler] hierarchy to 2:
• If the maximum-hierarchy-levels option is not set, then interface sets can be at either level 2 or level 3,
depending on whether the member logical interfaces within the interface set have a traffic control profile.
• If any member logical interface has a traffic-control profile, then the interface set is always a level 2 CoS
scheduler node.
• If no member logical interface has a traffic-control profile, the interface set is always a level 3 CoS
scheduler node.
• If the maximum-hierarchy-levels option is set, then the interface set can only be at level 3; it cannot be
at level 2. In this case, if you configure a level 2 interface set, you generate Packet Forwarding Engine
errors.
Table 11 on page 83 summarizes the interface hierarchy and the CoS scheduler node levels for two-level
hierarchical scheduling.
To configure two-level hierarchical scheduling, include the hierarchical-scheduler statement at the [edit
interfaces interface-name] hierarchy level and set the maximum-hierarchy-levels option to 2.
84
[edit interfaces]
interface-name {
hierarchical-scheduler {
maximum-hierarchy-levels 2;
}
}
CAUTION: MPC3E, 32x10GE MPC4E, and 2x100GE + 8x10GE MPC4E MPCs support
only two levels of scheduling hierarchy. When enabling hierarchical scheduling on
these cards, you must explicitly set maximum-hierarchy-levels to 2.
Three-level hierarchical scheduling is supported only on MX Series routers running MPC/MIC interfaces.
Three-level hierarchical scheduling supports up to eight CoS queues. You can configure many different
three-level scheduling hierarchies, depending on the location of the interface set or the use of underlying
interfaces. In all variations, the physical interface is a level 1 CoS scheduler node and the queues reside at
the highest level. Configuring three levels of hierarchy on MPCs that support more levels preserves
resources and allows the system to scale higher.
NOTE: Three-level hierarchical scheduling is supported only on subscriber interfaces and interface
sets running over aggregated Ethernet interfaces on MPC/MIC interfaces in MX Series routers.
When you use three-level hierarchical scheduling, interface sets can reside at either level 3 or level 4. You
can also configure an underlying logical interface at level 3 and a logical interface at level 4.
Table 12 on page 84 summarizes the most common cases of the interface hierarchy and the CoS scheduler
node levels for three-level hierarchical scheduling.
Table 12: Three-Level Hierarchical Scheduling—Interface Hierarchy Versus CoS Scheduling Node Levels
Physical interface Underlying logical interface Logical interface One or more queues
85
In three-level hierarchical scheduling, the CoS scheduler nodes at level 1, level 2, and level 3 form a
hierarchical relationship.
With a three-level hierarchical scheduling, logical interfaces can reside at level 2, or they can reside at level
3 if the logical interface at level 2 is an underlying logical interface. This is shown in Figure 9 on page 85.
g041450
Level 3
Another possible configuration for three-level hierarchical scheduling is shown in Figure 10 on page 85.
In this configuration, the logical interfaces are located at level 2 and the interface sets are located at level
3.
Figure 10: Three-Level Hierarchical Scheduling—Logical Interfaces at Level 2 with Interface Sets at Level
3
Level 3
To configure three-level hierarchical scheduling, include the implicit-hierarchy option at the [edit interfaces
interface-name hierarchical-scheduler] hierarchy level and optionally set the maximum-hierarchy-levels
option to 3. (The default value for maximum-hierarchy-levels is 3.)
[edit interfaces]
86
interface-name {
hierarchical-scheduler {
implicit-hierarchy;
maximum-hierarchy-levels 3;
}
}
Figure 11 on page 86 and Figure 12 on page 87 provide two scenarios for this discussion.
Figure 11 on page 86 shows an interface hierarchy where a Gigabit Ethernet interface (ge-1/0/0) is the
physical interface. Two logical interfaces (ge-1/0/0.100 and ge-1/0/0.101) are configured on the physical
interface:
• Logical interface ge-1/0/0.100 is a member of a PPPoE interface set and a Demux interface set.
L4
TCP TCP
Pppoe- Demux- Ppp-Demux-
Logical Interface Logical Interface Logical Interface Set Logical Interface Set
L3
Sets Set (home) (demux-and pppoe)
Physical Interface
g041435
L1 GE-1/0/0
of Logical Tunnel
87
Each interface set has a dedicated queue. The CoS scheduler nodes at level 1 (physical interface), level 2
(underlying logical interfaces), and level 3 (interface sets) form a scheduling hierarchy.
To configure this scenario, you must include the implicit-hierarchy option under the hierarchical-scheduler
statement on physical interface ge-1/0/0 and configure and apply traffic-control profiles on each interface
set and underlying logical interface.
Figure 12 on page 87 shows an interface hierarchy where Gigabit Ethernet interface ge-1/0/0 is the
physical interface. Three logical interfaces are configured:
• Two logical interfaces (Pp0.100 and Demux0.100) reside on the underlying logical interface ge-1/0/0.100.
• A third logical interface (Pp0.101) resides on the underlying logical interface ge-1/0/0.101.
Figure 12: Logical Interfaces at Level 3 and Underlying Logical Interfaces at Level 2
L4
Demux0
L3 Logical Interfaces Pp0.100 TCP TCP Pp0.101
100
Underlying logical
L2 TCP GE-1/0/0.100 GE-1/0/0.101 TCP
interfaces
Each logical interface has a dedicated queue. The CoS scheduler nodes at level 1 (physical interface), level
2 (underlying logical interfaces), and level 3 (logical interfaces) form a scheduling hierarchy.
To configure this scenario, you must include the implicit-hierarchy option under the hierarchical-scheduler
statement on physical interface GE-1/0/0 and configure and apply traffic-control profiles on each logical
interface and underlying logical interface.
You can configure many different three-level scheduling hierarchies; Figure 11 on page 86 and
Figure 12 on page 87 present just two possible scenarios. Table 12 on page 84 summarizes the possible
interface locations and CoS scheduler nodes.
Beginning with Junos OS Release 16.1, four-level hierarchical scheduling is supported on MX Series routers
running NG-MPC2E, NG-MPC3E, MPC5, and MPC7 line cards. Four-level hierarchical scheduling supports
88
up to eight class of service queues. In four-level scheduling hierarchies, the physical interface is a level 1
CoS scheduler node and the queues reside at level 5.
NOTE: Four-level hierarchical scheduling is not supported agent circuit identifier (ACI) or
aggregated Ethernet (AE) interfaces.
When you use four-level hierarchical scheduling, interface sets reside at levels 2 and 3 and logical interfaces
reside at levels 3 and 4. Table 13 on page 88 summarizes the most common case of the interface hierarchy
and the CoS scheduler node levels for four-level hierarchical scheduling. Starting with Junos OS 18.4R1,
you can apply dynamic and static logical interfaces in the same dynamic interface set on all MPCs that
support 4 and 5-level hierarchical CoS. You can also apply dynamic interface sets in dynamic interface
sets.
Table 13: Four-Level Hierarchical Scheduling—Interface Hierarchy Versus CoS Scheduling Node Levels
Physical interface Interface set Customer VLAN Session Logical Interface One or more queues
(C-VLAN) (ppp or dhcp)
In four-level hierarchical scheduling, the CoS scheduler nodes at level 1, level 2, level 3, and level 4 form
a hierarchical relationship.
To configure four-level hierarchical scheduling, include the implicit-hierarchy option at the [edit interfaces
interface-name hierarchical-scheduler] hierarchy level and set the maximum-hierarchy-levels option to 4.
[edit interfaces]
interface-name {
hierarchical-scheduler {
implicit-hierarchy;
maximum-hierarchy-levels 4;
}
}
89
Release Description
19.3R1 Starting with Junos OS 19.3R1, you can apply an input traffic control profile (TCP) to a dynamic
logical interface set in 4-level hierarchical scheduling or to two dynamic logical interface sets in
5-level hierarchical scheduling. Thus, Junos CoS enables you to dynamically assign a static input TCP
with shaping-rate to a dynamic interface-set to enforce a customer’s SLA. If no such SLA enforcement
is needed, you can configure a static TCP that is designated as the default input TCP assigned to any
dynamic interface-set that does not already have an explicitly assigned input TCP.
18.4R1 Starting with Junos OS 18.4R1, you can apply dynamic and static logical interfaces in the same
dynamic interface set on all MPCs that support 4 and 5-level hierarchical CoS. You can also apply
dynamic interface sets in dynamic interface sets.
16.1 Beginning with Junos OS Release 16.1, four-level hierarchical scheduling is supported on MX Series
routers running NG-MPC2E, NG-MPC3E, MPC5, and MPC7 line cards.
RELATED DOCUMENTATION
Table 14 on page 90 lists the hardware requirements based on subscriber interface type for hierarchical
scheduling in dynamic CoS configurations.
90
RELATED DOCUMENTATION
You configure static scheduling and queuing in a dynamic profile for subscriber access. To configure CoS
in a dynamic profile for subscriber access using static scheduling and queuing parameters:
When you configure static scheduling and queuing in a dynamic profile, you reference the scheduler
map in the dynamic profile.
See The Junos OS CoS Components Used to Manage Congestion and Control Service Levels for information
about configuring the remaining CoS parameters.
2. Configure a static or dynamic subscriber interface that can be referenced in the dynamic profile.
b. Configure traffic shaping and scheduling parameters in the dynamic profile using a traffic-control
profile. Reference the scheduler map you configured in the static [edit class-of-service] hierarchy.
See Configuring Static Traffic Shaping and Scheduling Parameters in a Dynamic Profile.
c. Apply CoS parameters to a subscriber interface by referencing an interface in the dynamic profile.
92
See Applying Traffic Shaping and Scheduling to a Subscriber Interface in a Dynamic Profile.
4. To configure default values for subscribers on login, and enable subscribers to replace other CoS
parameters when replacing services, configure variables in the dynamic profile.
See “Configuring Static Default Values for Traffic Scheduling and Shaping” on page 225.
RELATED DOCUMENTATION
You can enable hierarchical CoS on a subscriber interface with an underlying aggregated Ethernet interface.
Before you begin, configure the subscriber interface with aggregated Ethernet.
• To configure a VLAN interface over aggregated Ethernet with link protection, see Configuring a Static or
Dynamic VLAN Subscriber Interface over Aggregated Ethernet and Configuring Link Protection for Aggregated
Ethernet Interfaces.
For static and dynamic IP demux interfaces, see Configuring a Static or Dynamic IP Demux Subscriber
Interface over Aggregated Ethernet.
For static and dynamic VLAN demux interfaces, see Configuring a Static or Dynamic VLAN Demux Subscriber
Interface over Aggregated Ethernet.
BEST PRACTICE: Link protection is not required for IP or demux subscriber interfaces. We
recommend that you enable targeted distribution on the demux interface to provide accurate
hierarchical scheduling for these links. See “Providing Accurate Scheduling for a Demux
Subscriber Interface of Aggregated Ethernet Links” on page 191.
93
BEST PRACTICE: While subscribers are active on aggregated Ethernet physical interfaces
with targeted distribution, we recommend that you do not change any attribute of the physical
interfaces, such as MTU. Instead, perform the following steps:
If you do not follow these steps, the commit check for your configuration fails, starting in Junos
OS Release 19.2. In earlier releases, changing the attribute values while subscribers are active
brings down the physical interface and all subscribers using that interface.
To avoid service interruptions, we recommend that you make the changes during a maintenance
window.
2. Configure the link aggregation (LAG) bundle with hierarchical scheduler mode.
You can then attach static or dynamic traffic shaping and scheduling parameters at the aggregated Ethernet
logical interface or its underlying physical interface. See:
RELATED DOCUMENTATION
[edit]
user@host# edit interfaces interface-set interface-set-name
You can now configure static traffic and scheduling parameters for each traffic-control profile, and attach
each traffic-control profile to the PPPoE interface or the PPPoE interface set. For more information, see
Using the CLI to Modify Traffic-Control Profiles That Are Currently Applied to Subscribers.
RELATED DOCUMENTATION
For hardware requirements and configuration guidelines, see Guidelines for Configuring Dynamic CoS
for Subscriber Access
CoS for PPPoE Subscriber Interfaces Overview
95
IN THIS SECTION
Requirements | 95
Overview | 95
Configuration | 96
Verification | 108
This example shows how to configure a static VLAN interface with a dynamic profile using static schedulers
and CoS parameters for subscriber access to maintain a constant traffic flow. The CoS parameters configure
a best-effort data service for subscribers.
Requirements
Before you begin, be sure that your environment meets the following requirements:
• For hierarchical scheduling configurations, hierarchical scheduling is enabled in the static CLI for the
interface referenced in the dynamic profile. If not, the dynamic profile fails.
• The output-traffic-control-profile that binds the traffic-control profile to the interface is defined within
the same dynamic profile as the interface.
Overview
In a dynamic profile, you can configure VLAN subscriber interfaces over the following statically created
logical interface types:
• GE—Gigabit Ethernet
• XE—10-Gigabit Ethernet
96
• AE—Aggregated Ethernet
Topology
We recommend that you configure each subscriber on a statically created VLAN.
You can further separate VLANs on subscriber interfaces by configuring a VLAN interface as the underlying
interface for a set of IP demux interfaces.
Configuration
IN THIS SECTION
Configuring and Applying Static Traffic Shaping and Scheduling Parameters in a Dynamic Profile | 106
To configure a static VLAN interface with a dynamic profile for subscriber access, perform these tasks:
To quickly configure this example, copy the following configuration commands into a text file, remove any
line breaks, and then paste the commands into the CLI at the [edit] hierarchy level.
Step-by-Step Procedure
After you configure a static VLAN interface, you can reference it in a dynamic profile.
[edit]
user@host# set interfaces ge-2/2/0
5. Define the family address type (inet for IPv4) for the VLAN interface.
6. Enable the physical interface to borrow an IP address from the loopback interface by setting an
unnumbered interface address. Configure a secondary IP address on the loopback interface, lo0.0, and
configure it as the preferred source address.
[edit interfaces ge-2/2/0 vlan-tagging unit 100 vlan-id 100 family inet]
user@host# set unnumbered-address lo0.0 preferred-source-address 10.0.0.1
Results
99
Confirm the configuration of the static VLAN interface by entering the show interfaces configuration
command. If the command output does not display the intended configuration, repeat the instructions in
this procedure to correct the configuration.
[edit]
user@host# show interfaces
interfaces {
ge-2/2/0 {
hierarchical-scheduler;
vlan-tagging;
unit 100 {
vlan-id 100;
family inet {
unnumbered-address lo0.0 preferred-source-address 10.0.0.1;
}
}
}
}
Step-by-Step Procedure
A dynamic profile is a set of characteristics, defined in a type of template, that you can use to provide
dynamic subscriber access and services for broadband applications. When configuring the interface at the
[dynamic-profiles profile-name interfaces] hierarchy level for a dynamic profile, you use variables to specify
the interface name and the logical unit value. When a DHCP subscriber sends a DHCP request to the
interface, the dynamic profile replaces the interface name variable and logical unit name variable with the
actual interface name and logical unit number of the interface that received the DHCP request.
NOTE: Configuration of the interface name variable and logical interface name variable at the
[edit dynamic-profiles profile-name interfaces] hierarchy level is required for a dynamic profile
to function.
1. Create the new dynamic profile for data services for subscribers.
[edit]
user@host# set dynamic-profiles data-service
2. Define the interface-name variable statement with the internal $junos-interface-ifd-name variable used
by the router to match the interface name of the receiving interface.
100
• When creating dynamic interfaces, specify the $junos-interface-unit variable used by the router to
generate a unit value for the interface.
or
4. Define the family address type (inet for IPv4) for the $junos-interface-unit variable.
Results
Confirm the configuration of the dynamic profile by entering the show dynamic-profiles configuration
command. If the command output does not display the intended configuration, repeat the instructions in
this procedure to correct the configuration.
[edit]
user@host# show dynamic-profiles
dynamic-profiles {
data-service {
interfaces {
$junos-interface-ifd-name {
unit $junos-underlying-interface-unit {
family inet;
}
}
}
101
}
}
Step-by-Step Procedure
To configure a static VLAN interface with a dynamic profile for subscriber access, you can configure a
firewall filter to provide enhanced security by blocking packets based on various match criteria, such as
subjecting traffic to a policer for rate limiting, assigning the traffic to a class-of-service (CoS) forwarding
class for later queuing and packet rewrite operations, or directing traffic to a specific routing instance.
1. Configure the family address type (inet for IPv4) for the firewall filter and specify the filter name.
We recommend that you name the filter something that indicates the filter’s purpose. In this example,
we use the bandwidth limit settings.
2. Specify the term names for the filter. Make each term name unique and represent what its function is.
The first term matches traffic that has been classified into the Expedited Forwarding (EF) class, and the
second term matches all non-EF traffic.
3. In each firewall filter term, specify the conditions used to match components of a packet. Configure
the first term to match all traffic classified as EF class.
[edit dynamic-profiles data-service firewall family inet filter EF_limit_G=768K term EF]
user@host# set from forwarding-class EF
4. Specify the actions to take when the packet matches the condition in the first term. Send the EF traffic
to the policer named POL_EF_G=768K.
[edit dynamic-profiles data-service firewall family inet filter EF_limit_G=768K term EF]
user@host# set then policer POL_EF_G=768K
5. Specify the action to take when the packet matches the condition in the second term. All non-EF packet
traffic is accepted.
102
[edit dynamic-profiles data-service firewall family inet filter EF_limit_G=768K term default]
user@host# set then accept
Results
Confirm the configuration by entering the show dynamic-profiles data-service firewall configuration
command. If the command output does not display the intended configuration, repeat the instructions in
this procedure to correct the configuration.
[edit]
user@host# show dynamic-profiles data-service firewall
family inet {
filter EF_limit_G=768K {
term EF {
from {
forwarding-class EF;
}
then policer POL_EF_G=768K;
}
term default {
then accept;
}
}
}
Step-by-Step Procedure
You can configure static scheduling and queuing parameters in a dynamic profile for subscriber access.
Schedulers are part of the basic class-of-service (CoS) infrastructure. You must define at least one scheduler
per forwarding class. Schedulers indicate a forwarding class’s priority, transmit weight, and buffer size, as
well as various shaping and rate control mechanisms.
1. Specify the best-effort scheduler for which you want to configure parameters.
NOTE: Set schedulers to the name of the scheduler to be configured or to the Junos OS
predefined variable ($junos-cos-scheduler) used for dynamic subscriber interfaces. The
predefined variable is replaced with the scheduler name obtained from the RADIUS server
when a subscriber authenticates over the interface to which the dynamic profile is attached.
2. (Optional) Configure the buffer size to use the remaining buffer available.
This parameter allows you to specify an explicit buffer size, either as a percent of interface speed or
as a function of time (specified in microseconds).
3. (Optional) Configure the drop-profile map to associate one or more drop profiles with a queue.
The default random early detection (RED) drop profile is used when no explicit drop profile mapping
is specified. Specify a packet-loss priority (PLP) level of any, and for the specified scheduler to accept
any protocol type.
4. (Optional) Configure the drop profile to map a fill level (fullness of a queue) to a drop probability
(probability that a packet is dropped).
5. (Optional) Configure the queue’s scheduler priority to a specific level (low) for guaranteed rate traffic.
6. (Optional) Configure the queue’s transmit weight [in bits per second (bps)] or as a percentage of
transmission capacity.
104
The transmit rate guarantees the rate for the queue, assuming no priority-based starvation occurs.
When you do not specify a transmit weight, or when the transmit rate is reached, the queue can only
send excess-rate traffic because that queue’s priority is demoted to the excess region. A percentage
of zero (0) drops all packets in the queue.
7. (Optional) Configure the queue’s weight as either a percentage, or a proportion, for any unused
bandwidth traffic to share.
Behavior varies based on interface mode, explicit configuration, and whether any other queues have
explicit weight configured. By default, excess bandwidth between the guaranteed and shaped rate is
shared equally among queues.
8. (Optional) Configure the priority of how excess bandwidth traffic is sent on a scheduler in a dynamic
profile.
To prevent the queue from sending any excess rate traffic, set to none.
Results
Confirm the configuration of the scheduler with static values in the dynamic profile by entering the show
dynamic-profiles data-service class-of-service configuration command. If the command output does not
display the intended configuration, repeat the instructions in this procedure to correct the configuration.
[edit]
user@host# show dynamic-profiles data-service class-of-service
class-of-service {
schedulers {
be-scheduler {
buffer-size remainder;
drop-profile-map loss-priority any protocol any drop-profile drop3;
priority low;
transmit-rate percent 40;
excess-rate percent 90;
105
excess-priority high;
}
}
}
Step-by-Step Procedure
After you define your schedulers, you must link them to a set of queues on a logical interface using a
scheduler map. Applying a scheduler map to an interface places the related set of schedulers and drop
profiles into effect.
3. Associate the scheduler you previously defined (be-scheduler) with the scheduler map.
Results
Confirm the configuration of the scheduler map by entering the show dynamic-profiles data-service
class-of-service scheduler-maps configuration command. If the command output does not display the
intended configuration, repeat the instructions in this procedure to correct the configuration.
[edit]
user@host# show dynamic-profiles data-service class-of-service scheduler-maps
scheduler-maps {
data-service-map {
forwarding-class best-effort scheduler be-scheduler;
}
}
106
Configuring and Applying Static Traffic Shaping and Scheduling Parameters in a Dynamic Profile
Step-by-Step Procedure
Configure static traffic shaping and scheduling parameters in a traffic-control profile. A traffic-control
profile is a generic class-of-service (CoS) container that you can apply at all points of a CoS hierarchy to
affect the committed information rate (CIR), peak information rate (PIR), and excess bandwidth handling.
You can specify the traffic-control profile at the port, logical interface, or logical interface-set level. The
traffic-control profile also references the scheduler map.
2. Apply the static scheduler map, data-service-map, that you previously configured.
3. Configure the shaping rate [in bits per second (bps)] to use for the scheduler in the dynamic profile.
The shaping rate places a maximum limit on a queue’s transmit capacity. By default, the shaping rate
is equal to the interface speed/shaping rate enabling the queue to send a the full rate of the interface.
4. Configure the guaranteed rate [in bits per second (bps)] to use for the scheduler in the dynamic profile.
The guaranteed rate is the minimum bandwidth the queue can receive; if excess physical interface
bandwidth is available for use, the logical interface can receive more than the guaranteed rate provisioned
for the interface, depending on how you choose to manage excess bandwidth and the interface’s mode
of PIR compared to CIR/PIR.
5. Configure the delay-buffer rate [in bits per second (bps)] based on the delay-buffer calculation.
The delay buffer rate setting at one level of the hierarchy becomes the reference bandwidth used at
the next higher level, and the sum of the reference bandwidth cannot exceed the value used at a lower
level. If you do not include this statement, the delay-buffer rate is based on the guaranteed rate if one
is configured, or on the shaping rate if no guaranteed rate is configured.
6. After you configure the traffic shaping and scheduling CoS parameters in a dynamic profile, you apply
them to an interface. The output traffic-control profile enables you to provide traffic scheduling to the
interface.
Configure the interface name and logical interface using a variable, and apply the output traffic-control
profile to the interface. Specify the previously defined traffic-control profile, tcp-data-service.
Results
Confirm the configuration and application of the static traffic shaping and scheduling parameters by
entering the show dynamic-profiles configuration command. If the command output does not display the
intended configuration, repeat the instructions in this procedure to correct the configuration.
[edit]
user@host# show dynamic-profiles
dynamic-profiles {
data-service {
class-of-service {
interfaces {
$junos-interface-ifd-name {
unit $junos-underlying-interface-unit {
output-traffic-control-profile tcp-data-service;
}
}
}
traffic-control-profiles {
tcp-data-service {
scheduler-map data-service-map;
shaping-rate 50k;
guaranteed-rate 10k;
delay-buffer-rate 10k;
}
}
}
}
108
Verification
IN THIS SECTION
Verifying Traffic Shaping and Scheduling Profiles for Subscriber Access | 108
Purpose
View the class-of-service (CoS) configurations that are referenced in a dynamic profile for subscriber
access.
Action
Meaning
The Shaping rate, Delay Buffer rate, and Guaranteed rate fields indicate rates of 50,000 bps, 10,000 bps,
and 10,000 bps, respectively, for the traffic-control profile.
Purpose
Display the mapping of schedulers to forwarding classes and a summary of scheduler parameters for each
entry.
109
Action
Meaning
The Scheduler map field indicates the parameters are for the best-effort scheduler. The Transmit rate field
shows 40 percent; the Rate Limit field indicates no limit; and the Drop profiles fields are for drop3.
RELATED DOCUMENTATION
CHAPTER 4
IN THIS CHAPTER
Example: Configuring a Dynamic Service VLAN Interface Set of Subscribers in a Dynamic Profile | 132
IN THIS SECTION
Guidelines for Configuring Dynamic Interface Sets in a Subscriber Access Network | 110
Interface sets enable service providers to group logical interfaces or other interface sets so they can apply
CoS parameters to all of the traffic in the group.
Interface sets are beneficial for various scenarios in a subscriber access network. For example, you can
use an interface set to configure a local loop with a small number of subscribers. Interface sets are also
useful for grouping a large number of subscribers into a particular service class or for defining traffic
engineering aggregates for DSLAMs.
When configuring interface sets for subscriber access, keep the following guidelines in mind:
• You can configure interface sets of VLAN demux, PPPoE, or demux interfaces over aggregated Ethernet
interfaces.
• An interface can only belong to one interface set. If you try to add the same interface to different interface
sets, the commit operation fails.
111
• You configure the interface set and the traffic scheduling and shaping parameters in a dynamic profile.
However, you must apply the traffic-control profile to the interface set in the static [edit class-of-service]
hierarchy.
NOTE: This rule applies to all interface sets except ACI sets.
• The $junos-interface-set-name predefined variable is available only for RADIUS Accept messages;
change of authorization (CoA) requests are not supported.
• The $junos-svlan-interface-set-name predefined variable locally generates an interface set name for
use by dual-tagged VLAN interfaces based on the outer tag of the dual-tagged VLAN. The format of the
generated variable is physical_interface_name - outer_VLAN_tag. For example, an aggregated Ethernet
interface “ae0,” with a dual-tagged VLAN interface that has an outer tag of “111,” results in a
$junos-svlan-interface-set-name dynamic variable of “ae0-111”. Similarly, a non-aggregated Ethernet
interface of ge-1/1/0, with the same dual-tagged VLAN interface that has an outer tag of “111,” results
in a $junos-svlan-interface-set-name dynamic variable of “ge-1/1/0-111”.
Another use case for this predefined variable is to conserve CoS resources in a mixed business and
residential topology by collecting the residential subscribers into an interface set associated with the
physical interface, so that a level 2 node is used for the interface set rather than for each residential
interface. Otherwise, because the business and residential subscribers share the same interface and
business subscribers require three levels of CoS, then three levels are configured for each residential
subscriber. That results in an unnecessary level 2 node being consumed for each residential connection,
wasting CoS resources.
VLAN interface that has an outer tag of “111” and an inner tag of “200,” results in a
$junos-tagged-vlan-interface-set-name dynamic variable of “ge-1/1/0-200-111”.
• All dynamic demux, dual-tagged VLAN logical interfaces with the same outer VLAN tag and physical
interface are assigned to the same interface set and all CoS values provisioned with the dynamic profile
are applied to the interfaces that are part of the set.
• The interface set name must be explicitly referenced in the CoS configuration as part of the static
configuration outside of the dynamic profile. The CoS configuration is static and the interface set name
must be statically referenced.
NOTE: This rule applies to all interface sets except ACI sets.
• RADIUS can return an access-accept message under certain conditions. A configured RADIUS VSA for
the interface set name takes precedence over the locally generated variable on the router. This means
that if the interface-set-name VSA is configured on RADIUS, the router continues to use this variable
instead of the locally generated value from the dynamic variable.
• Sets of aggregated Ethernet interfaces are supported on MPC/MIC interfaces on MX Series routers
only.
• The supported interface stacks for aggregated Ethernet in an interface set include VLAN demux interfaces,
IP demux interfaces, and PPPoE logical interfaces over VLAN demux interfaces.
• The link membership list and scheduler mode of the interface set are inherited from the underlying
aggregated Ethernet interface over which the interface set is configured.
• When an aggregated Ethernet interface operates in link protection mode, or if the scheduler mode is
configured to replicate member links, the scheduling parameters of the interface set are copied to each
of the member links.
• If the scheduler mode of the aggregated Ethernet interface is set to scale member links, the scheduling
parameters are scaled based on the number of active member links and applied to each of the aggregated
interface member links.
RELATED DOCUMENTATION
Example: Configuring a Dynamic Service VLAN Interface Set of Subscribers in a Dynamic Profile | 132
Interface sets enable you to provide hierarchical scheduling to a group of subscriber interfaces.
Before you begin, configure the subscriber interfaces that you intend to include in the interface set.
TIP: You must configure the interface set in the static [edit class-of-service] hierarchy, not
in the [edit dynamic-profiles] hierarchy.
RELATED DOCUMENTATION
IN THIS SECTION
Requirements | 114
Overview | 114
Verification | 131
Requirements
Overview
In this example, the network administrator groups dynamic VLAN interfaces in an interface set. The
interface set is configured in a dynamic profile, and enables hierarchical scheduling for the VLAN interfaces
for a multiplay service.
DHCP is used as the access method, and RADIUS is used as the authentication method for the interfaces
associated with the interface set.
To quickly configure the dynamic VLANs, copy the following commands and paste them into the router
terminal window:
[edit]
edit dynamic-profiles vlan-prof
edit interfaces $junos-interface-ifd-name unit $junos-interface-unit
set vlan-id $junos-vlan-id
set demux-source inet
set family inet unnumbered-address lo0.0 preferred-source-address 203.0.113.32
top
edit interfaces ge-1/0/0
set hierarchical-scheduler
set vlan-tagging
edit auto-configure vlan-ranges dynamic-profile vlan-prof
set ranges any
set accept inet
top
set interfaces lo0 unit 0 family inet address 203.0.113.32/32
Step-by-Step Procedure
In this section, you create a dynamic profile for the VLAN IDs to be automatically assigned when subscribers
log in.
[edit]
user@host#edit dynamic-profile vlan-prof
Step-by-Step Procedure
To configure the VLAN interfaces:
[edit]
user@host# edit interfaces ge-1/0/0
Step-by-Step Procedure
To configure the loopback interface:
[edit]
user@host# edit interfaces lo0
[edit]
edit dynamic-profiles multiplay class-of-service schedulers be_sch
set transmit-rate percent 12
set buffer-size percent 12
set priority low
up
edit ef_sch
set transmit-rate percent 12
set buffer-size percent 12
set priority low
up
edit af_sch
set transmit-rate percent 12
set buffer-size percent 12
set priority low
118
up
edit nc_sch
set transmit-rate percent 12
set buffer-size percent 12
set priority low
up
edit voice_sch
set transmit-rate percent 12
set buffer-size percent 12
set priority low
up
edit video_sch
set transmit-rate percent 12
set buffer-size percent 12
set priority low
up
edit game_sch
set transmit-rate percent 12
set buffer-size percent 12
set priority low
up
edit data_sch
set transmit-rate percent 12
set buffer-size percent 12
set priority low
up 2
edit scheduler-maps all_smap
set forwarding-class be scheduler be_sch
set forwarding-class ef scheduler ef_sch
set forwarding-class af scheduler af_sch
set forwarding-class nc scheduler nc_sch
set forwarding-class voice scheduler voice_sch
set forwarding-class video scheduler video_sch
set forwarding-class game scheduler game_sch
set forwarding-class data scheduler data_sch
up 2
edit traffic-control-profiles multiplay
set scheduler-map all_smap
set shaping-rate 100m
set guaranteed-rate 20m
Step-by-Step Procedure
119
In this section, you create a dynamic profile for the multiplay service and configure scheduling and shaping.
[edit]
user@host# edit dynamic-profiles multiplay class-of-service schedulers
Step-by-Step Procedure
To configure the scheduler map:
2. Configure the forwarding classes for each service in the scheduler map.
Step-by-Step Procedure
To configure the traffic-control profile the interface set:
To quickly configure the interface set, copy the following commands and paste them into the router
terminal window:
[edit]
edit dynamic-profiles multiplay
edit interfaces interface-set $junos-interface-set-name
set interface $junos-interface-ifd-name unit $junos-underlying-interface-unit
top
edit class-of-service interfaces interface-set
set output-traffic-control-profile multiplay
Step-by-Step Procedure
To configure the interface variable for the interface set:
[edit]
user@host#edit dynamic-profiles multiplay
Step-by-Step Procedure
To configure the interface set:
Step-by-Step Procedure
You apply the traffic-control profile outside of the dynamic profile in the [edit class-of-service] hierarchy.
1. Specify the interface set to which you want to apply the traffic-control profile.
[edit class-of-service]
user@host#edit interfaces interface-set dynamic-set
2. Attach the output traffic-control profile defined in the dynamic profile to the interface set.
[edit]
edit system services dhcp-local-server authentication
set password $ABC123
set username-include user-prefix multiplay
up 1
set dynamic-profile dhcp-vlan-prof aggregate-clients replace
set group vlans interface ge-1/0/0
top
edit access address-assignment pool v4 family inet
set network 203.0.113.0/16
set range limited low 203.0.113.10
set range limited high 203.0.113.250
set dhcp-attributes maximum-lease-time 84600
124
Step-by-Step Procedure
To configure DHCP access:
[edit system]
user@host# edit services dhcp-local-server authentication
Step-by-Step Procedure
To configure address assignment pools:
[edit access]
user@host#edit address-assignment pool v4 family inet
125
4. Configure the maximum length of time in seconds for which a subscriber can request and hold a lease.
[edit]
edit access radius-server 192.51.100.108
set secret $ABC123ABC123ABC123
set timeout 5
set retry 5
up 2
edit profile acc-prof
set authentication-order radius
set radius authentication-server 192.51.100.108
Step-by-Step Procedure
To configure RADIUS access:
[edit access]
user@host#edit radius-server 192.51.100.108
126
2. Configure the required secret (password) that the local router or switch passes to the RADIUS client.
3. Configure the length of time that the local router or switch waits to receive a response from a RADIUS
server.
4. Configure the number of times that the router or switch attempts to contact a RADIUS accounting
server.
[edit access]
user@host#edit profile acc-prof
Results
dynamic-profiles {
vlan-prof {
interfaces {
127
“$junos-interface-ifd-name” {
unit "$junos-interface-unit" {
vlan-id "$junos-vlan-id";
demux-source inet;
family inet {
unnumbered-address lo0.0 preferred-source-address 203.0.113.32;
}
}
}
}
}
multiplay {
class-of-service {
traffic-control-profiles {
multiplay {
scheduler-map all_smap;
shaping-rate 100m;
guaranteed-rate 20m;
}
}
interfaces {
interface-set “$junos-interface-set-name” {
interface “$junos-interface-ifd-name” {
unit “$junos-underlying-interface-unit”;
}
}
“$junos-interface-ifd-name” {
unit "$junos-interface-unit" {
output-traffic-control-profile multiplay;
}
}
}
scheduler-maps {
all_smap {
forwarding-class be scheduler be_sch;
forwarding-class ef scheduler ef_sch;
forwarding-class af scheduler af_sch;
forwarding-class nc scheduler nc_sch;
forwarding-class voice scheduler voice_sch;
forwarding-class video scheduler video_sch;
forwarding-class game scheduler game_sch;
forwarding-class data scheduler data_sch;
}
}
128
schedulers {
be_sch {
transmit-rate percent 12;
buffer-size percent 12;
priority low;
}
ef_sch {
transmit-rate percent 12;
buffer-size percent 12;
priority low;
}
af_sch {
transmit-rate percent 12;
buffer-size percent 12;
priority low;
}
nc_sch {
transmit-rate percent 12;
buffer-size percent 12;
priority low;
}
voice_sch {
transmit-rate percent 12;
buffer-size percent 12;
priority low;
}
video_sch {
transmit-rate percent 12;
buffer-size percent 12;
priority low;
}
game_sch {
transmit-rate percent 12;
buffer-size percent 12;
priority low;
}
data_sch {
transmit-rate percent 12;
buffer-size percent 12;
priority low;
}
}
}
}
129
access {
radius-server {
192.51.100.108 {
secret "$ABC123ABC123ABC123"; ## SECRET-DATA
timeout 5;
retry 5;
}
}
profile acc-prof {
authentication-order radius;
radius {
authentication-server 192.51.100.108;
}
}
address-assignment {
pool v4 {
family inet {
network 203.0.113.0/16;
range limited {
low 203.0.113.10;
high 203.0.113.250;
}
dhcp-attributes {
maximum-lease-time 84600;
}
}
}
}
}
class-of-service {
interfaces {
interface-set dynamic-set {
output-traffic-control-profile multiplay;
}
}
}
interfaces {
interface-set “$junos-interface-set-name” {
interface "$junos-interface-ifd-name" {
unit "$junos-underlying-interface-unit";
}
}
"$junos-interface-ifd-name" {
unit "$junos-underlying-interface-unit" {
130
family inet {
unnumbered-address lo0.0 preferred-source-address 203.0.113.32;
}
}
}
}
}
}
interfaces {
ge-1/0/0 {
hierarchical-scheduler;
vlan-tagging;
auto-configure {
vlan-ranges {
dynamic-profile vlan-prof {
accept inet;
ranges {
any;
}
}
}
}
}
lo0 {
unit 0 {
family inet {
address 203.0.113.32/32;
}
}
}
}
system {
services {
dhcp-local-server {
authentication {
password $ABC123;
username-include {
user-prefix multiplay;
}
}
dynamic-profile multiplay aggregate-clients replace;
group vlans {
interface ge-1/0/0.0;
}
131
}
}
}
Verification
IN THIS SECTION
Verifying the Interfaces that are Included in the Interface Set | 131
Verifying the Traffic Scheduling and Shaping Parameters for the Interface Set | 131
Purpose
Verify the interfaces included in the interface set.
Action
Verifying the Traffic Scheduling and Shaping Parameters for the Interface Set
Purpose
Verify that the traffic scheduling and shaping parameters are applied properly to an interface included in
the interface set.
Action
RELATED DOCUMENTATION
IN THIS SECTION
Requirements | 132
Overview | 132
Configuration | 133
Verification | 136
Interface sets enable you to provide hierarchical scheduling to a group of subscriber interfaces. In this
example, by using the $junos-svlan-interface-set-name internal dynamic variable when specifying the
interface set name, you can locally generate an interface set name for use by SVLAN interfaces based on
the outer tag of the dual-tagged VLAN. The format of the generated variable is physical_interface_name -
outer_VLAN_tag.
Requirements
Before you begin, configure the subscriber interfaces that you intend to include in the interface set. You
can find general configuration instructions for the supported dynamic interface configuration in DHCP
Subscriber Interface Overviewand in the following:
• For dynamic VLAN interfaces, see Configuring a Static or Dynamic VLAN Subscriber Interface over Aggregated
Ethernet.
• For dynamic IP demux interfaces, see Configuring Dynamic Subscriber Interfaces Using IP Demux Interfaces
in Dynamic Profiles and Configuring a Static or Dynamic IP Demux Subscriber Interface over Aggregated
Ethernet.
• For dynamic VLAN demux interfaces, see Configuring Dynamic Subscriber Interfaces Using VLAN Demux
Interfaces in Dynamic Profiles.
Overview
Interface sets enable you to provide hierarchical scheduling to a group of subscriber interfaces. By using
the $junos-svlan-interface-set-name internal dynamic variable when specifying the interface set name,
you can locally generate an interface set name for use by SVLAN interfaces based on the outer tag of the
dual-tagged VLAN. The format of the generated variable is physical_interface_name - outer_VLAN_tag.
133
• interface-set—Configures the name of the scheduler for dynamic CoS. In this example, you use the
$junos-svlan-interface-set-name variable to obtain the locally generated interface set name for use by
SVLAN interfaces based on the outer tag of the dual-tagged VLAN.
Configuration
[edit]
set dynamic-profiles profile-dhcp-ipdemux interfaces interface-set $junos-svlan-interface-set-name interface
$junos-interface-ifd-name unit $junos-underlying-interface-unit
set dynamic-profiles profile-dhcp-ipdemux interfaces $junos-interface-ifd-name unit
$junos-underlying-interface-unit
set class-of-service traffic-control-profiles tcp1 scheduler-map schedMap
set class-of-service traffic-control-profiles tcp1 shaping-rate 50m
set class-of-service traffic-control-profiles tcp1 guaranteed-rate 200k
set class-of-service traffic-control-profiles tcp3 scheduler-map ss1q0q1
set class-of-service traffic-control-profiles tcp3 shaping-rate 20m
set class-of-service traffic-control-profiles tcp3 guaranteed-rate 5m
set class-of-service interfaces interface-set ae0-111 output-traffic-control-profile tcp1
set class-of-service interfaces interface-set ae0-111 output-traffic-control-profile-remaining tcp3
Step-by-Step Procedure
To configure an SVLAN interface set of subscriber interfaces:
1. Access the dynamic profile you want to modify for interface sets.
[edit]
user@host# edit dynamic-profiles profile-dhcp-ipdemux
The interface set is created dynamically when the subscriber logs in.
4. Include dynamic IP demux interface creation within the dynamic interface set.
5. Access the SVLAN interface set name that you expect $junos-svlan-interface-set-name to generate.
For example, to specify the expected interface set name for aggregated Ethernet interface ae0 and
outer VLAN tag 111, include ae0-111 for the interface-set-name variable.
6. Apply traffic shaping and queuing parameters to the SVLAN interface set.
TIP: You must configure the interface set in the static [edit class-of-service] hierarchy, not
in the [edit dynamic-profiles] hierarchy.
7. Apply traffic shaping and queuing parameters to any remaining traffic on the SVLAN interface set.
Results
From configuration mode, confirm your configuration by entering the show dynamic-profiles command
and the show class-of-service command. If the output does not display the intended configuration, repeat
the instructions in this example to correct the configuration.
Verification
Purpose
Verify the interfaces that are included in the interface set.
Action
Purpose
Display information for active subscribers.
Action
RELATED DOCUMENTATION
CHAPTER 5
IN THIS CHAPTER
Configuring CoS Two-Level Hierarchical Scheduling for MPLS Pseudowire Subscriber Interfaces | 142
Configuring CoS Three-Level Hierarchical Scheduling for MPLS Pseudowire Subscriber Interfaces (Logical
Interfaces over a Transport Logical Interface) | 147
Configuring CoS Three-Level Hierarchical Scheduling for MPLS Pseudowire Subscriber Interfaces (Logical
Interfaces over a Pseudowire Interface Set) | 149
Junos OS supports two aspects of CoS for MPLS pseudowire subscriber interfaces. You can apply CoS
rewrite rules and behavior aggregate (BA) classifiers to MPLS pseudowire subscriber interfaces. In addition,
CoS performs egress hierarchical shaping towards the subscriber on MPLS pseudowire subscriber interfaces.
Hierarchical CoS enables you to apply traffic scheduling and queuing parameters and packet transmission
scheduling parameters to an individual subscriber interface rather than to all interfaces configured on the
port. Hierarchical CoS is supported on MX Series routers with either EQ DPCs or MPC/MICs installed.
On Juniper Networks MX Series routers, MPC/MIC and EQ DPC interfaces support a four-level CoS
scheduling hierarchy that, when fully configured, consists of the physical interface (level 1), the interface
set or the underlying interface (level 2), one or more logical interfaces (level 3), and one or more queues
(level 4). Although all CoS scheduling hierarchies are four-level, level 1 is always the physical interface and
level 4 is always the queue. Hierarchical scheduling configurations consist of the type of interfaces you
configure; for example, a logical interface or an interface set and where those interfaces reside in the
scheduling hierarchy, either level 2 or level 3. Because many hierarchical scheduling configurations are
possible, we use the terms two-level hierarchical scheduling and three-level hierarchical scheduling in this
discussion.
138
RELATED DOCUMENTATION
CoS supports two-level and three-level hierarchies for MPLS pseudowire subscriber interfaces.
To configure two-level scheduling, include the maximum-hierarchy-levels 2 option under the [edit interfaces
interface-name hierarchical-scheduler] statement on the physical interface of the logical tunnel anchor
point.
To configure three-level hierarchical scheduling, include the implicit-hierarchy option under the [edit
interfaces interface-name hierarchical-scheduler] statement on the physical interface of the logical tunnel
anchor point. Use the following guidelines for configuring the implicit-hierarchy option:
• If an output traffic-control profile is configured on the pseudowire transport interface and on a pseudowire
service interface, the two interfaces form a scheduling hierarchy. The pseudowire transport interface
resides in a level 2 scheduler node and the pseudowire service interface resides in a level 3 scheduler
node.
• If an output traffic-control profile is configured on the pseudowire services interface but not on a
pseudowire transport interface, the pseudowire services interface resides in a level 3 scheduler node.
• If an output traffic-control profile is only configured on the pseudowire transport interface and not on
the pseudowire services interface, the pseudowire transport interface resides in a level 3 scheduler node
and all pseudowire traffic uses this node.
If the implicit-hierarchy option is not set on the logical tunnel anchor point, logical interfaces behave
normally with the hierarchical-scheduler mode configured with or without the hierarchical-scheduler
maximum-hierarchy-levels option under the [edit interfaces interface-name hierarchical-scheduler]
statement. In this case, when you apply a traffic-control profile to the pseudowire transport and service
logical interfaces, they both reside in level 3 scheduler nodes and do not form a scheduling hierarchy,
which might not be the desirable behavior. In business edge, where only the pseudowire logical interfaces
need to be shaped, applying the traffic-control profile at just the transport logical interface may be sufficient.
139
When configuring the logical tunnel physical interface for the maximum hierarchy level, all pseudowire
logical interfaces operating on the physical interface use the same hierarchy model. If you want to mix
two-level and three-level scheduling hierarchies, you can group the pseudowires together by hierarchy
levels and share the same logical tunnel anchor point or you can use three-level scheduling for all
pseudowires over the anchor point.
To specify rewrite rules and classifiers on pseudowire interfaces, reference the pseudowire device under
the [edit class-of-service interfaces] hierarchy level and specify the rewrite rules and classifiers for the
pseudowire interfaces.
To control all pseudowire traffic using the same logical tunnel interface, apply CoS policies at the physical
interface for the anchor logical tunnel.
NOTE: Starting with Junos OS Release 17.3R1, stateful anchor point redundancy support is
provided for pseudowire subscriber logical interface by the underlying redundant logical tunnel
interface (rlt) in active-backup mode. This redundancy protects the access and the core facing
link against anchor PFE (Packet Forwarding Engine) failure. Starting in Junos OS Release 18.1R2,
full hierarchical CoS support is provided for stateful anchor point redundancy of pseudowire
subscriber logical interfaces. Both transport and services logical interfaces created for the
pseudowire subscriber logical interface are stacked on the underlying redundant logical tunnel
control logical interface. This logical interface stacking model is used for both redundant and
non-redundant pseudowire subscriber logical interfaces. Hierarchical CoS is supported and
configured the same on both redundant and non-redundant pseudowire subscriber logical
interfaces.
Release Description
18.1R2 Starting in Junos OS Release 18.1R2, full hierarchical CoS support is provided for stateful
anchor point redundancy of pseudowire subscriber logical interfaces.
RELATED DOCUMENTATION
Configuring CoS Three-Level Hierarchical Scheduling for MPLS Pseudowire Subscriber Interfaces
(Logical Interfaces over a Transport Logical Interface) | 147
Configuring CoS Three-Level Hierarchical Scheduling for MPLS Pseudowire Subscriber Interfaces
(Logical Interfaces over a Pseudowire Interface Set) | 149
Anchor Redundancy Pseudowire Subscriber Logical Interfaces Overview
hierarchical-scheduler | 395
Two-level hierarchical scheduling limits the number of hierarchical levels in the scheduling hierarchy to
two. In a two-level scheduling hierarchy, all logical interfaces and interface sets share a single level 2 node.
Table 15 on page 140 summarizes the interface hierarchy and the CoS scheduler node levels for two-level
hierarchical scheduling.
You use the two-level hierarchical scheduling when you have many pseudowires but you do not require
shaping specific to the subscriber logical interface. For example, when your configuration is one subscriber
per pseudowire interface.
Figure 14 on page 141 shows a two-level hierarchical scheduling configuration for the MPLS pseudowires.
In this configuration, level 1 is the physical interface used for the logical tunnel anchor node. All of the
pseudowire transport interfaces share a single level 2 node. The level 3 nodes are the pseudowire transport
logical interfaces (ps0.0, ps1.0, and ps2.0). In this configuration, interface sets are not configured and only
the logical interfaces have traffic control profiles.
141
L4
TCP
L2 Dummy
L1 Logical Tunnel
g041325
Physical Interface
Two-level hierarchical scheduling has up to eight class of service queues. For this configuration, include
the maximum-hierarchy-levels 2 option under the [edit interfaces interface-name hierarchical-scheduler]
hierarchy level at the physical interface for the anchor logical tunnel.
NOTE: You cannot configure shaping policies on both the pseudowire logical interfaces and the
subscriber logical interfaces over the same pseudowire. If a traffic-control profile is configured
on a pseudowire logical interface, and CoS policies are configured on the subscriber logical
interface over another pseudowire, all of the logical interfaces are at level 3 and act as peers.
RELATED DOCUMENTATION
Before configuring CoS parameters for MPLS pseudowire subscriber interfaces, you must first complete
these tasks:
1. Configure the pseudowire logical interfaces. See Configuring a Pseudowire Subscriber Logical Interface.
2. Configure the pseudowire device count. See Configuring the Maximum Number of Pseudowire Logical
Interface Devices Supported on the Router.
3. Configure the pseudowire device including the logical tunnel anchor point. See Configuring a Pseudowire
Subscriber Logical Interface Device.
4. Configure the pseudowire transport logical interface. See Configuring the Transport Logical Interface for
a Pseudowire Subscriber Logical Interface.
5. Configure the pseudowire signaling (either Layer 2 circuit signaling or Layer 2 VPN signaling). See
Configuring Layer 2 Circuit Signaling for Pseudowire Subscriber Logical Interfaces or Configuring Layer 2
VPN Signaling for Pseudowire Subscriber Logical Interfaces.
6. Configure the pseudowire logical interfaces. See Configuring the Service Logical Interface for a Pseudowire
Subscriber Logical Interface.
To configure CoS policies on MPLS pseudowire subscriber interfaces using two-level scheduling:
1. Configure the hierarchical scheduler for the physical interface used for the logical tunnel (anchor point).
For two-level scheduling the hierarchical scheduler must be set to maximum-scheduler levels 2.
[edit]
user@host#edit interfaces ps-anchor-device-name
user@host#set hierarchical-scheduler maximum-hierarchy-levels 2
[edit class-of-service]
user@host#edit interfaces ps ps-device-name
user@host#edit unit logical-unit-number
user@host#set output-traffic-control-profile profile-name
The available rewrite rule types for pseudowire interfaces are dscp and inet-precedence.
[edit class-of-service]
143
The available classifier types for pseudowire interfaces are dscp and inet-precedence.
[edit class-of-service]
user@host#edit classifiers (dscp | inet-precedence) classifier-name
user@host#edit forwarding-class class-name
user@host#set loss-priority class-name code-points [aliases] [bit-patterns]
RELATED DOCUMENTATION
In three-level hierarchical scheduling, the CoS scheduler nodes at level 1, level 2, and level 3 form a
scheduling hierarchy. You can configure many different three-level scheduling hierarchies, depending on
the location of the interface set and the use of underlying interfaces. In all variations, the physical interface
on which the logical tunnel resides is a level 1 CoS scheduler node and the queues reside at level 4.
Three-level scheduling hierarchies can have up to eight class of service queues.
Table 16 on page 144summarizes the most common three-level hierarchical scheduling configurations and
shows the interface hierarchy and CoS scheduler nodes.
Table 16: Three-Level Hierarchical Scheduling–Interface Hierarchy Versus CoS Scheduling Node Levels
Physical interface Pseudowire interface set Pseudowire service logical One or more queues
interfaces
Physical interface Pseudowire transport logical Pseudowire interface set One or more queues
interface
Physical interface Pseudowire transport logical Pseudowire service logical One or more queues
interface interfaces
Figure 15 on page 145 shows an MPLS pseudowire three-level scheduling hierarchy that includes two
pseudowire service logical interfaces over a pseudowire transport logical interface. This variation uses the
following scheduler nodes:
• Level 3—Pseudowire service logical interfaces (ps0.1 and ps0.2) for subscriber sessions
You apply the traffic-control profiles at the pseudowire transport logical interfaces (level 2) and the
pseudowire service logical interfaces (level 3).
145
Figure 15: Three-Level Scheduling Hierarchy Case 1: Pseudowire Service Logical Interfaces over a
Transport Logical Interface
Queues Queues
L4
TCP
Pseudowire
L2 Transport ps0.0 TCP
Logical Interface
L1 Logical Tunnel
g041326
Physical Interface
Figure 16 on page 146 shows another variation of MPLS pseudowire three-level hierarchical scheduling
that includes two pseudowire service logical interfaces over a pseudowire service interface set. This
variation uses the following CoS scheduler nodes:
You apply the traffic-control profile at the pseudowire service interfaces (level 3) and at the interface set
(level 2). This variation is most useful for subscriber edge deployments.
146
Figure 16: Three-Level Scheduling Hierarchy Case 2: Pseudowire Service Logical Interfaces over a
Pseudowire Service Interface Set
Queues Queues
L4
TCP
Logical Tunnel
L1
g041327
Physical Interface
Figure 17 on page 146 shows a deployment scenario that combines the three-level hierarchical scheduling
scenarios in Figure 15 on page 145 and Figure 16 on page 146.
Figure 17: Three-Level Hierarchical Scheduling for MPLS Pseudowire Subscriber Interfaces—Deployment
Scenario
L4
TCP TCP
ps0.1 ps0.2 ps1.1 ps1.2
L3
Pseudowire service Pseudowire service Pseudowire service Pseudowire service
interface interface interface interface
TCP
ps1.0
L2 Interface set Pseudowire transport
interface
L1 Physical interface
g041406
• Level 3—Pseudowire service logical interfaces (ps0.1, ps0.2, ps1.1, and ps1.2)
• Level 2—Service interface set for pseudowire service interfaces (ps0.1 and ps0.2) and transport logical
interface (ps1.0) for the pseudowire service logical interfaces (ps1.1 and ps1.2)
You apply the traffic-control profiles to the interfaces at both level 2 and level 3, as well as the interface
set at level 2.
RELATED DOCUMENTATION
Before configuring CoS three-level scheduling on pseudowire logical interfaces over a transport logical
interface, you must first complete these tasks:
1. Configure the pseudowire logical interfaces. See Configuring a Pseudowire Subscriber Logical Interface.
2. Configure the pseudowire device count. See Configuring the Maximum Number of Pseudowire Logical
Interface Devices Supported on the Router.
3. Configure the pseudowire device including the logical tunnel anchor point. See Configuring a Pseudowire
Subscriber Logical Interface Device.
4. Configure the pseudowire transport logical interface. See Configuring the Transport Logical Interface for
a Pseudowire Subscriber Logical Interface.
148
5. Configure the pseudowire signaling (either Layer 2 circuit signaling or Layer 2 VPN signaling). See
Configuring Layer 2 Circuit Signaling for Pseudowire Subscriber Logical Interfaces or Configuring Layer 2
VPN Signaling for Pseudowire Subscriber Logical Interfaces.
6. Configure the pseudowire logical interfaces. See Configuring the Service Logical Interface for a Pseudowire
Subscriber Logical Interface.
Three-level scheduling on pseudowire logical interfaces over a transport logical interface requires you to
apply the traffic-control profiles at both the pseudowire logical interface and the pseudowire transport
logical interface. To configure CoS policies on three-level scheduling on pseudowire logical interfaces over
a transport logical interface:
1. Configure the hierarchical scheduler for the physical interface used for the logical tunnel (anchor point).
For three-level scheduling the hierarchical scheduler must be set to implicit-hierarchy.
[edit]
user@host#edit interfaces ps-anchor-device-name
user@host#set hierarchical-scheduler implicit-hierarchy
[edit class-of-service]
user@host#edit interfaces ps ps-device-name
user@host#edit unit logical-unit-number
user@host#set output-traffic-control-profile profile-name
3. Specify the traffic-control profile to use on the pseudowire transport logical interface.
[edit class-of-service]
user@host#edit interfaces ps ps-device-name
user@host#edit unit logical-unit-number
user@host#set output-traffic-control-profile profile-name
The available rewrite rule types for pseudowire interfaces are dscp and inet-precedence.
[edit class-of-service]
user@host#edit interfaces ps ps-device-name
user@host#edit unit logical-unit-number
user@host#edit rewrite-rules (dscp | inet-precedence) rewrite-name
user@host#edit forwarding-class class-name
user@host#set loss-priority class-name code-point (alias | bits)
149
The available classifier types for pseudowire interfaces are dscp and inet-precedence.
[edit class-of-service]
user@host#edit interfaces ps ps-device-name
user@host#edit unit logical-unit-number
user@host#edit classifiers (dscp | inet-precedence) classifier-name
user@host#edit forwarding-class class-name
user@host#set loss-priority class-name code-points [aliases] [bit-patterns]
RELATED DOCUMENTATION
Before configuring three-level scheduling on pseudowire logical interfaces over a pseudowire logical
interface set, you must first complete the following tasks:
150
1. Configure the pseudowire logical interfaces. See Configuring a Pseudowire Subscriber Logical Interface.
2. Configure the pseudowire device count. See Configuring the Maximum Number of Pseudowire Logical
Interface Devices Supported on the Router.
3. Configure the pseudowire device including the logical tunnel anchor point. See Configuring a Pseudowire
Subscriber Logical Interface Device.
4. Configure the pseudowire transport logical interface. See Configuring the Transport Logical Interface for
a Pseudowire Subscriber Logical Interface.
5. Configure the pseudowire signaling (either Layer 2 circuit signaling or Layer 2 VPN signaling). See
Configuring Layer 2 Circuit Signaling for Pseudowire Subscriber Logical Interfaces or Configuring Layer 2
VPN Signaling for Pseudowire Subscriber Logical Interfaces.
6. Configure the pseudowire logical interfaces. See Configuring the Service Logical Interface for a Pseudowire
Subscriber Logical Interface.
Three-level scheduling on pseudowire logical interfaces over a pseudowire logical interface set requires
you to apply the traffic-control profiles at both the pseudowire logical interface and the pseudowire logical
interface-set. To configure CoS policies on MPLS pseudowire subscriber interfaces using three-level implicit
hierarchical scheduling:
1. Configure the hierarchical scheduler for the physical interface used for the logical tunnel (anchor point).
For three-level scheduling the hierarchical scheduler must be set to implicit-hierarchy.
[edit]
user@host#edit interfaces ps-anchor-device-name
user@host#set hierarchical-scheduler implicit-hierarchy
[edit class-of-service]
user@host#edit interfaces ps ps-device-name
user@host#edit unit logical-unit-number
user@host#set output-traffic-control-profile profile-name
3. Define a pseudowire logical interface set and configure the traffic-control profile used for the interface
set.
[edit class-of-service]
user@host#edit interfaces
user@host#edit interface-set interface-set-name
user@host#edit output-traffic-control-profile profile-name
151
4. Group the pseudowire logical interfaces in the pseudowire logical interface set.
[edit ]
user@host#edit interfaces
user@host#edit interface-set interface-set-name
user@host#edit interface ps ps-device-name
user@host#edit unit logical-unit-number
The available rewrite rule types for pseudowire interfaces are dscp and inet-precedence.
[edit class-of-service]
user@host#edit interfaces ps ps-device-name
user@host#edit unit logical-unit-number
user@host#edit rewrite-rules (dscp | inet-precedence) rewrite-name
user@host#edit forwarding-class class-name
user@host#set loss-priority class-name code-point (alias | bits)
The available classifier types for pseudowire interfaces are dscp and inet-precedence.
[edit class-of-service]
user@host#edit interfaces ps ps-device-name
user@host#edit unit logical-unit-number
user@host#edit classifiers (dscp | inet-precedence) classifier-name
user@host#edit forwarding-class class-name
user@host#set loss-priority class-name code-points [aliases] [bit-patterns]
RELATED DOCUMENTATION
CHAPTER 6
IN THIS CHAPTER
IN THIS SECTION
You can apply CoS to the Layer 2 Tunnel Protocol (L2TP) access concentrator (LAC) component.
In Layer 2 Tunnel Protocol (L2TP) configurations, IP and L2TP headers are added to packets arriving at a
PPP subscriber interface on the L2TP access concentrator (LAC) before being tunneled to the L2TP network
server (LNS). You can manage the IP header by configuring classifiers and rewrite-rules that transfer the
ToS (Type of Service) value or the 802.1p value from the inner IP header to the outer IP header of the L2TP
packet.
Figure 18 on page 154 shows the classifier and rewrite rules that you can configure from the LAC to the
LNS, and from the LNS to the LAC.
RADIUS
server
CLEC network
ISP network
To set the ToS value or the 802.1p value on the inner IP header, you can configure both fixed and behavior
aggregate (BA) classifiers for subscribers at Layer 2 or Layer 3 of the network.
Table 17 on page 154 lists the configuration options for applying classifiers to a subscriber interface on an
ingress LAC tunnel.
• PPP interface
• Underlying VLAN interface
• PPP interface
• Underlying VLAN interface
The behavior of the Layer 2 and Layer 3 classifiers depends on the configuration. For example, a Layer 3
classifier for a family of PPP interfaces overrides a Layer 2 classifier configured at the PPP interface, except
for the unknown packets and control packets.
If you do not configure a classifier for Layer 2, the system applies the default Layer 3 classifier so that
tunneled and terminated subscribers have the same behavior. To prevent unknown packets and control
packets from being discarded, the system assigns them to the best-effort forwarding class.
For egress tunnels, you configure rewrite rules at the PPP interface to set the ToS or 802.1p value of the
outer IP header. Rewrite rules are applied accordingly to the forwarding class, packet loss priority (PLP),
and code point.
On a LAC, mapping the inner IP header to the outer IP header of the L2TP packet depends on the classifier
and rewrite-rule configurations. For example, Table 18 on page 155 lists the values for the classifier and
rewrite rules for a VLAN interface. For assured forwarding, the inner 802.1p value (ob001) is classified
with the assured-forwarding class and low loss priority at the ingress interface. Based on the
assured-forwarding class and low loss priority in the rewrite rule, the ToS value in the outer IP header is
set to ob001.
Table 18: Sample Result for the Classifier and Rewrite Rules for a VLAN Interface
Inner .1p Value Forwarding Class Loss Priority Code Point Outer ToS Value
RELATED DOCUMENTATION
In L2TP configurations, IP and L2TP headers are added to packets arriving at a PPP subscriber interface
on the LAC before being tunneled to the L2TP network server (LNS).
Classifiers and rewrite rules enable you to properly transfer the ToS (Type of Service) value or the 802.1p
value from the inner IP header to the outer IP header of the L2TP packet.
Before you begin, configure the L2TP LAC. See Configuring an L2TP LAC.
• To configure a BA classifier:
[edit class-of-service]
user@host#set classifiers (ieee-802.1 | inet-precedence) classifier-name forwarding-class class-name
loss-priority level code-points [ aliases ] [ bit-patterns]
b. Apply the classifier to the Layer 2 interface or Layer 3 interface. For Layer 2, you can apply the
classifier at the PPP interface or an underlying VLAN interface. For Layer 3, you can apply classifiers
to a family of PPP interfaces.
a. Configure the rewrite rule with the forwarding class and the loss priority value.
157
[edit class-of-service]
user@host# set rewrite-rules (ieee-802.1 | inet-precedence) rewrite-name forwarding-class class-name
loss-priority level code-point (alias | bits)
b. Apply the rewrite rule to the PPP interface for which the L2TP tunnel is configured.
RELATED DOCUMENTATION
IN THIS SECTION
You can apply hierarchical scheduling and per-session shaping to Layer 2 Tunnel Protocol (L2TP) network
server (LNS) inline services using a static or dynamic CoS configuration.
This feature is supported on MIC and MPC interfaces on MX240, MX480, and MX960 routers.
In L2TP configurations, IP, UDP, and L2TP headers are added to packets arriving at a PPP subscriber
interface on the L2TP access concentrator (LAC) before being tunneled to the LNS.
When a service interface is configured for an L2TP LNS session, it has an inner IP header and an outer IP
header. You can configure CoS for an LNS session that corresponds to the inner IP header only. The outer
IP header is used for L2TP tunnel processing only.
However, we recommend that you configure classifiers and rewrite-rules to transfer the ToS (type of
service) value from the inner IP header to the outer IP header of the L2TP packet.
Figure 19 on page 158 shows the classifier and rewrite rules that you can configure on an LNS inline service.
Fixed or BA Multifield
IP/UDP/L2TP decapsulation
classification classification
LAC
peer Core / Internet
interface
Multifield
Shaping IP/UDP/L2TP capsulation Rewrite rule
classification
g017575
Ingress tunnel (from Uplink to LAC)
By default, the shaping calculation on the service interface includes the L2TP encapsulation. If necessary,
you can configure additional adjustments for downstream ATM traffic from the LAC or differences in Layer
2 protocols.
Hierarchical scheduling for L2TP LNS inline services is supported on MIC and MPC interfaces only. The
services that you can configure depend on the hardware combination. Table 19 on page 159 lists the
supported inline services and peer interfaces for each MIC and MPC combination.
159
MPC2E-3D-NG No Yes
MX80
MPC-3D-16XGE-SFPP No No
RELATED DOCUMENTATION
The inline service interface is a virtual physical service interface that resides on the Packet Forwarding
Engine. This si interface, referred to as an anchor interface, makes it possible to provide L2TP services
without a special services PIC. The inline service interface is supported only by MPCs on MX Series routers.
Four inline service interfaces are configurable per MPC-occupied chassis slot.
You can maximize the number of sessions that can be shaped in one service interface by setting the
maximum number of hierarchy levels to two. In this case, each LNS session consumes one L3 node in the
scheduler hierarchy for shaping.
If you do not specify the number of levels (two is the only option), then the number of LNS sessions that
can be shaped on the service interface is limited to the number of L2 nodes, or 4096 sessions. Additional
sessions still come up, but they are not shaped.
[edit interfaces]
user@host# edit si-slot/pic/port
160
2. (Optional; for per-session shaping only) Enable the inline service interface for hierarchical schedulers
and limit the number of scheduler levels to two.
3. (Optional; for per-session shaping only) Configure services encapsulation for inline service interface.
You can configure hierarchical scheduling for an L2TP LNS inline service and manage the IP header values
using rewrite rules and classifiers.
Before you begin, configure the L2TP LNS inline service interface. See Configuring an L2TP LNS with Inline
Service Interfaces.
1. Configure the hierarchical scheduler for the service interface (si) interface.
BEST PRACTICE: To enable Level 3 nodes in the LNS scheduler hierarchy and to provide
better scaling, we recommend that you also specify a maximum of two hierarchy levels.
2. Configure the LNS to reflect the IP ToS value in the inner IP header to the outer IP header.
161
• To configure a BA classifier:
[edit class-of-service]
user@host# set classifiers (dscp | dscp-ipv6 | inet-precedence) classifier-name forwarding-class class-name
loss-priority level code-points [ aliases ] [ bit-patterns]
a. Configure the rewrite rule with the forwarding class and the loss priority value.
[edit class-of-service]
user@host# set rewrite-rules (dscp | dscp-ipv6 | inet-precedence) rewrite-name forwarding-class class-name
loss-priority level code-point (alias | bits)
• To apply the rewrite rule for the DSCP or DSCP IPv6 value:
162
By default, the shaping calculation on the service interface includes the L2TP encapsulation. If necessary,
you can configure additional adjustments for downstream ATM traffic from the LAC or differences in
Layer 2 protocols.
RELATED DOCUMENTATION
CHAPTER 7
IN THIS CHAPTER
Guidelines for Configuring Shaping-Rate Adjustments for Subscriber Local Loops | 166
Configuring the Minimum Adjusted Shaping Rate on Scheduler Nodes for Subscribers | 168
Disabling Hierarchical Bandwidth Adjustment for Subscriber Interfaces with Reverse-OIF Mapping | 179
Example: Configuring Hierarchical CoS Shaping-Rate Adjustments for Subscriber Local Loops | 180
Verifying the Configuration of Shaping-Rate Adjustments for Subscriber Local Loops | 183
Using Hierarchical CoS to Adjust Shaping Rates Based on Multicast Traffic | 185
This overview describes how MX Series 5G Universal Routing Platforms installed in a subscriber access
network can adjust hierarchical class-of-service (CoS) parameters to prevent bandwidth contention at
subscriber interfaces.
Hierarchical CoS is supported only for subscriber interfaces on Enhanced Queueing (EQ) DPCs or MPC
interfaces operating in hierarchical scheduler mode.
The characteristics of voice, data, and video applications vary widely in their requirements for traffic
throughput, bandwidth management, delay and jitter tolerance, and buffer depth. To prevent bandwidth
contention at subscriber interfaces, you can configure applications such as ANCP and Multicast to perform
real-time adjustments to the shaping rate configured for subscriber interfaces for residential gateways.
Enabling shaping-rate adjustments on the router can prevent bandwidth contention at the interface from
causing degradation of the subscriber’s voice, data, or video services.
164
The ANCP application supports absolute adjustments to a specific shaping-rate value. You can configure
ANCP to communicate the subscriber local loop speed to the MX Series router, which in turn throttles
traffic destined to the associated subscriber interface so that it matches the subscriber local loop speed.
ANCP acquires subscriber line rate information from DSLAMs and then communicates this data transmission
rate for use with CoS.
The OIF mapping and reverse OIF mapping multicast applications support delta adjustments that increase
or decrease the current shaping rate by a certain value. The system adjusts traffic destined to the subscriber
using reverse OIF mapping enabled on a specified multicast interface. Reverse OIF mapping is used to
determine the subscriber VLAN interface and the multicast traffic bandwidth on the interface.
Both absolute and delta adjustments are made to a subscriber’s aggregate shaping rate on a level 3 scheduler
node.
Adjustments that occur on the scheduler node can also impact the shaping rates for all queues. This
adjustment can be undesirable for service providers who want to provide a premium level of service on
specific queues.
For delta-based adjustments by multicast applications, you can control the distribution of shaping rates
among queues by assigning the percentage of adjustment allowed for each queue. In addition, you can set
a minimum adjusted shaping rate for each queue.
Figure 20 on page 164 shows a sample multicast network with shaping rates adjusted at the scheduler node
level. The shaping rate is reduced by 4 Mbps (from 41 Mbps to 37 Mbps) at the scheduler node for
subscriber interface 1, which reduces the rates of both the best effort and video on demand (VoD) service
queues.
Figure 20: Scheduler Node and Queues with Adjusted Shaping Rates
Figure 21 on page 165 shows the same network with queue-based adjustments enabled for the best-effort
queue on subscriber 1. The shaping rate of the best-effort queue is reduced by 4 Mbps (from 5 Mbps to
1 Mbps). The VoD service queue is not affected.
165
g017576
IPTV Multicast VLAN
4 Mbps of multicast destined to subscriber interface 1
RELATED DOCUMENTATION
Configuring the Minimum Adjusted Shaping Rate on Scheduler Nodes for Subscribers | 168
Configuring Shaping-Rate Adjustments on Queues | 169
Shaping Rate Adjustments for Subscriber Local Loops Overview | 165
Disabling Hierarchical Bandwidth Adjustment for Subscriber Interfaces with Reverse-OIF Mapping | 179
Example: Configuring Hierarchical CoS Shaping-Rate Adjustments for Subscriber Local Loops | 180
This overview describes how an MX Series 5G Universal Routing Platform installed as an edge router can
adjust hierarchical CoS policy for subscriber interfaces for subscriber local loops. You can configure the
router to throttle the traffic sent to subscriber local loops so that the traffic does not exceed the current
data transmission rate of those lines. This feature ensures that changes to subscriber local loop speeds do
not cause bandwidth contention at the subscriber’s residential gateway.
In a typical subscriber access network, traffic destined to a subscriber is delivered from the access network,
through an edge router, to a DSLAM. The DSLAM multiplexes subscriber traffic through a DSL, also known
as a local loop, to the subscriber’s residential gateway. When line noise or cross talk in a subcarrier causes
the error rate on a DSL to exceed a certain threshold, the DSLAM can adapt itself by lowering the data
transmission rate to that carrier device. A lower data transmission rate is less susceptible to induced errors.
You can configure an MX Series router to adjust the configured shaping rates on scheduler nodes for
subscriber interfaces that represent subscriber local loops. Whenever a DSLAM resynchronizes a subscriber
local loop speed, the router adjusts the configured shaping rate for that line so that the aggregate egress
traffic to those subscribers is shaped to the local loop speed before the traffic reaches the DSLAM. Unless
the maximum amount of bandwidth allocated to the subscriber interface on the router is throttled to the
local loop speed, bandwidth contention can occur at the subscriber’s residential gateway, which can cause
166
the DSLAM to drop packets. This type of shaping-rate adjustment requires the topology discovery and
traffic-monitoring features of the Access Node Control Protocol (ANCP).
You can enable ANCP to communicate the subscriber local loop speed to CoS, which in turn throttles
traffic destined to the associated subscriber interface so that it matches the subscriber local loop speed.
The ANCP agent acquires unadjusted (net) subscriber line rate information from DSLAMs and then
communicates this data transmission rate for use with CoS. You can also configure percentage and byte
adjustments that the ANCP agent can make to the received net data rate for frame-mode DSL types before
communicating the adjusted rate and overhead to CoS.
RELATED DOCUMENTATION
These guidelines apply to configuring an MX Series 5G Universal Routing Platform installed as an edge
router to adjust the configured shaping rates on scheduler nodes for subscriber interfaces that represent
subscriber local loops. This shaping-rate feature uses the topology discovery and traffic-monitoring features
of ANCP.
When you enhance hierarchical CoS policy by configuring ANCP-driven shaping-rate adjustments, consider
the following guidelines:
• Shaping-rate adjustments are supported only for subscriber local loops that terminate at DSLAMs that
you have configured as ANCP neighbors of the MX Series router.
• Shaping-rate adjustments are supported only for scheduler nodes for which you have configured an
initial shaping rate by including the shaping-rate statement in a traffic-control profile applied to the
scheduler node. Specify the initial shaping rate as a peak rate, in bits per second (bps), and not as a
percentage. Other methods of configuring a shaping rate are not supported with this feature.
• Shaping-rate adjustments are supported only for scheduler nodes that are static logical interface sets
that you have configured to operate at Level 3 of the scheduler hierarchy on the router. If an interface
167
set is configured with a logical interface (such as unit 0) and queue, then the interface set is an internal
scheduler node (as opposed to a root node or a leaf node) at Level 2 of the hierarchy. However, if there
are no traffic-control profiles are configured on logical interfaces in an interface set, then the interface
set is an internal scheduler node at Level 3 of the hierarchy.
• Shaping-rate adjustments are supported only for subscriber interfaces over physical interfaces that you
have configured to operate in hierarchical scheduler mode.
• After shaping-rate adjustments are enabled and the router has performed shaping-rate adjustments on
a scheduler node, you can configure a new shaping rate by including the shaping-rate statement in a
traffic-control profile and then applying that profile to that scheduler node. However, this new
shaping-rate value does not immediately result in shaping traffic at the new rate. The scheduler node
continues to be shaped at rate set by ANCP. Only when the ANCP shaping-rate adjustment feature is
disabled is the scheduler node shaped at the newly configured shaping-rate.
• The Layer 2 Tunneling Protocol (L2TP) is often used to carry traffic securely between an L2TP Network
Server (LNS) and an L2TP Access Concentrator (LAC). The QoS adjustment feature supports the shaping
overhead options that you can use to add a specified number of bytes to the actual packet length when
determining shaped session packet length. ANCP shaping-rate adjustments are not supported for ingress
traffic, only for egress traffic. To configure the number of bytes to add to the packet at the egress side
of the tunnel, include the egress-shaping-overhead and mode statements at the [edit chassis fpc
slot-number pic pic-number traffic-manager] hierarchy level. Use the shaping overhead options if you
need to account for encapsulation overhead.
For more information about the ANCP protocol, see the ANCP and the ANCP Agent Overview.
RELATED DOCUMENTATION
IN THIS SECTION
Overview | 168
Overview
Absolute adjustments and delta adjustments are performed at the scheduler node level. You can configure
a minimum adjusted shaping rate at the scheduler node level using static or dynamic CoS parameters.
This feature is supported for adjustments performed by the ANCP and multicast applications.
BEST PRACTICE: For multicast traffic, you can configure a minimum adjusted shaping rate at
the queue level. We recommend that you configure the minimum adjusted value at the scheduler
node or the queue, but not both.
When you configure a minimum adjusted value for a node and for a scheduler that is referenced
by a scheduler map in the same traffic-control-profile, the system uses the minimum value from
the scheduler.
SEE ALSO
169
SEE ALSO
RELATED DOCUMENTATION
IN THIS SECTION
Overview | 170
Overview
By default, the multicast application adjusts the shaping rates at the scheduler node level. This adjustment
also impacts the shaping rates for all queues, which can be undesirable for service providers who want to
provide a premium level of service on specific queues.
For multicast applications, you can control the distribution of shaping rates among queues by assigning
the percentage of adjustment allowed for each queue. In addition, you can set a minimum adjusted shaping
rate for each queue.
BEST PRACTICE: We recommend that you configure the minimum adjusted value at the scheduler
node or the queue, but not both.
When you configure a minimum adjusted value for a node and for a scheduler that is referenced
by a scheduler map in the same traffic-control-profile, the system uses the minimum value from
the scheduler.
BEST PRACTICE: Ensure that the minimum adjusted value that you configure does not exceed
the shaping rate and is not lower than the configured transmit rate.
SEE ALSO
BEST PRACTICE: Ensure that the minimum adjusted value that you configure does not exceed
the shaping rate and is not lower than the configured transmit rate.
172
SEE ALSO
RELATED DOCUMENTATION
IN THIS SECTION
Configuring Static Logical Interface Sets to Serve as CoS Hierarchical Scheduler Nodes for Subscriber
Loops | 173
Configuring the Logical Interfaces That Compose the Static Logical Interface Sets | 174
Configuring Hierarchical CoS on the Static Logical Interface Sets That Serve as Hierarchical Scheduler Nodes
for Subscriber Local Loops | 174
Configuring ANCP Functionality That Supports and Drives Shaping-Rate Adjustments for Subscriber Local
Loops | 177
You can enhance a CoS implementation by enabling an MX Series 5G Universal Routing Platform to adjust
the hierarchical CoS policy shaping rate configured for static interface sets that consist of two or more
VLANs and represent subscriber local loops. Whenever the digital subscriber line access multiplexer
(DSLAM) resynchronizes its data transmission rate to a digital subscriber line (DSL), the router adjusts the
shaping rate for the associated subscriber interface so that the maximum bandwidth allocation cannot
exceed the current data rate for the associated subscriber local loop. This feature ensures that data
transmission rate adjustments by the DSLAM do not cause bandwidth contention at the subscriber’s
residential gateway.
Configuring Static Logical Interface Sets to Serve as CoS Hierarchical Scheduler Nodes for
Subscriber Loops
To configure a logical interface set, begin by including the interface-set statement with the interface-set-name
option at the [edit interfaces] hierarchy level.
An interface set is composed of two or more logical interfaces on the same physical interface. Each logical
interface in an interface set corresponds to an individual subscriber service, such as voice, video, or data.
To specify either a list of logical unit numbers or the single outer VLAN tag used to identify the logical
interfaces that compose the interface set, include statements at the [edit interfaces interface-set
interface-set-name] hierarchy level:
• For an interface set composed of a list of logical interfaces identified by an inner VLAN tag on Ethernet
frames (called the customer VLAN, or C-VLAN, tag), you must specify each logical interface by including
the unit statement with the logical-unit-number option.
[edit]
interfaces {
interface-set interface-set-name {
interface ethernet-interface-name { # EQ DPC port
unit logical-unit-number;
unit logical-unit-number;
...
}
...
}
}
• For an interface set composed of a set of VLANs grouped at the DSLAM and identified by the same
service VLAN (S-VLAN) tag), you must specify the S-VLAN tag as the outer VLAN tag for each VLAN
by including the vlan-tags-outer statement with the vlan-tag option.
[edit]
interfaces {
interface-set interface-set-name {
interface ethernet-interface-name { # EQ DPC port
vlan-tags-outer vlan-tag; # Identify the DSLAM
}
...
}
}
For more information, see “Configuring Hierarchical Schedulers for CoS” on page 13.
174
Configuring the Logical Interfaces That Compose the Static Logical Interface Sets
Each underlying physical interface must be configured to operate in hierarchical scheduler mode and to
support stacked VLAN tagging on all logical interfaces. To configure, include the hierarchical-scheduler
statement and the stacked-vlan-tagging statement at the [edit interfaces ethernet-interface-name] hierarchy
level.
To associate the individual logical interfaces of an interface set with specific subscriber services provided
by the subscriber local loop, bind an S-VLAN tag and a C-VLAN tag to each logical interface that belongs
to a scheduler node that represents a subscriber local loop. Ethernet frames sent from the logical interfaces
contain an outer VLAN tag that identifies a DSLAM and an inner VLAN tag that identifies a subscriber port
on the DSLAM. To configure, include the vlan-tags statement at each logical interface:
[edit]
interfaces {
ethernet-interface-name { # EQ DPC port underlying an interface set
hierarchical-scheduler;
stacked-vlan-tagging; # Support 802.1Q VLAN dual-tagged frames
unit logical-unit-number { # Bind S-VLAN and C-VLAN tags to logical interface
vlan-tags inner tpid.vlan-id outer tpid.vlan-id;
}
...
}
}
Configuring Hierarchical CoS on the Static Logical Interface Sets That Serve as Hierarchical
Scheduler Nodes for Subscriber Local Loops
To configure hierarchical CoS on the static logical interface set that serves as the hierarchical scheduler
node for a subscriber local loop:
1. For each scheduler node that represents a subscriber local loop, configure an initial shaping rate.
NOTE: The CoS shaping-rate feature is supported only for scheduler nodes with a configured
shaping rate. The initial shaping rate must be configured by applying a traffic-control profile
that includes the shaping-rate statement. Specify the initial shaping rate as a peak rate, in
bits per second (bps), and not as a percentage. Other methods of configuring a shaping rate
are not supported with this feature.
175
• To enable traffic heading downstream (from the router to the DSLAM) to be gathered into an interface
set, include the interface-set statement and define the logical interface set name as the
interface-set-name option at the [edit class-of-service interfaces] hierarchy level.
• To apply output traffic scheduling and shaping parameters at the logical interface set level (rather
than at the logical unit level), include the output-traffic-control-profile statement and specify the
name of a traffic-control profile as the profile-name option at the [edit class-of-service interfaces
interface-set interface-set-name] hierarchy level.
• [edit class-of-service]
2. Configure the scheduler maps referenced in the traffic-control profiles applied to the interface sets,
the schedulers referenced in those scheduler maps, and the drop profiles referenced in those schedulers.
• A scheduler map establishes the traffic output queues (forwarding classes) for a scheduler node and
associates each queue with a specific scheduler map.
• A scheduler defines queue properties (transmit rate, buffer size, priority, and drop profile) that specify
how traffic is treated in the output queue.
• A drop profile specifies how aggressively the MX Series router drops packets that are managed by
a particular scheduler by defining either a segmented or interpolated graph that maps output queue
fullness to packet drop probability.
176
To configure, include the statements at the static [edit class-of-service] hierarchy level:
[edit]
class-of-service {
scheduler-maps { # Assign queuing characteristics to output queues
map-name { # Map output queues to
forwarding-class class-name scheduler scheduler-name;
forwarding-class class-name scheduler scheduler-name;
...
}
...
}
schedulers { # Define queuing characteristics
scheduler-name { # Specify queuing and buffer management
transmit-rate transmit-rate-option;
buffer-size buffer-size-option;
priority priority-level;
drop-profile-map loss-priority loss-priority-option protocol any drop-profile drop-profile-name;
...
}
}
drop-profiles { # Define random early detection (RED) for the delay buffer
drop-profile–name { # Specify how to drop packets from an output queue
drop-profile-name { # Map a queue fullness to a drop probability
fill-level percentage drop-probability percentage; # Option 1: segmented
fill-level percentage drop-probability percentage;
...
}
interpolate { # Option 2: interpolated
drop-probability [ values ];
fill-level [ values ];
}
}
...
}
}
For more information about configuring scheduler maps, schedulers, and drop profiles, see Mapping CoS
Component Inputs to Outputs.
177
Configuring ANCP Functionality That Supports and Drives Shaping-Rate Adjustments for
Subscriber Local Loops
To configure the Access Node Control Protocol (ANCP) functionality that supports and drives the
shaping-rate adjustments for subscriber local loops:
• Enable the ANCP agent to monitor subscriber local loop rates at the DSLAMs and communicate this
information to CoS.
• For frame-mode DSL types, optionally configure adjustments that are made to the net data rates, the
frame overhead, or both before the ANCP agent reports the values to CoS. Rates are adjusted by a
percentage. Bytes are added to or subtracted from the overhead per frame.
• Configure each DSLAM as an ANCP neighbor of the router so that TCP connections can be established
between the router and each DSLAM.
• Identify the subscriber interface sets whose traffic is monitored and shaped by the ANCP agent, and
associate those interface sets with the corresponding identifiers configured on the access node (DSLAM)
to uniquely identify the subscriber local loops within the access network.
The ANCP agent uses this information to build a mapping of subscribers to subscriber interfaces. When
the ANCP agent receives port management messages from a DSLAM or other access node, it uses the
access identifier contained in the message to determine which hierarchical scheduler node corresponds
to the subscriber.
[edit]
protocols {
ancp {
qos-adjust; # Enable ANCP to monitor and adjust CoS shaping rates
other-bytes bytes; # Specify number of bytes to adjust OTHER access technology rate
other-overhead-adjust percentage; # Specify percentage by which to adjust OTHER access technology
rate
sdsl-bytes bytes; # Specify number of bytes to adjust SDSL rate
sdsl-overhead-adjust percentage; # Specify percentage by which to adjust SDSL rate
vdsl-bytes bytes; # Specify number of bytes to adjust VDSL rate
vdsl-overhead-adjust percentage; # Specify percentage by which to adjust VDSL rate
vdsl2-bytes bytes; # Specify number of bytes to adjust VDSL2 rate
vdsl2-overhead-adjust percentage; # Specify percentage by which to adjust VDSL2 rate
}
neighbor ip-address; # Configure each DSLAM as an ANCP neighbor
...
interfaces { # Identify subscribers for which ANCP can adjust shaping rates
interface-set {
interface-set-name {
178
RELATED DOCUMENTATION
For hardware requirements and configuration guidelines, see Guidelines for Configuring Shaping-Rate
Adjustments for Subscriber Local Loops | 166
Shaping Rate Adjustments for Subscriber Local Loops Overview | 165
Traffic Rate Reporting and Adjustment by the ANCP Agent
Configuring the ANCP Agent to Report Traffic Rates to CoS
Verifying the Configuration of ANCP for Shaping-Rate Adjustments | 184
Verifying the Configuration of Shaping-Rate Adjustments for Subscriber Local Loops | 183
Disabling Shaping-Rate Adjustments for Subscriber Local Loops | 178
Example: Configuring Hierarchical CoS Shaping-Rate Adjustments for Subscriber Local Loops | 180
Traffic-shaping parameters for all subscriber local loops revert to their current configured values.
RELATED DOCUMENTATION
179
For hardware requirements and configuration guidelines, see Guidelines for Configuring Shaping-Rate
Adjustments for Subscriber Local Loops | 166
Shaping Rate Adjustments for Subscriber Local Loops Overview | 165
Enabling Shaping-Rate Adjustments for Subscriber Local Loops | 172
Example: Configuring Hierarchical CoS Shaping-Rate Adjustments for Subscriber Local Loops | 180
You can disable hierarchical bandwidth adjustment for all subscriber interfaces with reverse OIF mapping
enabled on a specified multicast interface. Reverse OIF mapping is used to determine the subscriber VLAN
interface and the multicast traffic bandwidth on the interface.
1. Specify that you want to access the subscriber interfaces with reverse-OIF mapping enabled.
2. Disable hierarchical bandwidth adjustment for all subscriber interfaces on the interface.
RELATED DOCUMENTATION
This example shows how you can enable shaping-rate adjustments for static logical interface sets that
represent subscriber local loops:
1. Configure static logical interface sets to serve as CoS hierarchical scheduler nodes for subscriber local
loops.
This example uses a single scheduler node that represents two subscriber local loops. The scheduler
node is a static logical interface composed of two logical interfaces. The underlying physical interface
is port 0 on a Gigabit Ethernet EQ MPC in slot 4, PIC 0:
[edit]
interfaces {
interface-set ifset-of-logical-interfaces {
interface ge-4/0/0 {
unit 1;
unit 2;
}
}
ge-4/0/0 {
description “access interface ge-4/0/0”;
hierarchical-scheduler;
stacked-vlan-tagging;
unit 1 {
description “DSL type ADSL1 = 0x01”;
proxy-arp;
vlan-tags outer 1 inner 1; # S-VLAN tag is ’1’ and C-VLAN tag is ’1’
family inet { # Specify a secondary loopback address
unnumbered-address lo0.0 preferred-source-address 192.168.7.3;
}
}
unit 2 {
description “DSL type ADSL1 = 0x01”;
proxy-arp;
vlan-tags outer 1 inner 2; # S-VLAN tag is ’1’ and C-VLAN tag is ’2’
family inet { # Specify a secondary loopback address
unnumbered-address lo0.0 preferred-source-address 192.168.7.4;
}
}
}
}
181
2. Begin configuring hierarchical CoS on the static logical interface set that serves as the hierarchical
scheduler node for the group of subscriber local loops.
[edit]
class-of-service {
interfaces {
interface-set ifset-of-logical-interfaces {
output-traffic-control-profile tcp-premium-with-4–queues;
}
}
}
3. Configure the traffic-control profiles that can be applied to the scheduler node:
[edit]
class-of-service {
traffic-control-profiles {
tcp-basic-rate { # Specify a scheduler map and traffic controls
shaping-rate 10m;
}
tcp-premium-with-4-queues { # Specify a scheduler map and traffic controls
scheduler-map smap-premium-4q;
shaping-rate 20m;
guaranteed-rate 10m;
delay-buffer-rate 5m;
}
}
}
In this example, the tcp-premium-with-4-queues traffic-control profile is applied to the interface set.
The other profile provides a lower shaping rate and no guaranteed rate.
4. Configure the scheduler map smap-premium-4q that is referenced in the traffic-control profile for the
scheduler node:
[edit]
class-of-service {
scheduler-maps { # Define the queues that comprise each scheduler node
smap-premium-4q { # Map each queue in the scheduler node to a scheduler
forwarding-class be scheduler be_sch;
forwarding-class af scheduler af_sch;
forwarding-class ef scheduler ef_sch;
182
5. Configure the four schedulers (referenced in the scheduler map) that define the four output queues
for the scheduler node:
[edit]
class-of-service {
schedulers { # Define scheduling characteristics of each queue
be_sch { # Transmit rate and buffer management parameters
transmit-rate percent 10;
buffer-size remainder;
priority low;
}
ef_sch { # Transmit rate and buffer management parameters
...
}
af_sch { # Transmit rate and buffer management parameters
...
}
nc_sch { # Transmit rate and buffer management parameters
...
}
}
}
6. Enable ANCP to communicate with the DSLAM to adjust the CoS shaping rate for the scheduler node.
You must enable the ANCP feature for performing CoS traffic shaping adjustments, configure the
DSLAM as an ANCP neighbor, and specify the DSLAM-assigned identifier for the subscriber local loop
represented by the scheduler node Optionally specify byte or percentage adjustments for frame-mode
DSL types.
[edit]
protocols {
ancp {
qos-adjust; # Enable ANCP to adjust CoS shaping rates and specify rate adjustments
sdsl-bytes 30;
sdsl-overhead-adjust 87;
vdsl-bytes 20;
183
vdsl-overhead-adjust 95;
vdsl2-bytes 20;
vdsl2-overhead-adjust 87;
}
neighbor 10.2.3.4; # Configure the DSLAM as an ANCP neighbor
interfaces { # Identify subscribers for which ANCP can adjust shaping rates
interface-set {
ifset-of-logical-interfaces {
access-identifier “dslam port 2/3”; # DSLAM ID for the local loop
}
}
}
}
}
NOTE: If ANCP is not yet enabled, the process starts when you commit a configuration that
contains the protocols ancp stanza.
7. You can display the configured shaping rate and the adjusted shaping rate for each logical interface
set configured for hierarchical CoS, issue the show class-of-service interface-set operational command.
RELATED DOCUMENTATION
NOTE: After shaping-rate adjustments are enabled and the router has performed shaping-rate
adjustments on a scheduler node, you can configure a new shaping rate by including the
shaping-rate statement in a traffic-control profile and then applying that profile to that scheduler
node. However, this new shaping-rate value does not immediately result in shaping traffic at the
new rate. The scheduler node continues to be shaped at rate set by ANCP. Only when the ANCP
shaping-rate adjustment feature is disabled is the scheduler node shaped at the newly configured
shaping-rate.
Action
Issue the show class-of-service interface-set operational command.
RELATED DOCUMENTATION
Action
• To display ANCP neighbor information, issue the show ancp neighbor operational command.
• To clear ANCP neighbors, issue the clear ancp neighbor operational command.
• To display ANCP subscriber information, issue the show ancp subscriber operational command.
• To display ANCP class-of-service information, issue the show ancp cos operational command.
If ANCP is not yet enabled, the process starts when you commit a configuration that contains the protocols
ancp stanza.
RELATED DOCUMENTATION
For service providers that are using interface sets to deliver services such as voice and data and multicast
VLANs (M-VLANs) to deliver broadcast television, you can set up CoS so that when a subscriber begins
receiving multicast traffic, the shaping rate of the subscriber interface is adjusted to account for the
multicast traffic. You can also set up the class of service (CoS) multicast adjustment to be propagated from
the subscriber interface to the interface set, which is the parent in the scheduler hierarchy. This feature
prevents oversubscription of the multicast replicator, such as a PON, which can result in dropped traffic
and service disruption.
For broadcast television, instead of transporting separate video streams from the source to each subscriber
receiving the same stream, the broadband network gateway (BNG) uses M-VLANs to send one stream to
the access node. The access node, such as an Optical Line Terminal (OLT) or a DSLAM, replicates the video
stream for each subscriber that is currently watching a particular television channel. In this scenario,
M-VLANs are used to stream television and interface sets are used to manage traffic to the access node.
An interface set contains an interface for each subscriber that is attached to the access node. See
Figure 22 on page 185 for a typical broadcast television network topology.
Voice
Video RG1 PON1
Data
Sub 1 VLAN
Sub 2 VLAN
M-VLAN
Voice
Video RG3 PON3
Data
When a subscriber begins watching a television channel, the BNG detects that the subscriber has joined
a multicast group and has begun receiving traffic from an M-VLAN. The BNG adjusts traffic shaping on
the subscriber interface to account for the bandwidth that the multicast traffic is using. For example, if a
subscriber begins watching a television channel, the BNG reduces the bandwidth on the subscriber interface
to account for the bandwidth being used by the multicast traffic. If you set up CoS to propagate the reduced
bandwidth of the subscriber interface to the interface set, the interface set’s shaping rate is also reduced.
186
The BNG uses CoS adjustments based on three-level hierarchical CoS scheduling to implement this feature.
Level 2 in the scheduler hierarchy is the interface set, and level 3 is the logical interface. To use this feature,
you configure traffic-control profiles for logical interfaces (level 3) to adjust the parent interface set (level
2).
You can set up CoS adjustments to the parent interface set to happen once for each broadcast television
channel being streamed over the M-VLAN by including the qos-adjust-hierarchical interface-set at the
[edit dynamic-profiles dynamic-profile-name access-cac interface $junos-interface-name] hierarchy. For
example:
To illustrate the benefit of this feature, consider two scenarios from Figure 23 on page 186, which shows
a possible subscriber scheduler hierarchy with M-VLANs.
RG1 Q0
RG1 Q1
RG1
RG1 Q2
RG1 Q3
Shaping rate Shaping rate
1 Gbps 2.4 Gbps
RG2 Q0
RG2 Q1
RG2 PON2
RG2 Q2
RG2 Q3
Shaping rate
1 Gbps
RG3 Q0
RG3 Q1
RG3 OLT
RG3 Q2
RG3 Q3
MC Q0
MC Q1
M-VLAN
MC Q2
MC Q3
Scenario 1
Each of 32 subscribers on PON2 are consuming as much data as they can. Each subscriber receives (2.4
Gbps / 32 subscribers) = 75Mbps. Subscriber 1 on PON2 starts watching a 120Mbps multicast video
stream. Each subscriber receives (2.4Gbps – 120Mbps) / 32 subscribers = 71.25Mbps of data. Subscriber
1 receives 120Mbps of video, and 71.25Mbps of data. Then Subscriber 2 on PON2 starts watching a
different 120Mbps multicast video stream. Each subscriber then receives (2.4Gbps – 240Mbps) / 32
subscribers = 67.5 Mbps of data. Subscribers 1 and 2 receive 120Mbps of video and 67.5Mbps of data.
• PON2’s shaping-rate is reduced by 240Mbps to 2.160Gbps, leaving all 32 subscribers to equally share
2.160Gbps – which is 67.5Mbps each.
Scenario 2
Each of 32 subscribers are consuming as much data as they can. Each subscriber receives (2.4 Gbps / 32
subscribers) = 75Mbps. Subscriber 1 on PON2 starts watching a 120Mbps multicast video stream. Each
subscriber then receives (2.4Gbps – 120Mbps) / 32 subscribers = 71.25Mbps of data. Subscriber 1 gets
120Mbps of video, and 71.25Mbps of data. Subscriber 2 on PON2 then starts watching the same 120Mbps
multicast video stream. This is completely serviced. Since this is the same video stream as Subscriber 1 is
watching, and the stream is being replicated at the PON, only one subscriber adjustment is needed. No
additional PON adjustment is needed due to subscriber 2 watching the same 120Mbps multicast video
steam.
• PON2’s shaping-rate is reduced by 240Mbps to 2.280Gbps, leaving all 32 subscribers to equally share
2.280Gbps – which is 71.25Mbps each.
When any one of the two subscribers receiving the 120Mbps video stream unsubscribes, the adjustment
for that subscriber is reverted. The other subscriber’s adjustment remains, as does the PON’s adjustment.
When the remaining subscriber unsubscribes the adjustment for that subscriber is reverted, as is the PON’s
adjustment.
RELATED DOCUMENTATION
qos-adjust-hierarchical | 467
show access-cac interface-set | 564
188
CHAPTER 8
IN THIS CHAPTER
Providing Accurate Scheduling for a Demux Subscriber Interface of Aggregated Ethernet Links | 191
Configuring the Distribution Type for Demux Subscribers on Aggregated Ethernet Interfaces | 192
Configuring Link and Module Redundancy for Demux Subscribers in an Aggregated Ethernet Interface | 193
Example: Separating Targeted Multicast Traffic for Demux Subscribers on Aggregated Ethernet
Interfaces | 196
Configuring the Distribution Type for PPPoE Subscribers on Aggregated Ethernet Interfaces | 209
This topic describes the distribution options available for demux subscriber interfaces over aggregated
Ethernet.
Distribution Models
By default, the system supports hash-based distribution for all subscriber interface types in an aggregated
Ethernet bundle configured without link protection. In this model, traffic for a logical interface can be
distributed over multiple links in the bundle. This model is desirable when there are many flows through
the logical interface and you need to load balance those flows.
Note that if the distribution flows are not even, egress CoS scheduling can be inaccurate. In addition,
scheduler resources are required on every link of the aggregated Ethernet interface. For example, if
subscriber traffic is allocated 10 MB for a triple-play service over four links in a bundle, each of the links
could receive 2.5 MB of traffic. High-density services such as video could be limited by the bandwidth on
one of the links.
189
Targeted distribution enables you to target the egress traffic for an IP or VLAN demux subscriber on a
single member link, using a single scheduler resource. To achieve load balancing over the member links,
the system distributes the subscriber interfaces equally among the links. This enables the subscriber that
is allocated 10 MB to be accurately scheduled as the traffic flows through.
Figure 24 on page 189 displays a sample targeted distribution of subscriber traffic across links in an
aggregated Ethernet interface. A primary and backup link is allocated for each subscriber.
AE bundle
g017525
represents the primary. Access Node
For example, if link GE-x went down, subscriber 1 can begin forwarding over the backup, which is link
Ge-y. When link GE-y comes back up, subscriber 1 switches back to its primary link, GE-x.
In the event that both GE-x and GE-y go down, subscriber 3 starts forwarding through its backup, GE-z.
Subscriber 1 will have lost its primary and backup links, and will also begin forwarding out the GE-z link.
A new level 3 scheduler is assigned for this subscriber on link GE-z. If there is a momentary lapse between
the time that a new scheduler is allocated and forwarding switches to GE-z, the traffic will be forwarding
through to the remaining scheduler. Subscriber 2 continues to forward through its primarily link, GE-z.
Two types of redundancy are available in the targeted distribution model: link redundancy and module
redundancy.
By default, an aggregated Ethernet interface is enabled with link redundancy. Backup links for a subscriber
are chosen based on the link with the least number of subscribers, which provides redundancy if a link
fails.
The module redundancy option enables you to provide redundancy if a module or a link fails. Backup links
for a subscriber are chosen on a different DPC or MPC from the primary link, based on the link with the
190
least number of subscribers among the links on different modules. You can enable this for the aggregated
Ethernet interface.
When links are removed, affected subscribers are redistributed among the active remaining backup links.
When links are added to the system, no automatic redistribution occurs. New subscribers are assigned to
the links with the fewest subscribers (which are typically the new links).
Keep the following guidelines in mind when configuring targeted distribution for demux subscribers:
• You can manage subscribers with both hash-based and targeted distribution models in the same network.
For example, you can allocate subscribers with interface types such as PPPoE with hash-based distribution,
and enable demux subscribers with targeted distribution.
• We recommend that you configure module redundancy to protect against module failures. When module
redundancy is enabled, you can ensure an even distribution of subscribers if you allocate no more than
50 percent of the links on a single DPC or MPC.
• During normal network operations, the system maintains an even balance of subscribers among the links
in a bundle, even as subscribers log in and out. However, if the distribution of a bundle becomes uneven
(for example, when a link goes down and new subscribers are logging in), you can perform a manual
rebalance of the bundle. In addition, you can configure periodic rebalancing of the bundle with a specific
time interval.
• When you anticipate that a link will be down for an extended time, and you want to ensure that backup
links are provisioned for all subscribers, we recommend that you remove the failed link from the bundle.
This forces the affected subscribers to redistribute to other links.
• We recommend that you apply a remaining traffic-control profile to the logical interface to ensure that
minimal scheduling parameters are applied to the remaining subscriber traffic. This provides scheduling
for subscribers that do not have schedulers allocated because they have not been configured or they
have been over-provisioned, or because of scheduler transitions on multiple link failures.
• If you perform a cold restart on the router when it is forwarding active subscribers, the subscriber
interfaces with targeted distribution are assigned to the first links that become available when the system
is initializing so forwarding can begin. To rebalance the system following a cold restart, perform a manual
rebalance of the bundle. In addition, we recommend that you configure Graceful Routing Engine
switchover (GRES) on the router to enable nonstop forwarding during switchover, and avoid performing
cold restarts.
• To ensure appropriate and predictable targeted distribution, you must configure chassis network services
to use enhanced-ip mode.
• Unless specifically separated, multicast traffic egresses in parallel with unicast traffic, sharing the CoS
hierarchy and aggregated Ethernet flow distribution.
191
RELATED DOCUMENTATION
Configuring the Distribution Type for Demux Subscribers on Aggregated Ethernet Interfaces | 192
Configuring Link and Module Redundancy for Demux Subscribers in an Aggregated Ethernet
Interface | 193
Configuring Rebalancing of Demux Subscribers in an Aggregated Ethernet Interface | 194
Static or Dynamic Demux Subscriber Interfaces over Aggregated Ethernet Overview
Unlike VLAN subscriber interfaces, enabling link protection is not required for configuring hierarchical CoS
on demux interfaces. Instead, we recommend that you enable targeted distribution on the demux interface
to provide accurate scheduling for the aggregated Ethernet links.
Before you begin, configure the subscriber interface with aggregated Ethernet:
• For static and dynamic IP demux interfaces, see Configuring a Static or Dynamic IP Demux Subscriber
Interface over Aggregated Ethernet.
• For static and dynamic VLAN demux interfaces, see Configuring a Static or Dynamic VLAN Demux Subscriber
Interface over Aggregated Ethernet.
To provide accurate scheduling for a demux subscriber interface of aggregated Ethernet links:
See “Configuring the Distribution Type for Demux Subscribers on Aggregated Ethernet Interfaces” on
page 192.
See “Configuring Hierarchical CoS for a Subscriber Interface of Aggregated Ethernet Links” on page 92.
3. (Optional) Enable module redundancy to ensure that CoS resources are provisioned for the aggregated
Ethernet links if a module or a link fails. By default, link redundancy is supported.
See “Configuring Link and Module Redundancy for Demux Subscribers in an Aggregated Ethernet
Interface” on page 193.
192
4. (Optional) Configure rebalancing periodically or manually for the subscribers. See “Configuring
Rebalancing of Demux Subscribers in an Aggregated Ethernet Interface” on page 194.
5. Attach static or dynamic traffic shaping and scheduling parameters at the aggregated Ethernet logical
interface or its underlying physical interface. See:
RELATED DOCUMENTATION
By default, the system supports hash-based distribution of subscriber traffic in aggregated Ethernet bundles.
You can configure the system to target the egress traffic for a subscriber on a single member link, using a
single scheduler resource. The system distributes the subscriber interfaces equally among the member
links.
[edit]
user@host#edit chassis
[edit chassis]
user@host#set network-services enhanced-ip
[edit]
user@host#edit interfaces demux0 unit logical-unit-number
RELATED DOCUMENTATION
By default, an aggregated Ethernet bundle with targeted distribution is enabled with link redundancy.
Backup links for a subscriber are chosen based on the link with the fewest subscribers, which provides
redundancy if a link fails.
We recommend that you configure the module redundancy option to provide redundancy if a module or
a link fails. Backup links for a subscriber are chosen on a different DPC or MPC from the primary link,
based on the link with the fewest subscribers among the links on different modules.
1. Access the aggregated Ethernet bundle for which you want to configure module redundancy.
edit
user@host# edit interfaces aex aggregated-ether-options
RELATED DOCUMENTATION
Configuring the Distribution Type for Demux Subscribers on Aggregated Ethernet Interfaces | 192
Distribution of Demux Subscribers in an Aggregated Ethernet Interface | 188
IN THIS SECTION
In a targeted distribution model, the system allocates demux subscriber interfaces equally among the
member links in the aggregated Ethernet interface. When links are removed, affected subscribers are
redistributed among the active remaining backup links. When links are added to the system, no automatic
redistribution occurs. New subscribers are assigned to the links with the fewest subscribers (which are
typically the new links).
During normal network operations, the system maintains an even balance of traffic among the links in a
bundle, even as subscribers log in and out. However, if the distribution of a bundle becomes uneven (for
example, when a link goes down for a period of time and new subscribers are logging in), you can perform
a manual rebalance of the bundle. In addition, you can configure periodic rebalancing of the bundle with
a specific interval.
If subscribers are frequently logging in and logging out of your network, you can configure the system to
periodically rebalance the links based on a specific time and interval.
1. Access the aggregated Ethernet interface for which you want to configure periodic rebalancing.
edit
user@host# edit interfaces aenumber aggregated-ether-options
195
2. Configure the rebalancing parameters for the interface, including the time and the interval between
rebalancing actions.
SEE ALSO
To manually rebalance the subscribers among the links in an aggregated Ethernet bundle with targeted
distribution:
SEE ALSO
RELATED DOCUMENTATION
IN THIS SECTION
Requirements | 196
Overview | 196
Configuration | 197
Verification | 204
This example shows how to separate targeted multicast traffic from targeted unicast traffic and send that
multicast traffic to a different interface through the use of OIF maps.
Requirements
Before configuring this example, make sure to configure the distribution type for the interface. See
“Configuring the Distribution Type for Demux Subscribers on Aggregated Ethernet Interfaces” on page 192
for instructions.
Overview
In this example, targeted traffic distribution is already configured on the router. Dynamically created
interfaces each carry their unicast traffic but all multicast traffic is sent to the GE-5/3/9.0 interface.
Targeted Data
Dynamic
Demux GE-5/3/9.0
Interface
AE bundle
g017850
Configuration
IN THIS SECTION
set policy-options policy-statement OIF-v4-all term oif539 from route-filter 192.168.20.0/4 orlonger
set policy-options policy-statement OIF-v4-all term oif539 then map-to-interface ge-5/3/9.0
set policy-options policy-statement OIF-v4-all term oif539 then accept
set dynamic-profiles dhcp-vlan-prof interfaces "$junos-interface-ifd-name" unit "$junos-underlying-interface-unit"
family inet unnumbered-address lo0.0
set dynamic-profiles dhcp-vlan-prof interfaces "$junos-interface-ifd-name" unit "$junos-underlying-interface-unit"
family inet unnumbered-address preferred-sour ce-address 10.20.0.2
set dynamic-profiles demux-vlan-prof interfaces demux0 unit "$junos-interface-un it" vlan-id "$junos-vlan-id"
set dynamic-profiles demux-vlan-prof interfaces demux0 unit "$junos-interface-un it" demux-options
underlying-interface "$junos-interface-ifd-name"
198
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy.
[edit]
user@host#edit policy-options
[edit policy-options]
user@host edit policy-statement OIF-v4-all
4. Define the match condition for the term. In this case, the term matches any route prefix of
192.168.20.0/4 or longer (all multicast traffic).
5. Define the action for the term. In this case, when a match occurs, the term accepts the traffic and maps
it to interface GE-5/3/9.0.
199
Results
Confirm your configuration by issuing the show policy-options commands. If the output does not display
the intended configuration, repeat the instructions in this example to correct the configuration.
[edit]
user@host# show policy-options
policy-statement OIF-v4-all {
term oif539 {
from {
route-filter 192.168.20.0/4 orlonger;
}
then {
map-to-interface ge-5/3/9.0;
accept;
}
}
}
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy.
[edit]
user@host#edit dynamic-profiles dhcp-vlan-prof
Results
Confirm your configuration by issuing the show dynamic-profiles command. If the output for the
dhcp-vlan-prof dynamic profile does not display the intended configuration, repeat the instructions in this
example to correct the configuration.
[edit]
user@host# show dynamic-profiles
dhcp-vlan-prof {
interfaces {
"$junos-interface-ifd-name" {
unit "$junos-underlying-interface-unit" {
family inet {
unnumbered-address lo0.0 preferred-source-address 10.20.0.2;
}
}
}
}
}
Step-by-Step Procedure
201
The following example requires you to navigate various levels in the configuration hierarchy.
[edit]
user@host#edit dynamic-profiles demux-vlan-prof
12. Specify the IGMP version that you want dynamically created interfaces to use.
13. Specify the OIF map that you want dynamically created IGMP interfaces to use.
14. Specify that IGMP selectively sends and receives control traffic such as IGMP reports, queries, and
leaves.
15. Specify that the interface accepts IGMP reports from hosts on any subnetwork.
Results
Confirm your configuration by issuing the show dynamic-profiles commands. If the output for the
dhcp-vlan-prof dynamic profile does not display the intended configuration, repeat the instructions in this
example to correct the configuration.
[edit]
user@host# show dynamic-profiles
demux-vlan-prof {
interfaces {
demux0 {
unit "$junos-interface-unit" {
vlan-id "$junos-vlan-id";
demux-options {
underlying-interface "$junos-interface-ifd-name";
}
targeted-distribution;
family inet {
unnumbered-address lo0.0 preferred-source-address 10.20.0.2;
}
}
}
}
protocols {
igmp {
interface "$junos-interface-name" {
version 2;
promiscuous-mode;
passive allow-receive send-group-query;
oif-map OIF-v4-all;
}
}
204
}
}
...
Verification
IN THIS SECTION
Ensure the Targeting Aggregated Ethernet Interface for the Subscriber is Functional | 205
Purpose
Locate the dynamic interface and ensure that it is associated with the appropriate IGMP group.
Action
Meaning
The first Interface field shows the dynamically created demux interface, demux0.1073741824, and the
Group field immediately below the first Interface field shows the group, 192.0.2.1, to which the subscriber
belongs.
Ensure the Targeting Aggregated Ethernet Interface for the Subscriber is Functional
Purpose
Use the dynamic subscriber interface value to ensure that the targeting aggregated interface is functional.
Action
Meaning
The Targeting summary field shows that the primary interface, ge-5/3/7, is up.
Purpose
Verify that packet traffic sent to targeted interface GE-5/3/9 consists only of multicast packets.
Action
Output errors:
Carrier transitions: 1, Errors: 0, Drops: 0, Collisions: 0, Aged packets: 0,
FIFO errors: 0, HS link CRC errors: 0, MTU errors: 0, Resource errors: 0
Egress queues: 8 supported, 4 in use
Queue counters: Queued packets Transmitted packets Dropped packets
0 best-effort 0 0 0
1 expedited-fo 0 0 0
2 assured-forw 0 0 0
3 network-cont 0 0 0
Queue number: Mapped forwarding classes
0 best-effort
1 expedited-forwarding
2 assured-forwarding
3 network-control
Active alarms : None
Active defects : None
MAC statistics: Receive Transmit
Total octets 0 113871616
Total packets 0 889620
Unicast packets 0 0
Broadcast packets 0 0
Multicast packets 0 889620
CRC/Align errors 0 0
FIFO errors 0 0
MAC control frames 0 0
MAC pause frames 0 0
Oversized frames 0
Jabber frames 0
Fragment frames 0
VLAN tagged frames 0
Code violations 0
Total errors 0 0
Filter statistics:
Input packet count 0
Input packet rejects 0
Input DA rejects 0
Input SA rejects 0
Output packet count 889620
Output packet pad count 0
Output packet error count 0
CAM destination filters: 0, CAM source filters: 0
Autonegotiation information:
Negotiation status: Complete
Link partner:
208
% bps % usec
0 best-effort 95 950000000 95 0 low none
Logical interface ge-5/3/9.0 (Index 818) (SNMP ifIndex 1597) (Generation 149)
Flags: SNMP-Traps 0x4004000 Encapsulation: ENET2
Traffic statistics:
Input bytes : 0
Output bytes : 97857650
Input packets: 0
Output packets: 889620
Local statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Transit statistics:
Input bytes : 0 0 bps
Output bytes : 97857650 1320 bps
Input packets: 0 0 pps
Output packets: 889615 1 pps
Protocol aenet, AE bundle: ae4.0, Generation: 180, Route table: 0
Meaning
The MAC statistics Unicast packet field shows that the interface is not transmitting any unicast packet
traffic and the Multicast packet field shows that the total number of packets being transmitted from the
interface are multicast packets.
RELATED DOCUMENTATION
209
Configuring the Distribution Type for Demux Subscribers on Aggregated Ethernet Interfaces | 192
Action
• To display a summary of the distribution of links on the demux interface:
RELATED DOCUMENTATION
Configuring the Distribution Type for Demux Subscribers on Aggregated Ethernet Interfaces | 192
Configuring Rebalancing of Demux Subscribers in an Aggregated Ethernet Interface | 194
By default, the system supports hash-based distribution of subscriber traffic in aggregated Ethernet bundles.
You can configure the system to target the egress traffic for a subscriber on a single member link, using a
single scheduler resource. The system distributes the subscriber interfaces equally among the member
links.
[edit]
user@host#edit chassis
210
[edit chassis]
user@host#set network-services enhanced-ip
[edit]
user@host#edit interfaces pp0 unit logical-unit-number
RELATED DOCUMENTATION
Action
• To display a summary of the distribution of links on the demux interface:
RELATED DOCUMENTATION
CHAPTER 9
IN THIS CHAPTER
Subscriber Interfaces That Provide Initial CoS Parameters Dynamically Obtained from RADIUS | 212
CoS Traffic Shaping Attributes for Dynamic Interface Sets and Member Subscriber Sessions Overview | 221
Guidelines for Configuring CoS Traffic Shaping Attributes for Dynamic Interface Sets and Member Subscriber
Sessions | 223
Configuring Static Default Values for Traffic Scheduling and Shaping | 225
Applying CoS Traffic-Shaping Attributes to Dynamic Interface Sets and Member Subscriber Sessions | 227
CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets | 229
IN THIS SECTION
Predefined Variables for Dynamic Configuration of Initial Scheduling and Queuing | 214
213
You can configure interface-specific CoS parameters that the router obtains when subscribers log in at
appropriately configured static or dynamic subscriber interfaces. This feature is supported only for interfaces
on Enhanced Queuing Dense Port Concentrators (EQ DPCs) in MX Series 5G Universal Routing Platforms.
To configure a dynamic profile to provide initial CoS Services, make sure you understand the following
concepts:
When a router interface receives a join message from a DHCP subscriber, the Junos OS applies the values
configured in the dynamic profile associated with that router interface. A dynamic profile that is activated
through its association with a subscriber interface is known as an access dynamic profile. You can associate
a dynamic profile with a subscriber interface on the router by including statements at the [edit
dynamic-profiles profile-name class-of-service interfaces] hierarchy level.
The Junos OS supports predefined variables for obtaining CoS parameters from the RADIUS authentication
server. When a client authenticates over a router interface associated with the access dynamic profile,
the router replaces the predefined variables with interface-specific values obtained from the RADIUS
server.
NOTE: To associate dynamically configured initial CoS features with a subscriber interface,
reference Junos OS predefined variables—and not user-defined variables—in an access dynamic
profile for that interface.
You can configure an access dynamic profile that provides initial traffic-shaping parameters when a
subscriber logs in. The Junos OS obtains this information from the RADIUS server when a subscriber
authenticates over the static or dynamic subscriber interface to which the access dynamic profile is attached.
If you define the Juniper Networks authentication and authorization VSA for CoS traffic-shaping parameter
values (attribute number 26–108) on the RADIUS authentication server, the RADIUS server includes the
values in RADIUS Access-Accept messages it sends to the router when a subscriber successfully
authenticates over the interface.
To provide an initial scheduler map name and traffic shaping parameters obtained from the RADIUS
authentication server when a subscriber logs in, reference the Junos OS predefined variables for CoS listed
in Table 20 on page 214 in an access dynamic profile associated with the subscriber interface.
214
Table 20: CoS Predefined Variables for Scheduler Map and Traffic Shaping
Variable Description
NOTE: The scheduler map referenced by the scheduler-map statement can be defined
dynamically (at the [edit dynamic-profiles profile-name class-of-service scheduler-maps]
hierarchy level) or statically (at the [edit class-of-service scheduler-maps] hierarchy
level).
You can configure an access dynamic profile that provides initial traffic-shaping parameters when a
subscriber logs in. The Junos OS obtains this information from the RADIUS server when a subscriber
authenticates over the static or dynamic subscriber interface to which the access dynamic profile is attached.
If you define the Juniper Networks authentication and authorization VSA for CoS scheduling and queuing
parameter values (attribute number 26–146) on the RADIUS authentication server, the RADIUS server
includes the values in RADIUS Access-Accept messages it sends to the router when a subscriber successfully
authenticates over the interface.
To provide an initial scheduler name and scheduler and queuing parameters obtained from the RADIUS
authentication server when a subscriber logs in, reference the Junos OS predefined variables listed in
Table 21 on page 215 in an access dynamic profile associated with the subscriber interface.
215
Variable Description
$junos-cos-scheduler-dropfile-low Name of the drop profile for RED for loss-priority level low to be
dynamically configured for the scheduler in the access dynamic profile.
You can configure a RADIUS authentication server to include this
information in the Accept-Accept message when a subscriber
successfully authenticates over the static or dynamic subscriber
interface to which the access dynamic profile is attached.
NOTE: The drop profile must be configured statically (at the [edit
class-of-service schedulers scheduler-name drop-profiles] hierarchy
level) for loss-priority low.
216
Table 21: CoS Predefined Variables for Scheduling and Queuing (continued)
Variable Description
$junos-cos-scheduler-dropfile-medium-low Name of the drop profile for RED for loss-priority level medium-low
to be dynamically configured for the scheduler in the access dynamic
profile. The Junos OS obtains this information from the RADIUS server
when a subscriber authenticates over the static or dynamic subscriber
interface to which the access dynamic profile is attached.
NOTE: The drop profile must be configured statically (at the [edit
class-of-service schedulers scheduler-name drop-profiles] hierarchy
level).
$junos-cos-scheduler-dropfile-medium-high Name of the drop profile for RED for loss-priority level medium-high
to be dynamically configured for the scheduler in the access dynamic
profile. You can configure a RADIUS authentication server to include
this information in the Accept-Accept message when a subscriber
successfully authenticates over the static or dynamic subscriber
interface to which the access dynamic profile is attached.
NOTE: The drop profile must be configured statically (at the [edit
class-of-service schedulers scheduler-name drop-profiles] hierarchy
level).
$junos-cos-scheduler-dropfile-high Name of the drop profile for RED for loss-priority level high to be
dynamically configured for the scheduler in the access dynamic profile.
You can configure a RADIUS authentication server to include this
information in the Accept-Accept message when a subscriber
successfully authenticates over the static or dynamic subscriber
interface to which the access dynamic profile is attached.
NOTE: The drop profile must be configured statically (at the [edit
class-of-service schedulers scheduler-name drop-profiles] hierarchy
level).
$junos-cos-scheduler-dropfile-any Name of the drop profile for RED for loss-priority level any to be
dynamically configured for the scheduler in the access dynamic profile.
You can configure a RADIUS authentication server to include this
information in the Accept-Accept message when a subscriber
successfully authenticates over the static or dynamic subscriber
interface to which the access dynamic profile is attached.
NOTE: The drop profile must be configured statically (at the [edit
class-of-service schedulers scheduler-name drop-profiles] hierarchy
level).
217
RELATED DOCUMENTATION
This topic describes how to provide CoS when subscribers dynamically upgrade or downgrade services in
an access environment.
You can configure your network with a dynamic client profile that provides all subscribers with default CoS
parameters when they log in. For example, all subscribers can receive a basic data service. By configuring
the client profile with Junos OS predefined variables for RADIUS-provided CoS parameters, you also enable
the service to be activated for those subscribers at login.
NOTE: The dynamic client profile is also referred to as a dynamic client access profile, or
sometimes just access profile for brevity. Do not confuse this profile, configured at the [edit
dynamic-profiles profile-name] hierarchy level, with the access profile configured at the [edit
access profile profile-name] hierarchy level. These static access profiles are used to configure
authentication, accounting, and authorization parameters for subscriber access, some session
attributes, and client-specific properties for L2TP and PPP sessions. Access profiles are applied
at various configuration levels with the access-profile statement.
You can configure variables for the following CoS parameters in a service profile:
• Shaping rate
• Guaranteed rate
• Scheduler map
For each CoS parameter, you must associate a RADIUS vendor ID. For each vendor ID, you must assign
an attribute number and a tag. The tag is used to differentiate between values for different CoS variables
when you specify the same attribute number for those variables. These values are matched with the values
supplied by RADIUS during subscriber authentication. All of the values in the dynamic profile must be
defined in RADIUS or none of the values are passed.
Optionally, you can configure default values for each parameter. Configuring default values is beneficial
if you do not configure RADIUS to enable service changes. During service changes, RADIUS takes
precedence over the default value that is configured.
Depending on how you configure CoS parameters in the access and service profiles, certain CoS parameters
are replaced or merged when subscribers change or activate new services.
Static configuration is when you configure the scheduler map and schedulers in the static [edit
class-of-service] hierarchy and reference the scheduler map in the dynamic profile. Dynamic configuration
is when you configure the scheduler map and schedulers within the dynamic profile.
The CoS configuration also depends on whether you have enabled multiple subscribers on the same logical
interface using the aggregate-clients statements in the dynamic profile referenced by DHCP. When you
specify the aggregate-clients replace statement, the scheduler map names are replaced. In both cases, if
the length of the scheduler map name exceeds 128 characters, subscribers cannot log in. When you specify
the aggregate-clients merge statement, the scheduler map names specified in the dynamic profile are
appended.
BEST PRACTICE: To improve CoS performance in IPv4, IPv6, and dual-stack networks, we
recommend that you use the aggregate-clients replace statement rather than the
aggregate-clients merge statement.
Table 22 on page 219 lists the scenarios for static and dynamic configuration of CoS parameters in access
profiles and service profiles at subscriber login. The table also lists the behavior for each configuration for
service activation and service modification using RADIUS CoA messages.
219
Subscriber login • Configure RADIUS • Configure RADIUS • Configure RADIUS • Configure RADIUS
values or default values or default values or default values or default
values for all values for all values for all values for all
parameters in parameters in parameters in parameters in
access profile access profile access profile access profile
• Configure • Configure • Configure • Configure
scheduler map in scheduler map and scheduler map and scheduler map and
edit schedulers in schedulers in schedulers in
class-of-service access profile access profile access profile
hierarchy and
reference in access
profile
RADIUS CoA for Replaces the Replaces the Combines the values Replaces the
service or variable following parameters: following parameters: of the following following parameters:
change parameters to their
• Delay buffer rate • Delay buffer rate maximum scalar • Delay buffer rate
• Guaranteed rate • Guaranteed rate value: • Guaranteed rate
• Scheduler map • Shaping rate • Shaping rate
• Delay buffer rate
• Shaping rate • Scheduler map • Scheduler map
• Guaranteed rate
• Shaping rate
Appends the
scheduler map
parameter
220
RADIUS CoA for Does not merge Merge queues if the Merge queues if the Merge queues if the
service activation queues queue specified in queue specified in queue specified in
the service profile is the service profile is the service profile is
NOTE:In this case,
not already in use for not already in use for not already in use for
use a similar
the subscriber the subscriber the subscriber
configuration to the
access profile, NOTE: Do not NOTE: Do not NOTE: Do not
including the same instantiate a CoA instantiate a CoA instantiate a CoA
name for the request using a request using a request using a
traffic-control-profile. service dynamic service dynamic service dynamic
During service profile that is already profile that is already profile that is already
activation, this in use on the same in use on the same in use on the same
configuration logical interface. logical interface. logical interface.
replaces the original
configuration in the
access profile.
RELATED DOCUMENTATION
CoS Traffic Shaping Attributes for Dynamic Interface Sets and Member
Subscriber Sessions Overview
IN THIS SECTION
CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets and Member Subscriber Sessions | 222
To control bandwidth at a household level in a subscriber access network, you can apply RADIUS dynamic
class of service (CoS) traffic-shaping attributes to a dynamic interface set and its member subscriber
sessions when the subscriber sessions are authenticated. (The dynamic interface set itself does not go
through the authentication process.)
The subscriber sessions, also referred to as subscriber interfaces or client sessions, can be dynamic VLAN,
PPPoE, or IP demultiplexing (IP demux) subscriber interfaces. The subscriber interfaces are mapped to
Level 3 of the Junos OS CoS scheduler hierarchy.
Applying RADIUS dynamic CoS traffic-shaping attributes to a dynamic interface set and its member
subscriber sessions is supported for the following network configurations:
• Dynamic IP demux subscriber interfaces (for DHCP subscribers) over either a dynamic interface set or
a dynamic ACI interface set
• Dynamic PPPoE subscriber interfaces over either a dynamic interface set or a dynamic ACI interface set
To apply dynamic CoS traffic-shaping attributes to a dynamic interface set and its member subscriber
sessions, you must define and attach the traffic-control profiles for both the dynamic interface set and the
dynamic subscriber sessions within the dynamic profile for the subscriber interface.
222
• Traffic-control profile for the dynamic VLAN, PPPoE, or IP demux subscriber interfaces
• Traffic-control profile for the dynamic interface set or dynamic ACI interface set to which the subscriber
interfaces belong
RADIUS tag values for the Junos OS CoS traffic shaping predefined variables used in both traffic-control
profiles must be in the 100s range, as described in “CoS Traffic Shaping Predefined Variables for Dynamic
Interface Sets” on page 229.
At the [edit dynamic-profiles profile-name interfaces] hierarchy level in the dynamic profile, use the
output-traffic-control-profile statement to apply the traffic-control profiles to the dynamic subscriber
interface and the dynamic interface set or dynamic ACI interface set.
CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets and Member Subscriber
Sessions
The set of $junos-cos-parameter predefined dynamic variables has been duplicated and assigned a RADIUS
tag value in the 100s range for use with this feature. The RADIUS tag value is the only difference between
the existing CoS traffic-shaping predefined dynamic variables and the predefined dynamic variables that
you must use with this feature.
Both RADIUS instances of the $junos-cos-parameter predefined dynamic variables are available, but you
must use the dynamic variables with tag values in the 100s range to apply CoS traffic-shaping attributes
to both the dynamic interface set and member subscriber sessions in a subscriber interface dynamic profile.
For example, the existing $junos-cos-shaping-rate predefined variable is assigned RADIUS vendor ID
4874, attribute number 108, and tag value 2. To apply CoS traffic-shaping attributes to the dynamic
interface set and its member subscriber sessions, you must instead use the $junos-cos-shaping-rate
predefined variable that is assigned RADIUS vendor ID 4874, attribute number 108, and tag value 102.
RELATED DOCUMENTATION
223
Guidelines for Configuring CoS Traffic Shaping Attributes for Dynamic Interface Sets and Member
Subscriber Sessions | 223
Applying CoS Traffic-Shaping Attributes to Dynamic Interface Sets and Member Subscriber Sessions | 227
CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets | 229
Observe the following guidelines when you apply dynamic CoS traffic-shaping attributes to a dynamic
interface set or a dynamic ACI interface set and its member subscriber sessions. For complete information
about the Junos OS CoS traffic-shaping predefined dynamic variables and RADIUS tag values used with
this feature, see “CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets” on page 229.
• This feature is supported only for dynamically configured and instantiated subscriber interfaces.
• Use the $junos-cos-adjust-minimum predefined variable (tag 109) only in traffic-control profiles for
dynamic subscriber interfaces. Using this variable in a traffic-control profile for a dynamic interface set
or dynamic ACI interface set has no effect.
• Do not configure the $junos-cos-excess-rate-high predefined variable (tag 110) when the
$junos-cos-excess-rate predefined variable (tag 105) is configured, and vice-versa.
• Do not configure the $junos-cos-excess-rate-low predefined variable (tag 111) when the
$junos-cos-excess-rate predefined variable (tag 105) is configured, and vice-versa.
• Do not configure the $junos-cos-byte-adjust-frame predefined variable (tag 114) when the
$junos-cos-byte-adjust predefined variable (tag 108) is configured, and vice-versa.
• Do not configure the $junos-cos-byte-adjust-cell predefined variable (tag 115) when the
$junos-cos-byte-adjust predefined variable (tag 108) is configured, and vice-versa.
• Use the per-priority $junos-cos-shaping-rate-parameter predefined variables (tags 116 through 125)
only in traffic-control profiles for dynamic interface sets or dynamic ACI interface sets. Using these
variables in traffic-control profiles for a dynamic logical subscriber interface causes the subscriber session
to fail.
RELATED DOCUMENTATION
224
Applying CoS Traffic-Shaping Attributes to Dynamic Interface Sets and Member Subscriber Sessions | 227
CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets | 229
CoS Traffic Shaping Attributes for Dynamic Interface Sets and Member Subscriber Sessions
Overview | 221
You can configure a subscriber interface so that subscribers receive initial CoS parameters that the router
obtains from the RADIUS authentication server when subscribers log in using that logical interface on the
router.
1. Configure external RADIUS server VSAs with values that you expect subscribers to log in with.
• To configure a RADIUS authentication server to include CoS scheduling and queuing parameters in
authentication grants a certain subscriber interfaces, configure Juniper Networks VSA 28–146.
See Configuring Router or Switch Interaction with RADIUS Servers and RADIUS Servers and Parameters for
Subscriber Access.
See Applying Traffic Shaping and Scheduling to a Subscriber Interface in a Dynamic Profile.
See Configuring Dynamic Traffic Shaping and Scheduling Parameters in a Dynamic Profile.
See Configuring a Custom Forwarding Class for Each Queue and Configuring Scheduler Maps.
6. Configure a scheduler to specify initial scheduling and queuing parameters to be dynamically obtained
from RADIUS when a subscriber logs in.
RELATED DOCUMENTATION
225
Subscriber Interfaces That Provide Initial CoS Parameters Dynamically Obtained from RADIUS | 212
Example: Configuring Initial CoS Parameters Dynamically Obtained from RADIUS
Guidelines for Configuring Dynamic CoS for Subscriber Access
Subscriber Activation and Service Management in an Access Network
Juniper Networks VSAs Supported by the AAA Service Framework
Dynamic Profiles Overview
Dynamic Variables Overview
Junos OS Predefined Variables
To provide subscribers with default values for CoS parameters, configure user-defined variables for CoS
parameters and assign static default values to the variables. If you have configured values to be supplied
by a RADIUS CoA, subscribers receive the default value when deactivating a service.
To configure user-defined variables with default values for CoS in a dynamic profile:
6. Configure the variables for the CoS parameters in the traffic-control profile.
Either the shaping rate or the guaranteed rate is required in the traffic-control profile.
RELATED DOCUMENTATION
To control bandwidth at a household level in a subscriber access network, you can apply RADIUS dynamic
class of service (CoS) traffic-shaping attributes to a dynamic interface set or agent-circuit-identifer (ACI)
interface set and its member subscriber sessions when the member sessions are authenticated. The dynamic
interface set or ACI interface set represents the household from which the subscriber sessions originate.
The subscriber sessions, also referred to as client sessions or subscriber interfaces, can be dynamic VLAN,
PPPoE, or IP demultiplexing (IP demux, for DHCP) subscriber interfaces.
To apply RADIUS dynamic CoS traffic-shaping attributes to both the dynamic interface set and its member
subscriber sessions, you must configure two traffic-control profiles in the dynamic profile for the subscriber
interface: one traffic-control profile for the “parent” dynamic interface set, and a second traffic-control
profile for the dynamic subscriber interfaces. RADIUS tag values for the Junos OS CoS traffic shaping
predefined variables used in both traffic-control profiles must be in the 100s range.
• Create a dynamic profile that defines the VLAN, PPPoE, or IP demux logical subscriber interface.
To apply dynamic CoS traffic-shaping attributes to a dynamic ACI or non-ACI interface set and its member
subscriber sessions in a dynamic profile for the subscriber interface:
• Traffic-control profile for the VLAN, PPPoE, or IP demux dynamic subscriber interfaces
• Traffic-control profile for the dynamic interface set or dynamic ACI interface set to which the
subscriber interfaces belong
2. In the traffic-control profiles configured for the dynamic interface set and the subscriber interfaces,
reference Junos OS CoS traffic-shaping predefined variables with RADIUS tag values in the 100s range.
See “CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets” on page 229 for a complete
list of the Junos OS predefined variables and RADIUS tag values that you must use in the traffic-control
profiles for the dynamic subscriber interfaces and the dynamic interface set.
228
Example: Dynamic PPPoE Subscriber Interface over Dynamic ACI Interface Set
The following example shows a dynamic profile named pppoe-subscriber that configures a dynamic PPPoE
(pp0) subscriber interface over a dynamic ACI interface set.
The traffic-control-profiles stanza defines two traffic-control profiles: tcp-pppoe-session for the dynamic
PPPoE subscriber interface, and tcp-parent-aci-set for the dynamic “parent” ACI interface set. The
$junos-cos-shaping-rate predefined variable included in each of these traffic-control profiles is assigned
RADIUS vendor ID 4874, attribute number 108, and tag value 102. The $junos-cos-shaping-mode variable
is assigned RADIUS vendor ID 4874, attribute number 108, and tag value 107.
The interfaces stanza applies output traffic-control profile tcp-pppoe-session to the dynamic PPPoE (pp0)
subscriber interface, and output traffic-control profile tcp-parent-aci-set to the dynamic ACI interface set.
[edit dynamic-profiles]
pppoe-subscriber {
interfaces {
interface-set "$junos-interface-set-name" {
interface pp0 {
unit "$junos-interface-unit";
}
}
pp0 {
unit "$junos-interface-unit" {
ppp-options {
pap;
}
pppoe-options {
underlying-interface "$junos-underlying-interface";
server;
}
no-keepalives;
family inet {
unnumbered-address lo0.0;
}
}
229
}
}
class-of-service {
traffic-control-profiles {
tcp-pppoe-session {
scheduler-map smap-1;
shaping-rate $junos-cos-shaping-rate;
overhead-accounting $junos-cos-shaping-mode frame-mode-bytes -4 cell-mode-bytes 12;
}
tcp-parent-aci-set {
shaping-rate $junos-cos-shaping-rate;
overhead-accounting $junos-cos-shaping-mode frame-mode-bytes -4 cell-mode-bytes 12;
}
}
interfaces {
pp0 {
unit "$junos-interface-unit" {
output-traffic-control-profile tcp-pppoe-session;
}
}
interface-set $junos-interface-set-name {
output-traffic-control-profile tcp-parent-aci-set;
}
}
}
}
}
RELATED DOCUMENTATION
CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets | 229
CoS Traffic Shaping Attributes for Dynamic Interface Sets and Member Subscriber Sessions
Overview | 221
Guidelines for Configuring CoS Traffic Shaping Attributes for Dynamic Interface Sets and Member
Subscriber Sessions | 223
To control bandwidth at a household level in a subscriber access network, you can apply RADIUS CoS
traffic-shaping attributes to a dynamic interface set and its member subscriber sessions when the member
230
sessions are authenticated. The dynamic interface set, which represents the household level in a subscriber
access network, can be either a dynamic agent-circuit-identifier (ACI) interface set or a non-ACI–based
dynamic interface set. The subscriber sessions belonging to the interface set can be dynamic VLAN, DHCP,
or PPPoE subscriber interfaces.
To apply RADIUS CoS traffic-shaping attributes to both the dynamic interface set and its member subscriber
sessions, you must configure two traffic-control profiles in the dynamic profile for the subscriber interface:
one traffic-control profile for the “parent” dynamic interface set, and a second traffic-control profile for
the dynamic subscriber interfaces. RADIUS tag values for the Junos OS CoS traffic-shaping predefined
variables used in these traffic-control-profiles must be in the 100s range, as described in
Table 23 on page 230.
To accommodate this feature, the set of existing $junos-cos-parameter predefined dynamic variables for
traffic shaping have been duplicated and assigned a tag value in the 100s range, as listed in
Table 23 on page 230. The tag value is the only difference between the existing predefined dynamic variables
and the predefined dynamic variables that you must use with this feature.
For example, the existing $junos-cos-shaping-rate predefined variable is assigned RADIUS vendor ID
4874, attribute number 108, and tag value 2. To apply RADIUS CoS traffic-shaping attributes to the
dynamic interface set and its member subscriber sessions, you must instead use the $junos-cos-shaping-rate
predefined variable that is assigned RADIUS vendor ID 4874, attribute number 108, and tag value 102.
Table 23 on page 230 describes the Junos OS predefined dynamic variables and RADIUS tag values that
you can use in a dynamic profile to apply RADIUS CoS traffic-shaping attributes to the dynamic interface
set and its member subscriber sessions. The table lists the predefined dynamic variables in ascending order
by tag value.
NOTE: All of the predefined variables listed in Table 23 on page 230 use RADIUS vendor ID 4874
and RADIUS attribute value 108.
Table 23: Junos OS CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets
RADIUS Tag
Predefined Variable Value Description
Table 23: Junos OS CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets (continued)
RADIUS Tag
Predefined Variable Value Description
Table 23: Junos OS CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets (continued)
RADIUS Tag
Predefined Variable Value Description
Table 23: Junos OS CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets (continued)
RADIUS Tag
Predefined Variable Value Description
Table 23: Junos OS CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets (continued)
RADIUS Tag
Predefined Variable Value Description
Table 23: Junos OS CoS Traffic Shaping Predefined Variables for Dynamic Interface Sets (continued)
RADIUS Tag
Predefined Variable Value Description
RELATED DOCUMENTATION
Applying CoS Traffic-Shaping Attributes to Dynamic Interface Sets and Member Subscriber Sessions | 227
CoS Traffic Shaping Attributes for Dynamic Interface Sets and Member Subscriber Sessions
Overview | 221
Guidelines for Configuring CoS Traffic Shaping Attributes for Dynamic Interface Sets and Member
Subscriber Sessions | 223
Junos OS Predefined Variables
In this example, subscribers are provided with a data and voice service defined in an access profile when
they initially log in. The RADIUS administrator supplies the initial values on the RADIUS server, and the
service activation is performed at subscriber login.
After the initial login, the subscriber adds an assured forwarding service that is not defined in the original
access profile. A service profile is used to configure the schedulers and a RADIUS CoA activates the service.
The queues defined for the schedulers in the initial scheduler map and the new scheduler map are merged.
In addition, the values for the initial data and voice service are upgraded by the RADIUS administrator
through a separate RADIUS CoA message.
To configure the initial service and enable the activation through a RADIUS CoA:
[edit]
dynamic-profiles access-profile {
interfaces {
$junos-interface-ifd-name {
unit $junos-underlying-interface-unit {
family inet;
}
}
}
}
b. Configure the class of service parameters in the access profile. In this example, you configure Junos
OS predefined variables that provide the initial scheduler name and scheduler parameters obtained
from the RADIUS authentication server when the subscriber logs in.
Include the configurations for the interfaces, schedulers, and the scheduler maps.
[edit]
dynamic-profiles access-profile {
class-of-service {
traffic-control-profiles {
tcp1 {
scheduler-map $junos-cos-scheduler-map;
shaping-rate $junos-cos-shaping-rate;
guaranteed-rate $junos-cos-guaranteed-rate;
delay-buffer-rate $junos-cos-delay-buffer-rate;
}
}
interfaces {
$junos-interface-ifd-name {
unit "$junos-underlying-interface-unit" {
classifiers {
ieee-802.1 l2_classifier;
}
rewrite-rules {
ieee-802.1 l2_rewrite;
}
output-traffic-control-profile tcp1;
}
}
}
schedulers {
$junos-cos-scheduler {
buffer-size percent $junos-cos-scheduler-bs;
237
priority $junos-cos-scheduler-pri;
transmit-rate percent $junos-cos-scheduler-tx;
drop-profile-map loss-priority low protocol any $junos-cos-scheduler-low;
drop-profile-map loss-priority medium-low protocol any $junos-cos-scheduler-medium-low;
drop-profile-map loss-priority medium-high protocol any $junos-cos-scheduler-medium-high;
drop-profile-map loss-priority high protocol any $junos-cos-scheduler-high;
}
}
scheduler-maps {
data_voice_smap {
forwarding-class be scheduler be_sch;
forwarding-class ef scheduler ef_sch;
}
}
}
}
Table 24 on page 237 lists the initial values defined by the RADIUS administrator for the scheduler
map and shaping rates.
Table 24: Initial Scheduler Map and Shaping Values at Subscriber Login
$junos-cos-shaping-rate T02 6m
$junos-cos-guaranteed-rate T03 4m
$junos-cos-delay-buffer-rate T04 4m
Table 25 on page 237 lists the initial values defined by the RADIUS administrator for the voice
(expedited forwarding) scheduler.
Table 25: Initial CoS Values for the Voice Scheduler at Subscriber Login
$junos-cos-scheduler — ef_sch
$junos-cos-scheduler-tx T01 10
$junos-cos-scheduler-bs T02 10
Table 25: Initial CoS Values for the Voice Scheduler at Subscriber Login (continued)
$junos-cos-scheduler-dropfile-low T04 d3
$junos-cos-scheduler-dropfile-medium-low T05 d2
$junos-cos-scheduler-dropfile-medium-high T06 d1
$junos-cos-scheduler-dropfile-high T07 d0
Table 26 on page 238 lists the initial values defined by the RADIUS administrator for the data (best
effort) scheduler.
Table 26: Initial CoS Values for the Data Scheduler at Subscriber Login
$junos-cos-scheduler — be_sch
$junos-cos-scheduler-tx T01 10
$junos-cos-scheduler-bs T02 10
$junos-cos-scheduler-dropfile-low T04 d0
$junos-cos-scheduler-dropfile-medium-low T05 d1
$junos-cos-scheduler-dropfile-medium-high T06 d2
$junos-cos-scheduler-dropfile-high T07 d3
2. Configure the classifiers, drop profiles, forwarding classes, and rewrite rules in the static [edit
class-of-service] hierarchy.
[edit]
class-of-service {
classifiers {
239
dscp dscp_classifier {
forwarding-class be {
loss-priority low code-points 000000;
}
forwarding-class af {
loss-priority medium-low code-points 000001;
}
}
ieee-802.1 l2_classifier {
forwarding-class be {
loss-priority medium-low code-points 000;
}
forwarding-class ef {
loss-priority medium-low code-points 100;
}
forwarding-class af {
loss-priority medium-low code-points 010;
}
}
}
drop-profiles {
d0 {
fill-level 25 drop-probability 100;
fill-level 0 drop-probability 0;
}
d1 {
fill-level 50 drop-probability 100;
fill-level 0 drop-probability 0;
}
d2 {
fill-level 75 drop-probability 100;
fill-level 0 drop-probability 0;
}
d3 {
fill-level 0 drop-probability 0;
fill-level 100 drop-probability 100;
}
}
forwarding-classes {
queue 0 be;
queue 1 ef;
queue 2 af;
queue 3 nc;
}
240
interfaces {
ge-1/2/9 {
shaping-rate 100m;
}
}
rewrite-rules {
ieee-802.1 l2_rewrite {
forwarding-class be {
loss-priority medium-low code-point 000;
}
forwarding-class ef {
loss-priority medium-low code-point 001;
}
forwarding-class af {
loss-priority medium-low code-point 100;
}
dscp l2_rewrite {
forwarding-class be {
loss-priority medium-low code-points 000;
}
forwarding-class ef {
loss-priority medium-low code-points 001;
}
forwarding-class af {
loss-priority medium-low code-points 001;
}
}
}
3. Configure the service profile enable RADIUS to activate the video service after login. The video service
corresponds to assured forwarding PHB.
In this example, you configure Junos OS predefined variables that provide the initial scheduler name
and scheduler parameters obtained from the RADIUS authentication server when the subscriber logs
in.
[edit]
dynamic-profiles service-af {
variables {
af_fc default-value video;
af_sch default-value af_sch;
sch-drop-any default-value all;
sch-pri-2 default-value strict-high;
sch-bs-2 default-value 40;
241
After the three services are activated, subscribers receive upgraded values for the data and voice service
when RADIUS sends a change of authorization (CoA). In this case, the CoS parameters are replaced, because
multiple subscribers were not enabled on the logical interface.
Table 27 on page 241 lists the upgraded values defined by the RADIUS administrator.
Table 28 on page 242 lists the values defined by the RADIUS administrator for the video (assured forwarding)
scheduler.
242
$junos-cos-scheduler — af_sch
$junos-cos-scheduler-tx T01 10
$junos-cos-scheduler-bs T02 10
$junos-cos-scheduler-dropfile-low T04 d3
$junos-cos-scheduler-dropfile-medium-low T05 d2
$junos-cos-scheduler-dropfile-medium-high T06 d1
$junos-cos-scheduler-dropfile-high T07 d0
Table 29 on page 242 lists the values defined by the RADIUS administrator for the expedited forwarding
scheduler in the CoA message. The values are the same as the initial service.
Table 29: Initial CoS Values for the Expedited Forwarding Scheduler at Subscriber Login
$junos-cos-scheduler — ef_sch
$junos-cos-scheduler-tx T01 10
$junos-cos-scheduler-bs T02 10
$junos-cos-scheduler-dropfile-low T04 d3
$junos-cos-scheduler-dropfile-medium-low T05 d2
$junos-cos-scheduler-dropfile-medium-high T06 d1
$junos-cos-scheduler-dropfile-high T07 d0
Table 30 on page 243 lists the values defined by the RADIUS administrator for the best effort scheduler in
the CoA message. The values are the same as the initial service.
243
Table 30: Initial CoS Values for the Best Effort Scheduler at Subscriber Login
$junos-cos-scheduler — be_sch
$junos-cos-scheduler-tx T01 10
$junos-cos-scheduler-bs T02 10
$junos-cos-scheduler-dropfile-low T04 d0
$junos-cos-scheduler-dropfile-medium-low T05 d1
$junos-cos-scheduler-dropfile-medium-high T06 d2
$junos-cos-scheduler-dropfile-high T07 d3
RELATED DOCUMENTATION
CHAPTER 10
Configuration Statements
IN THIS CHAPTER
accept | 250
authentication-order | 259
auto-configure | 261
adjust-minimum | 263
adjust-percent | 264
atm-service | 265
cbr | 268
delay-buffer-rate | 276
dhcp-local-server | 291
dhcp-relay | 308
drop-profiles | 331
dynamic-profiles | 340
egress-shaping-overhead | 354
excess-bandwidth-share | 356
excess-priority | 358
family | 366
flexible-vlan-tagging | 384
guaranteed-rate | 392
hierarchical-scheduler | 394
ieee-802.1ad | 397
input-excess-bandwidth-share | 399
input-scheduler-map | 400
input-traffic-control-profile | 405
247
input-traffic-control-profile-remaining | 406
interfaces | 413
internal-node | 425
interpolate | 426
max-queues | 430
max-queues-per-interface | 432
member-link-scheduler | 434
output-traffic-control-profile | 437
output-traffic-control-profile-remaining | 439
overhead-accounting | 441
peak-rate | 443
per-unit-scheduler | 444
protocols | 461
proxy-arp | 465
qos-adjust-hierarchical | 467
radius-server | 473
server-group | 493
shaping-rate-excess-high | 502
shaping-rate-excess-low | 504
shaping-rate-priority-high | 506
shaping-rate-priority-low | 508
shaping-rate-priority-medium | 510
shared-instance | 513
shared-scheduler | 514
simple-filter | 516
stacked-vlan-tagging | 521
traffic-control-profiles | 527
traffic-manager | 530
transparent | 537
249
unit | 541
vlan-model | 555
vlan-ranges | 556
vlan-tag | 558
vlan-tags | 559
vlan-tags-outer | 560
accept
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.5.
dhcp-v4 option added in Junos OS Release 10.0.
dhcp-v6, inet6 and pppoe options added in Junos OS Release 10.2.
any option added in Junos OS Release 10.4.
Description
Specify the type of VLAN Ethernet packet accepted by an interface that is associated with a VLAN dynamic
profile or stacked VLAN dynamic profile.
Options
any—Any packet type. Specifies that any incoming packets trigger the dynamic creation of a VLAN with
properties determined by the auto-configure interface configuration stanza and associated profile attributes.
This option is used when configuring wholesaling in a Layer 2 network.
dhcp-v4—IPv4 DHCP packet type. Specifies that incoming IPv4 DHCP discover packets trigger the dynamic
creation of a VLAN with properties determined by the auto-configure interface configuration stanza and
associated profile attributes
NOTE: The DHCP-specific mac-address and option-82 options are rejected if the accept
statement is not set to dhcp-v4.
dhcp-v6—IPv6 DHCP packet type. Specifies that incoming IPv6 DHCP discover packets trigger the dynamic
creation of a VLAN with properties determined by the auto-configure interface configuration stanza and
associated profile attributes.
NOTE: The pppoe VLAN Ethernet packet type option is supported only for MPC/MIC interfaces.
RELATED DOCUMENTATION
Configuring an Interface to Use the Dynamic Profile Configured to Create Stacked VLANs
Configuring an Interface to Use the Dynamic Profile Configured to Create Single-Tag VLANs
Configuring VLAN Interfaces for the Layer 2 Wholesale Solution
Configuring Subscriber Packet Types to Trigger VLAN Authentication
252
address-assignment {
abated-utilization percentage;
abated-utilization-v6 percentage;
high-utilization percentage;
high-utilization-v6 percentage;
neighbor-discovery-router-advertisement ndra-pool-name;
pool pool-name {
active-drain;
family family {
dhcp-attributes {
protocol-specific attributes;
}
excluded-address ip-address;
excluded-range name low minimum-value high maximum-value;
host hostname {
hardware-address mac-address;
ip-address ip-address;
}
network ip-prefix/<prefix-length>;
prefix ipv6-prefix;
range range-name {
high upper-limit;
low lower-limit;
prefix-length prefix-length;
}
}
hold-down;
link pool-name;
}
}
Hierarchy Level
[edit access]
Release Information
Statement introduced in Junos OS Release 9.0.
Statement introduced in Junos OS Release 12.1 for EX Series switches.
Description
253
NOTE: Support for subordinate statements is platform-specific. See individual statement topics
for support information.
Options
abated-utilization—(ACX Series, MX Series only) Starting in Junos OS Release 11.2, generate SNMP traps
for DHCP address pools or linked set of address pools. No SNMP traps are generated unless a value
is configured. Default: Abated utilization is not set. Delete the abated-utilization value to unset.
Values: percentage—Threshold below which an SNMP trap clear is generated. Range: 1 through 98.
abated-utilization-v6—(ACX Series, MX Series only) Starting in Junos OS Release 11.2, generate SNMP
traps for DHCPv6 address pools or linked set of address pools. No SNMP traps are generated unless
a value is configured. Default: Abated utilization is not set. Delete the abated-utilization value to unset.
Values: percentage—Threshold below which an SNMP trap clear is generated. Range: 1 through 98.
high-utilization—(ACX Series, MX Series only) Starting in Junos OS Release 11.2, generate an SNMP trap
when the DHCP address pool or linked set of address pools use surpasses the specified percentage.
Default: High utilization is not set. Delete the high-utilization value to unset.
Values: percentage—Percentage used to generate a trap. Range: 2 through 99.
high-utilization-v6—(ACX Series, MX Series only) Starting in Junos OS Release 11.2, generate an SNMP
trap when the DHCPv6 address pool or linked set of address pools use surpasses the specified
percentage. Default: High utilization is not set. Delete the high-utilization value to unset.
Values: percentage—Percentage used to generate a trap. Range: 2 through 99.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
authentication {
password password-string;
username-include {
circuit-type;
client-id;
delimiter delimiter-character;
domain-name domain-name-string;
interface-description (device-interface | logical-interface);
interface-name ;
logical-system-name;
mac-address;
option-60;
option-82 <circuit-id> <remote-id>;
relay-agent-interface-id;
relay-agent-remote-id;
relay-agent-subscriber-id;
routing-instance-name;
user-prefix user-prefix-string;
vlan-tags;
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.1.
Statement introduced in Junos OS Release 12.3R2 for EX Series switches.
Description
256
Configure the parameters the router sends to the external AAA server. A group configuration takes
precedence over a global DHCP relay or DHCP local server configuration.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
authentication {
password password-string;
username-include {
circuit-type;
client-id;
delimiter delimiter-character;
domain-name domain-name-string;
interface-description (device-interface | logical-interface);
interface-name;
logical-system-name;
mac-address;
option-60;
option-82 <circuit-id> <remote-id>;
relay-agent-interface-id;
relay-agent-remote-id;
relay-agent-subscriber-id;
routing-instance-name;
user-prefix user-prefix-string;
vlan-tags;
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.1.
Statement introduced in Junos OS Release 12.3R2 for EX Series switches.
Support at the [edit ... dhcpv6] hierarchy levels introduced in Junos OS Release 11.4.
Support at the [edit ... dual-stack-group dual-stack-group-name] hierarchy level introduced in Junos OS
Release 15.1.
258
Description
Configure the parameters the router sends to the external AAA server. A group configuration takes
precedence over a global DHCP relay configuration. Use the statement at the [edit...dhcpv6] hierarchy
levels to configure DHCPv6 support.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
dhcp-relay | 308
Specifying Authentication Support
259
authentication-order
Syntax
authentication-order [ authentication-methods ];
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
none option added in Junos OS Release 11.2.
nasreq option added in Junos OS Release 16.1.
s6a option added in Junos OS Release 19.3R1.
Description
Set the order in which AAA tries different authentication methods when verifying that a client can access
the router or switch. For each login attempt, AAA tries the authentication methods in order, from first to
last.
A given subscriber does not undergo both authentication and authorization as separate steps. When both
authentication-order and authorization-order are specified, DHCP subscribers honor the configured
authorization order, all other subscribers use the configured authentication-order.
Starting in Junos OS Release 18.2R1, the password option can also be used to specify that local
authentication and local authorization is attempted for individual subscribers that are configured with the
subscriber statement at the [edit access profile profile-name] hierarchy level.
Options
authentication-methods—Ordered list of methods to use for authentication attempts. The list includes one
or more of the following methods in any combination:
• nasreq—Verify subscribers using the Diameter-based Network Access Server Requirements (NASREQ)
protocol.
• none—No authentication is performed. Grants authentication without examining the client credentials.
Can be used, for example, when the Diameter function Gx-Plus is employed for notification during
subscriber provisioning.
260
NOTE: Subscriber access management does not support the none option; authentication
fails when this option is specified.
• password—Verify the client using the information configured at the [edit access profile profile-name
client client-name] hierarchy level.
Subscriber access management does not support the password option until Junos OS Release 18.2R1.
Starting in Junos OS Release 18.2R1, this option is used to enable local authentication and optionally
local authorization for individual subscribers. Local authentication is typically used when you do not
have external authentication and authorization servers. The password itself must be configured with
the subscriber statement in the same access profile. Local authentication is performed when a
subscriber logs in with a matching username; it succeeds if the subscribers login password matches
the password in the profile.
If you have external authentication and authorization servers, you can use local authentication as a
backup authentication method. In this case, configure password other than first in the list of methods.
Default: password
RELATED DOCUMENTATION
auto-configure
Syntax
auto-configure {
vlan-ranges {
access-profile profile-name;
authentication {
packet-types [packet-types];
password password-string;
username-include{
circuit-id;
circuit-type;
delimiter delimiter-character;
domain-name domain-name-string;
interface-name;
mac-address;
option-18;
option-37;
option-82 <circuit-id> <remote-id>;
radius-realm radius-realm-string;
remote-id;
user-prefix user-prefix-string;
vlan-tags;
}
}
dynamic-profile profile-name {
accept (any | dhcp-v4 | dhcp-v6 | inet | inet6 | pppoe);
accept-out-of-band protocol;
ranges (any | low-tag)–(any | high-tag);
}
override;
}
stacked-vlan-ranges {
access-profile profile-name;
authentication {
packet-types [packet-types];
password password-string;
username-include {
circuit-type;
delimiter delimiter-character;
domain-name domain-name-string;
interface-name;
mac-address;
option-18;
262
option-37;
option-82 <circuit-id> <remote-id>;
radius-realm radius-realm-string;
user-prefix user-prefix-string;
vlan-tags;
}
}
dynamic-profile profile-name {
accept (any | dhcp-v4 | dhcp-v6 | inet | inet6 | pppoe);
ranges (any | low-tag–high-tag),(any | low-tag–high-tag);
}
override;
}
remove-when-no-subscribers;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.5.
Description
Enable the configuration of dynamic, auto-sensed VLANs.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
Configuring an Interface to Use the Dynamic Profile Configured to Create Stacked VLANs
Configuring an Interface to Use the Dynamic Profile Configured to Create Single-Tag VLANs
263
adjust-minimum
Syntax
adjust-minimum rate;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 11.4.
Description
For adjustments performed by the ANCP or multicast applications on EQ DPC, MIC, or MPC interfaces,
specify the minimum shaping rate for an adjusted scheduler node. The node is associated with a
traffic-control profile.
For adjustments performed by the multicast application on MIC or MPC interfaces, specify the minimum
shaping rate for an adjusted queue. The queue is associated with a scheduler.
Options
rate—Minimum shaping rate for a node or a queue, in Mbps
RELATED DOCUMENTATION
Configuring the Minimum Adjusted Shaping Rate on Scheduler Nodes for Subscribers | 168
264
adjust-percent
Syntax
adjust-percent percentage;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 11.4.
Description
For a MIC or MPC interface, determine the percentage of adjustment for the shaping rate of a queue.
Options
percentage—Percentage of the shaping rate to adjust.
Range: 0 through 100 percent
RELATED DOCUMENTATION
atm-service
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 12.1.
Description
(MX Series routers) Configure the ATM service category on ATM MICs to define bandwidth shaping and
utilization. Shaping is based on the ATM service category.
Default
If the ATM service category is not specified, bandwidth utilization is unlimited.
Options
cbr—Use the constant bit rate.
NOTE: (MX Series with MPCs and ATM MICs with SFP) To configure up to OC12 CBR bandwidth
speed per virtual circuit (VC) on an ATM MIC with SFP (MIC-3D-8OC3-2OC12-ATM), specify
cbr as the ATM service category.
RELATED DOCUMENTATION
buffer-size (Schedulers)
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 12.1X48 for PTX Series Packet Transport Routers.
Statement introduced in Junos OS Release 12.2 for ACX Series Routers.
shared option introduced in Junos OS Release 18.1 for PTX Series Packet Transport Routers.
Description
Specify buffer size.
NOTE: On PTX Series Packet Transport Routers, buffer-size cannot be configured on rate-limited
queues.
Default
If you do not include this statement, the default scheduler transmission rate and buffer size percentages
for queues 0 through 7 are 95, 0, 0, 5, 0, 0, 0, and 0 percent, respectively.
Options
percent percentage—Buffer size as a percentage of the total buffer.
Range: 0 through 100
NOTE: For the routers with channelized OC12/STM4 IQE PIC with SFP
(PB-4CHOC12-STM4-IQE-SFP) and channelized OC48/STM16 IQE PIC with SFP
(PB-1CHOC48-STM16-IQE-SFP), the minimum buffer allocated to any queue is 18,432 bytes.
If a queue is configured to have a buffer size less than 18K, the queue retains a buffer size of
18,432 bytes.
shared—On PTX Series routers, set a queue’s buffer to be up to 100 percent of the interface’s buffer. This
option allows the queue’s buffer to grow as large as 100 percent of the interface's buffer if and only if it
is the only active queue for the interface.
temporal microseconds—Buffer size as a temporal value. The queuing algorithm starts dropping packets
when it queues more than a computed number of bytes. This maximum is computed by multiplying the
logical interface speed by the configured temporal value.
Range: The ranges vary by platform as follows:
• For SRX Series Services Gateways: 1 through 2,000,000 microseconds.
RELATED DOCUMENTATION
Managing Congestion on the Egress Interface by Configuring the Scheduler Buffer Size
Buffer Size Temporal Value Ranges by Router Type
268
cbr
Syntax
cbr rate;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For ATM encapsulation only, define a constant bit rate bandwidth utilization in the traffic-shaping profile.
Default
Unspecified bit rate (UBR); that is, bandwidth utilization is unlimited.
Options
rate—Peak rate, in bits per second (bps) or cells per second (cps). You can specify a value in bits per second
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). You can also specify a value in cells per second by entering a
decimal number followed by the abbreviation c; values expressed in cells per second are converted
to bits per second by means of the formula 1 cps = 384 bps.
For ATM1 and ATM2 OC3 interfaces, the maximum available rate is 100 percent of line-rate, or
135,600,000 bps. For ATM1 OC12 interfaces, the maximum available rate is 50 percent of line-rate,
or 271,263,396 bps. For ATM2 IQ interfaces, the maximum available rate is 542,526,792 bps.
RELATED DOCUMENTATION
269
classifiers (Definition)
Syntax
classifiers {
type classifier-name {
import (classifier-name | default);
forwarding-class class-name {
loss-priority level code-points [ aliases ] [ bit-patterns ];
}
}
}
Hierarchy Level
[edit class-of-service],
[edit class-of-service routing-instances routing-instance-name]
Release Information
Statement introduced before Junos OS Release 7.4.
ieee-802.1ad option introduced in Junos OS Release 9.2.
Description
Define a CoS behavior aggregate (BA) classifier for classifying packets. You can associate the classifier
with a forwarding class or code-point mapping, and import a default classifier or one that is previously
defined.
Options
classifier-name—Name of the aggregate behavior classifier.
RELATED DOCUMENTATION
classifiers {
type (classifier-name | default) family (mpls | inet);
no-default;
}
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 14.2 for PTX Series Packet Transport Routers.
no-default option added for MX Series devices only in Junos OS Release 16.1.
Description
Apply a CoS aggregate behavior classifier to a logical interface. You can apply a default classifier or one
that is previously defined.
On MX Series devices, if you do not explicitly apply a classifier configuration to the interface, the default
classifier is applied to the interface. Apply the no-default option to disable the application of any default
classifier to the routing instance.
Options
classifier-name—Name of the aggregate behavior classifier.
type—Traffic type.
Values: dscp, dscp-ipv6, exp, ieee-802.1, inet-precedence
NOTE: You can only specify a family for the dscp and dscp-ipv6 types.
RELATED DOCUMENTATION
273
classifiers {
type (classifier-name | default) ;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 12.2 for the ACX Series Universal Metro routers.
Description
Apply a CoS aggregate behavior classifier to a physical interface. You can apply a default classifier or one
that is previously defined.
Options
classifier-name—Name of the aggregate behavior classifier.
type—Traffic type.
Values: dscp, ieee-802.1, and inet-precedence
RELATED DOCUMENTATION
dscp
inet-precedence
ieee-802.1
274
code-points (CoS)
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.2 for SRX Series devices.
Statement introduced in Junos OS Release 11.1 for the QFX Series.
Statement introduced in Junos OS Release 12.1X44 for the SRX Series.
Statement introduced in Junos OS Release 14.1X53-D20 for the OCX Series.
Statement introduced in Junos OS Release 14.2 for PTX Series Packet Transport Routers.
Description
Specify one or more DSCP code-point aliases or bit sets to apply to a forwarding class..
NOTE: OCX Series switches do not support MPLS, and therefore, do not support EXP code
points or code point aliases.
Options
aliases—Name of the DSCP alias.
RELATED DOCUMENTATION
Understanding Interfaces
Understanding How Behavior Aggregate Classifiers Prioritize Trusted Traffic
Example: Configuring Behavior Aggregate Classifiers
275
delay-buffer-rate
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.6.
Description
For Gigabit Ethernet IQ, Channelized IQ PICs, and FRF.15 and FRF.16 LSQ interfaces only, base the
delay-buffer calculation on a delay-buffer rate.
Default
If you do not include this statement, the delay-buffer calculation is based on the guaranteed rate if one is
configured, or the shaping rate if no guaranteed rate is configured. For more information, see Bandwidth
and Delay Buffer Allocations by Configuration Scenario.
Options
percent percentage—For LSQ interfaces, delay-buffer rate as a percentage of the available interface
bandwidth.
Range: 1 through 100 percent
rate—For IQ and IQ2 interfaces, delay-buffer rate, in bits per second (bps). You can specify a value in bits
per second 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).
Range: 1000 through 6,400,000,000,000 bps
NOTE: Through Junos OS Release 13.3, the upper limit is 160,000,000,000 bps. Beginning with
Junos OS Release 14.1, the upper limit is 6,400,000,000,000 bps.
RELATED DOCUMENTATION
demux0 {
unit logical-unit-number {
demux-options {
underlying-interface interface-name
}
family family {
access-concentrator name;
address address;
demux-source {
source-prefix;
}
direct-connect;
duplicate-protection;
dynamic-profile profile-name;
filter {
input filter-name;
output filter-name;
}
mac-validate (loose | strict):
max-sessions number;
max-sessions-vsa-ignore;
rpf-check {
fail-filter filter-name;
mode loose;
}
service-name-table table-name
short-cycle-protection <lockout-time-min minimum-seconds lockout-time-max maximum-seconds>;
unnumbered-address interface-name <preferred-source-address address>;
}
filter {
input filter-name;
output filter-name;
}
vlan-id number;
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.3.
Description
Configure the logical demultiplexing (demux) interface in a dynamic profile.
Logical IP demux interfaces do not support IPv4 and IPv6 dual stack.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
demux–options {
underlying-interface interface-name
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.3.
Description
Configure logical demultiplexing (demux) interface options in a dynamic profile.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
demux-source {
source-address;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.3.
Description
Configure a logical demultiplexing (demux) source address for a subscriber in a dynamic profile.
Options
source-address—Either the specific source address you want to assign to the subscriber interface or the
source address variable. For IPv4, specify $junos-subscriber-ip-address; for IPv6, specify
$junos-subscriber-ipv6-address. The source address for the interface is dynamically supplied by DHCP
when the subscriber accesses the router.
RELATED DOCUMENTATION
demux-source family;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.6.
Description
Configure the logical demultiplexing (demux) source family type on the IP demux underlying interface
within a dynamic profile.
NOTE: The IP demux interface feature currently supports only Fast Ethernet, Gigabit Ethernet,
10-Gigabit Ethernet, or aggregated Ethernet underlying interfaces.
Options
family—Protocol family:
demux-source family;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
Support for aggregated Ethernet added in Junos OS Release 9.4.
Description
Configure the logical demultiplexing (demux) source family type on the IP demux underlying interface.
NOTE: The IP demux interface feature currently supports only Fast Ethernet, Gigabit Ethernet,
10-Gigabit Ethernet, or aggregated Ethernet underlying interfaces.
Options
family—Protocol family:
RELATED DOCUMENTATION
dhcp-attributes {
boot-file filename;
boot-server (address | hostname);
dns-server [ ipv6-address ];
domain-name domain-name;
exclude-prefix-len exclude-prefix-length;
grace-period seconds;
maximum-lease-time seconds;
name-server [ server-list ];
netbios-node-type node-type;
option {
[ (id-number option-type option-value)
(id-number array option-type option-value) ];
}
option-match {
option-82 {
circuit-id value range named-range;
remote-id value range named-range;
}
}
preferred-lifetime seconds;
router [ router-address ];
server-identifier ip4-address;
sip-server-address [ ipv6-address ];
sip-server-domain-name domain-name;
t1-percentage percentage;
t1-renewal-time;
t2-percentage percentage;
t2-rebinding-time;
tftp-server address;
valid-lifetime seconds;
wins-server [ servers ];
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
285
Description
Configure DHCP attributes for the protocol family in a specific address pool. The attributes determine
options and behaviors for the DHCP clients.
286
Options
boot-file—(EX Series, M Series, MX Series, SRX Series, T Series only) Set the boot file advertised to DHCP
clients. After the client receives an IP address and the boot file location from the DHCP server, the
client uses the boot image stored in the boot file to complete DHCP setup. This configuration is
equivalent to DHCP option 67.
Values: filename—Location of the boot file on the boot server. The filename can include a pathname.
boot-server—(EX Series, M Series, MX Series, SRX Series, T Series only) Configure the name of the boot
server advertised to DHCP clients. The client uses a boot file located on the boot server to complete
DHCP setup. This configuration is equivalent to DHCP option 66.
Values:
• address—IPv4 address of a boot server.
dns-server—(MX Series only) Specify a DNS server to which clients can send DNS queries. This is equivalent
to DHCPv6 option 23. To specify multiple DNS servers, add multiple dns-server statements in order
of preference.
Values: ipv6-address—IPv6 address of a DNS server.
domain-name—(EX Series, MX Series only) Configure the name of the domain in which clients search for
a DHCP server host. This is the default domain name that is appended to hostnames that are not fully
qualified. This is equivalent to DHCP option 15.
Values: domain-name—Name of the domain.
exclude-prefix-len exclude-prefix-length—Specify the length of the IPv6 prefix to be excluded from the
delegated prefix. Range: 1 through 128.
grace-period—(M Series, MX Series, SRX Series, T Series only) Configure the amount of time that the client
retains the address lease after the lease expires. The address cannot be reassigned to another client
during the grace period.
Values: seconds—Number of seconds the lease is retained.
Range: 0 through 4,294,967,295 seconds.
Default: 0 (no grace period).
maximum-lease-time—(EX Series, M120, MX Series, SRX240, SRX3400, T640, T1600 only) Specify the
maximum length of time, in seconds, that the lease is held for a client if the client does not renew the
lease. This is equivalent to DHCP option 51. The maximum-lease-time is mutually exclusive with both
the preferred-lifetime and the valid-lifetime, and cannot be configured with either timer.
Values: seconds—Maximum number of seconds the lease can be held.
Range: 30 through 4,294,967,295 seconds.
Default: 86,400 (24 hours).
287
name-server—(M120, MX Series, SRX Series, T640, T1600 only) Configure one or more Domain Name
System (DNS) name servers available to the client to resolve hostname-to-client mappings. This is
equivalent to DHCP option 6.
Values: server-names—IP addresses of the domain name servers, listed in order of preference.
netbios-node-type—(M Series, MX Series, SRX Series, T Series only) Specify the NetBIOS node type. This
is equivalent to DHCP option 46.
Values: node-type—One of the following node types:
• b-node—Broadcast node.
• h-node—Hybrid node.
• m-node—Mixed node.
• p-node—Peer-to-peer node.
option—(EX Series, M Series, MX Series, SRX Series, T Series only) Specify user-defined options that are
added to client packets. Starting in Junos OS Release 13.3, the hex-string option type was introduced.
Values:
• array—An option can include an array of option types.
• id-number—Any whole number. The ID number is used to index the option and must be unique across
a DHCP server.
• option-type—Any of the following types: byte, byte-stream, flag, hex-string, integer, ip-address, short,
string, unsigned-integer, or unsigned-short.
• option-value—Value associated with an option. The option value must be compatible with the option
type (for example, an On or Off value for a flag type).
preferred-lifetime—(EX Series, M Series, MX Series only) Starting in Junos OS Release 13.3, specify the
length of time, in seconds, that the DHCPv6 server keeps the IPv6 prefix active. When the lifetime
expires, the address is deprecated. If the valid-lifetime is also configured, the preferred-lifetime must
be less than the valid-lifetime. The preferred-lifetime and the maximum-lease-time are mutually
exclusive and cannot both be configured.
Values: seconds—Number of seconds that the IPv6 prefix is active.
Range: 30 through 4,294,967,295 seconds.
Default: 86,400 (24 hours).
router—(EX Series, MX Series only) Specify one or more routers located on the client’s subnet. This
statement is the equivalent of DHCP option 3.
Values: router-address—IP address of one or more routers.
288
server-identifier—(EX Series, MX Series, SRX Series only) Specify the IP address that is used as the source
address the DHCP server includes in IP packets when communicating with clients. The address is
included in the DHCP packet in option 54.
Values: ipv4-address—IP address.
sip-server-address—(EX Series, M Series, MX Series, SRX Series, T Series only) Specify a SIP outbound
proxy server that DHCPv6 local server clients can use. This is equivalent to DHCPv6 option 22. To
specify multiple servers, add multiple sip-server-address statements in order of preference.
Values: ipv6-address—IPv6 address of a SIP outbound proxy server.
sip-server-domain-name—(M Series, MX Series, SRX Series, T Series only) Configure the domain name of
the SIP outbound proxy server that DHCPv6 local server clients can use. This is equivalent to DHCPv6
option 21.
Values: domain-name—Name of the domain.
t1-percentage—(EX Series, M Series, MX Series only) Specify a percentage of the preferred-lifetime value.
After this percentage of the preferred-lifetime value elapses, the DHCPv4 or DHCPv6 client requests
an extension on its lease from the originating DHCP local server. The t1-percentage is also referred
to as the renewal time. The t1-percentage value must be less than the t2-percentage value. DHCPv4
server support was added in Junos OS Release 17.2.
Values: percentage—Percentage of the preferred-lifetime value.
Range: 0 through 100.
Default: If the t1-percentage value is not configured, the default is based on the preferred-lifetime
value:
• If the preferred-lifetime value is finite, the default is 50 percent of the preferred-lifetime value.
t1-renewal-time—(MX Series only) Starting in Junos OS Release 17.2, specify the time (T1) at which the
DHCPv4 or DHCPv6 client requests an extension (renewal) of the existing lease. This time is expressed
as the number of seconds since the beginning of the lease. Using this statement to configure a duration
in seconds is an alternative to using the t1-percentage statement.
Values: seconds—Number of seconds.
Range: 30 through 4,294,967,295 seconds.
Default: 50 percent of the lease duration (preferred-lifetime).
289
t2-percentage—(EX Series, M Series, MX Series only) Starting in Junos OS Release 13.3, specify a percentage
of the preferred-lifetime value. After this percentage of the preferred-lifetime value elapses, the
DHCPv4 or DHCPv6 client requests an extension on its lease from any available DHCPv4 or DHCPv6
server. The t2-percentage is also referred to as the rebinding time. The t2-percentage value must be
greater than the t1-percentage value. DHCPv4 server support was added in Junos OS Release 17.2.
Values: percentage—Percentage of the preferred-lifetime value.
Range: 0 through 100.
Default: Default: If the t2-percentage value is not configured, the default is based on the
preferred-lifetime value:
• If the preferred-lifetime value is finite, the default is 80 percent of the preferred-lifetime value.
t2-rebinding-time—(MX Series only) Starting in Junos OS Release 17.2, specify the time (T2) at which the
DHCPv4 or DHCPv6 client attempts to contact any DHCP server to request an extension (rebinding)
of the existing lease. This time is expressed as the number of seconds since the beginning of the lease.
Using this statement to configure a duration in seconds is an alternative to using the t2-percentage
statement.
Values: seconds—Number of seconds.
Range: 30 through 4,294,967,295 seconds.
Default: The default value depends on the client:
• (DHCPv4 clients) 87.5 percent of the lease duration (preferred-lifetime).
tftp-server—(ACX Series, SRX Series only) Specify the Trivial File Transfer Protocol (TFTP) server that the
client uses to obtain the client configuration file. This is equivalent to DHCP option 150.
Values: ip-address—IP address of the TFTP server.
valid-lifetime—(EX Series, M Series, MX Series only) Starting in Junos OS Release 13.3, specify the length
of time, in seconds, that the DHCPv6 server keeps the IPv6 prefix valid. When the lifetime expires,
the address becomes invalid. If the preferred-lifetime is also configured, the valid-lifetime must be
greater than the preferred-lifetime. The valid-lifetime and the maximum-lease-time are mutually
exclusive and cannot both be configured.
Values: seconds—Number of seconds that the IPv6 prefix is valid.
Range: 30 through 4,294,967,295 seconds.
Default: 86,400 (24 hours).
wins-server—(M Series, MX Series, SRX Series, T Series only) Specify one or more NetBIOS name servers
(NBNS) that the client uses to resolve NetBIOS names. This is equivalent to DHCP option 44.
Values: ipv4-address—IP address of each NetBIOS name server. Add them to the configuration in
order of preference.
290
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
dhcp-local-server
Syntax
dhcp-local-server {
access-profile profile-name;
allow-active-leasequery {
idle-timeout seconds;
peer-address address;
timeout seconds;
}
allow-bulk-leasequery {
max-connections number-of-connections;
max-empty-replies number-of-replies;
restricted-requestor;
timeout seconds;
}
allow-leasequery {
restricted-requestor;
}
authentication {
password password-string;
username-include {
circuit-type;
delimiter delimiter-character;
domain-name domain-name-string;
interface-description (device-interface | logical-interface);
interface-name ;
logical-system-name;
mac-address;
option-60;
option-82 <circuit-id> <remote-id>;
routing-instance-name;
user-prefix user-prefix-string;
vlan-tags;
}
}
dhcpv6 {
access-profile profile-name;
allow-active-leasequery {
idle-timeout seconds;
peer-address address;
timeout seconds;
}
allow-bulk-leasequery {
292
max-connections number-of-connections;
max-empty-replies number-of-replies;
restricted-requestor;
timeout seconds;
}
allow-leasequery {
restricted-requestor;
}
authentication {
...
}
duplicate-clients incoming-interface;
293
group group-name {
access-profile profile-name;
authentication {
...
}
interface interface-name {
access-profile profile-name;
exclude;
overrides {
asymmetric-lease-time seconds;
asymmetric-prefix-lease-time seconds;
delay-advertise {
based-on (option-15 | option-16 | option-18 | option-37) {
equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
not-equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
starts-with {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
}
delay-time seconds;
}
dual-stack dual-stack-group-name;
interface-client-limit number;
multi-address-embedded-option-response;
process-inform {
pool pool-name;
}
protocol-attributes attribute-set-name;
rapid-commit;
}
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
trace;
upto upto-interface-name;
}
liveness-detection {
failure-action (clear-binding | clear-binding-if-interface-up | log-only);
294
method {
bfd {
version (0 | 1 | automatic);
minimum-interval milliseconds;
minimum-receive-interval milliseconds;
multiplier number;
no-adaptation;
transmit-interval {
minimum-interval milliseconds;
threshold milliseconds;
}
detection-time {
threshold milliseconds;
}
session-mode (automatic | multihop | singlehop);
holddown-interval milliseconds;
}
layer2-liveness-detection {
max-consecutive-retries number;
transmit-interval interval;
}
}
}
295
overrides {
asymmetric-lease-time seconds;
asymmetric-prefix-lease-time seconds;
delay-advertise {
based-on (option-15 | option-16 | option-18 | option-37) {
equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
not-equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
starts-with {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
}
delay-time seconds;
}
delegated-pool;
dual-stack dual-stack-group-name;
interface-client-limit number;
multi-address-embedded-option-response;
process-inform {
pool pool-name;
}
protocol-attributes attribute-set-name;
rapid-commit;
}
route-suppression;
server-duid-type type;
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
}
296
liveness-detection {
failure-action (clear-binding | clear-binding-if-interface-up | log-only);
method {
bfd {
version (0 | 1 | automatic);
minimum-interval milliseconds;
minimum-receive-interval milliseconds;
multiplier number;
no-adaptation;
transmit-interval {
minimum-interval milliseconds;
threshold milliseconds;
}
detection-time {
threshold milliseconds;
}
session-mode (automatic | multihop | singlehop);
holddown-interval milliseconds;
}
layer2-liveness-detection {
max-consecutive-retries number;
transmit-interval interval;
}
}
}
297
overrides {
asymmetric-lease-time seconds;
asymmetric-prefix-lease-time seconds;
delay-advertise {
based-on (option-15 | option-16 | option-18 | option-37) {
equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
not-equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
starts-with {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
}
delay-time seconds;
}
delegated-pool;
dual-stack dual-stack-group-name;
include-option-82 {
forcerenew;
nak;
}
interface-client-limit number;
multi-address-embedded-option-response;
process-inform {
pool pool-name;
}
protocol-attributes attribute-set-name;
rapid-commit;
}
298
reconfigure {
attempts attempt-count;
clear-on-abort;
strict;
support-option-pd-exclude;
timeout timeout-value;
token token-value;
trigger {
radius-disconnect;
}
}
reauthenticate (<lease-renewal> <remote-id-mismatch >);
requested-ip-network-match subnet-mask;
route-suppression;
server-duid-type type;
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
}
299
dual-stack-group name {
access-profile access-profile;
authentication {
password password-string;
username-include {
circuit-type;
delimiter delimiter-character;
domain-name domain-name-string;
interface-description (device-interface | logical-interface);
interface-name ;
logical-system-name;
mac-address;
relay-agent-interface-id;
relay-agent-remote-id;
routing-instance-name;
user-prefix user-prefix-string;
vlan-tags;
}
}
classification-key {
circuit-id circuit-id;
mac-address mac-address;
remote-id remote-id;
}
dual-stack-interface-client-limit number;
dynamic-profile profile-name {
aggregate-clients (merge | replace);
use-primary primary-profile-name;
}
liveness-detection {
failure-action (clear-binding | clear-binding-if-interface-up | log-only);
method {
layer2-liveness-detection {
max-consecutive-retries number;
transmit-interval interval;
}
}
}
on-demand-address-allocation;
protocol-master (inet | inet6);
reauthenticate (<lease-renewal> <remote-id-mismatch >);
service-profile service-profile;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
}
300
group group-name {
authentication {
...
}
dynamic-profile profile-name <aggregate-clients (merge | replace) | use-primary primary-profile-name>;
interface interface-name {
exclude;
overrides {
asymmetric-lease-time seconds;
client-discover-match (option60-and-option82 | incoming-interface);
delay-offer {
based-on (option-60 | option-77 | option-82) {
equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
not-equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
starts-with {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
}
delay-time seconds;
}
include-option-82 {
forcerenew;
nak;
}
dual-stack dual-stack-group-name;
interface-client-limit number;
process-inform {
pool pool-name;
}
protocol-attributes attribute-set-name;
}
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
trace;
upto upto-interface-name;
}
liveness-detection {
302
overrides {
asymmetric-lease-time seconds;
client-discover-match (option60-and-option82 | incoming-interface);
delay-offer {
based-on (option-60 | option-77 | option-82) {
equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
not-equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
starts-with {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
}
delay-time seconds;
}
include-option-82 {
forcerenew;
nak;
}
dual-stack dual-stack-group-name;
interface-client-limit number;
process-inform {
pool pool-name;
}
protocol-attributes attribute-set-name;
}
requested-ip-network-match subnet-mask
route-suppression;
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
}
304
liveness-detection {
failure-action (clear-binding | clear-binding-if-interface-up | log-only);
method {
bfd {
version (0 | 1 | automatic);
minimum-interval milliseconds;
minimum-receive-interval milliseconds;
multiplier number;
no-adaptation;
transmit-interval {
minimum-interval milliseconds;
threshold milliseconds;
}
detection-time {
threshold milliseconds;
}
session-mode (automatic | multihop | singlehop);
holddown-interval milliseconds;
}
layer2-liveness-detection {
max-consecutive-retries number;
transmit-interval interval;
}
}
}
on-demand-address-allocation;
305
overrides {
asymmetric-lease-time seconds;
client-discover-match <option60-and-option82 | incoming-interface>;
delay-offer {
based-on (option-60 | option-77 | option-82) {
equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
not-equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
starts-with {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
}
delay-time seconds;
}
dual-stack dual-stack-group-name;
interface-client-limit number;
process-inform {
pool pool-name;
}
protocol-attributes attribute-set-name;
}
pool-match-order {
external-authority;
ip-address-first;
option-82;
}
protocol-master;
reauthenticate (<lease-renewal> <remote-id-mismatch >);
reconfigure {
attempts attempt-count;
clear-on-abort;
strict;
timeout timeout-value;
token token-value;
trigger {
radius-disconnect;
}
}
306
requested-ip-network-match subnet-mask;
route-suppression;
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
Statement introduced in Junos OS Release 12.1 for EX Series switches.
Statement introduced in Junos OS Release 13.2X51 for the QFX Series.
Statement introduced in Junos OS Release 14.1X53-D20 for the OCX Series.
Description
Configure Dynamic Host Configuration Protocol (DHCP) local server options on the router or switch to
enable the router or switch to function as an extended DHCP local server. The DHCP local server receives
DHCP request and reply packets from DHCP clients and then responds with an IP address and other
optional configuration information to the client.
The extended DHCP local server is incompatible with the DHCP server on J Series routers and, therefore,
is not supported on J Series routers. Also, the DHCP local server and the DHCP/BOOTP relay server,
which are configured under the [edit forwarding-options helpers] hierarchy level, cannot both be enabled
on the router or switch at the same time. The extended DHCP local server is fully compatible with the
extended DHCP relay feature.
The dhcpv6 stanza configures the router or switch to support Dynamic Host Configuration Protocol for
IPv6 (DHCPv6). The DHCPv6 local server is fully compatible with the extended DHCP local server and
the extended DHCP relay feature.
NOTE: When you configure the dhcp-local-server statement at the routing instance hierarchy
level, you must use a routing instance type of virtual-router.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
307
RELATED DOCUMENTATION
dhcp-relay
Syntax
dhcp-relay {
access-profile profile-name;
active-leasequery {
idle-timeout seconds;
peer-address address;
timeout seconds;
topology-discovery;
}
active-server-group server-group-name;
authentication {
password password-string;
username-include {
circuit-type;
delimiter delimiter-character;
domain-name domain-name-string;
interface-description (device-interface | logical-interface);
interface-name;
logical-system-name;
mac-address;
option-60;
option-82 <circuit-id> <remote-id>;
routing-instance-name;
user-prefix user-prefix-string;
vlan-tags;
}
}
bulk-leasequery {
attempts number-of-attempts;
timeout seconds;
}
dhcpv6 {
access-profile profile-name;
active-leasequery {
idle-timeout seconds;
peer-address address;
timeout seconds;
topology-discovery;
}
active-server-group server-group-name;
}
authentication {
309
password password-string;
username-include {
circuit-type;
client-id;
delimiter delimiter-character;
domain-name domain-name-string;
interface-description (device-interface | logical-interface);
interface-name interface-name;
logical-system-name;
mac-address mac-address;
relay-agent-interface-id;
relay-agent-remote-id;
relay-agent-subscriber-id;
routing-instance-name;
user-prefix user-prefix-string;
vlan-tags;
}
}
bulk-leasequery {
attempts number-of-attempts;
timeout seconds;
trigger automatic;
}
duplicate-clients incoming-interface;
dynamic-profile profile-name {
aggregate-clients (merge | replace);
use-primary primary-profile-name;
}
forward-only {
logical-system <current | default | logical-system-name>;
routing-instance <current | default | routing-instance-name>;
}
forward-only-replies;
}
forward-snooped-clients (all-interfaces | configured-interfaces | non-configured-interfaces);
310
group group-name {
access-profile profile-name;
active-server-group server-group-name;
authentication {
password password-string;
username-include {
circuit-type;
client-id;
delimiter delimiter-character;
domain-name domain-name-string;
interface-description (device-interface | logical-interface);
interface-name interface-name;
logical-system-name;
mac-address mac-address;
relay-agent-interface-id;
relay-agent-remote-id;
relay-agent-subscriber-id;
routing-instance-name;
user-prefix user-prefix-string;
vlan-tags;
}
}
dynamic-profile profile-name {
aggregate-clients (merge | replace);
use-primary primary-profile-name;
}
forward-only {
logical-system <current | default | logical-system-name>;
routing-instance <current | default | routing-instance-name>;
}
interface interface-name {
access-profile profile-name;
dynamic-profile profile-name {
aggregate-clients (merge | replace);
use-primary primary-profile-name;
}
exclude;
overrides {
allow-snooped-clients;
asymmetric-lease-time seconds;
asymmetric-prefix-lease-time seconds;
client-negotiation-match incoming-interface;
delay-authentication;
delete-binding-on-renegotiation;
311
dual-stack dual-stack-group-name;
interface-client-limit number;
no-allow-snooped-clients;
no-bind-on-request;
relay-source interface-name;
send-release-on-delete;
}
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
trace;
upto upto-interface-name;
}
}
lease-time-validation {
lease-time-threshold seconds;
violation-action action;
}
liveness-detection {
failure-action (clear-binding | clear-binding-if-interface-up | log-only);
method {
bfd {
version (0 | 1 | automatic);
minimum-interval milliseconds;
minimum-receive-interval milliseconds;
multiplier number;
no-adaptation;
transmit-interval {
minimum-interval milliseconds;
threshold milliseconds;
}
detection-time {
threshold milliseconds;
}
session-mode(automatic | multihop | singlehop);
holddown-interval milliseconds;
}
layer2-liveness-detection {
max-consecutive-retries number;
transmit-interval interval;
}
}
}
312
overrides {
allow-snooped-clients;
asymmetric-lease-time seconds;
asymmetric-prefix-lease-time seconds;
client-negotiation-match incoming-interface;
delay-authentication;
delete-binding-on-renegotiation;
dual-stack dual-stack-group-name;
interface-client-limit number;
no-allow-snooped-clients;
no-bind-on-request;
relay-source interface-name;
send-release-on-delete;
}
relay-agent-interface-id {
include-irb-and-l2;
keep-incoming-interface-id ;
no-vlan-interface-name;
prefix prefix;
use-interface-description (logical | device);
use-option-82 <strict>;
use-vlan-id;
}
relay-agent-remote-id {
include-irb-and-l2;
keep-incoming-interface-id ;
no-vlan-interface-name;
prefix prefix;
use-interface-description (logical | device);
use-option-82 <strict>;
use-vlan-id;
}
313
relay-option {
option-number option-number;
default-action {
drop;
forward-only;
relay-server-group relay-server-group;
}
equals (ascii ascii-string | hexadecimal hexadecimal-string) {
drop;
forward-only;
relay-server-group relay-server-group;
}
starts-with (ascii ascii-string | hexadecimal hexadecimal-string) {
drop;
forward-only;
relay-server-group relay-server-group;
}
}
remote-id-mismatch disconnect;
route-suppression;
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
}
leasequery {
attempts number-of-attempts;
timeout seconds;
}
lease-time-validation {
lease-time-threshold seconds;
violation-action action;
}
314
liveness-detection {
failure-action (clear-binding | clear-binding-if-interface-up | log-only);
method {
bfd {
version (0 | 1 | automatic);
minimum-interval milliseconds;
minimum-receive-interval milliseconds;
multiplier number;
no-adaptation;
transmit-interval {
minimum-interval milliseconds;
threshold milliseconds;
}
detection-time {
threshold milliseconds;
}
session-mode(automatic | multihop | singlehop);
holddown-interval milliseconds;
}
layer2-liveness-detection {
max-consecutive-retries number;
transmit-interval interval;
}
route-suppression;
service-profile dynamic-profile-name;
}
}
no-snoop;
overrides {
allow-snooped-clients;
asymmetric-lease-time seconds;
asymmetric-prefix-lease-time seconds;
client-negotiation-match incoming-interface;
delay-authentication;
delete-binding-on-renegotiation;
dual-stack dual-stack-group-name;
interface-client-limit number;
no-allow-snooped-clients;
no-bind-on-request;
relay-source interface-name;
send-release-on-delete;
}
315
relay-agent-interface-id {
include-irb-and-l2;
keep-incoming-interface-id ;
no-vlan-interface-name;
prefix prefix;
use-interface-description (logical | device);
use-option-82 <strict>;
use-vlan-id;
}
relay-agent-remote-id {
include-irb-and-l2;
keep-incoming-remote-id ;
no-vlan-interface-name;
prefix prefix;
use-interface-description (logical | device);
use-option-82 <strict>;
use-vlan-id;
}
relay-option {
option-number option-number;
default-action {
drop;
forward-only;
relay-server-group relay-server-group;
}
equals (ascii ascii-string | hexadecimal hexadecimal-string) {
drop;
forward-only;
relay-server-group relay-server-group;
}
starts-with (ascii ascii-string | hexadecimal hexadecimal-string) {
drop;
forward-only;
relay-server-group relay-server-group;
}
}
relay-option-vendor-specific{
host-name;
location;
remote-id-mismatch disconnect;
route-suppression;
316
server-group {
server-group-name {
server-ip-address;
}
}
server-response-time seconds;
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
}
317
dual-stack-group dual-stack-group-name {
access-profile profile-name;
authentication {
password password-string;
username-include {
circuit-type;
delimiter delimiter-character;
domain-name domain-name-string;
interface-description (device-interface | logical-interface);
interface-name;
logical-system-name;
mac-address;
relay-agent-interface-id;
relay-agent-remote-id;
routing-instance-name;
user-prefix user-prefix-string;
vlan-tags;
}
}
classification-key {
circuit-id circuit-id;
mac-address mac-address;
remote-id remote-id;
}
dual-stack-interface-client-limit number;
dynamic-profile profile-name {
aggregate-clients (merge | replace);
use-primary primary-profile-name;
}
liveness-detection {
failure-action (clear-binding | clear-binding-if-interface-up | log-only);
method {
layer2-liveness-detection {
max-consecutive-retries number;
transmit-interval interval;
}
}
}
protocol-master (inet | inet6);
relay-agent-interface-id {
include-irb-and-l2;
keep-incoming-interface-id ;
no-vlan-interface-name;
prefix prefix;
318
group group-name {
access-profile profile-name;
active-server-group server-group-name;
authentication {
password password-string;
username-include {
circuit-type;
delimiter delimiter-character;
domain-name domain-name-string;
interface-description (device-interface | logical-interface);
interface-name interface-name;
logical-system-name;
mac-address;
option-60;
option-82 [circuit-id] [remote-id];
routing-instance-name;
user-prefix user-prefix-string;
}
vlan-tags;
}
dynamic-profile profile-name {
aggregate-clients (merge | replace);
use-primary primary-profile-name;
}
forward-only {
logical-system <current | default | logical-system-name>;
routing-instance <current | default | routing-instance-name>;
}
forward-only {
logical-system <current | default | logical-system-name>;
routing-instance <current | default | routing-instance-name>;
}
interface interface-name {
access-profile profile-name;
exclude;
liveness-detection {
failure-action (clear-binding | clear-binding-if-interface-up | log-only);
method {
bfd {
version (0 | 1 | automatic);
minimum-interval milliseconds;
minimum-receive-interval milliseconds;
multiplier number;
no-adaptation;
320
transmit-interval {
minimum-interval milliseconds;
threshold milliseconds;
}
detection-time {
threshold milliseconds;
}
session-mode (automatic | multihop | singlehop);
holddown-interval milliseconds;
}
}
}
overrides {
allow-no-end-option;
allow-snooped-clients;
always-write-giaddr;
always-write-option-82;
asymmetric-lease-time seconds;
client-discover-match <option60-and-option82 | incoming-interface>;
delay-authentication;
delete-binding-on-renegotiation;
disable-relay;
dual-stack dual-stack-group-name;
interface-client-limit number;
layer2-unicast-replies;
no-allow-snooped-clients;
no-bind-on-request;
proxy-mode;
relay-source
replace-ip-source-with;
send-release-on-delete;
trust-option-82;
}
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
trace;
upto upto-interface-name;
}
321
overrides {
allow-no-end-option
allow-snooped-clients;
always-write-giaddr;
always-write-option-82;
asymmetric-lease-time seconds;
asymmetric-prefix-lease-time seconds;
client-discover-match (option60-and-option82 | incoming-interface);
delay-authentication;
delete-binding-on-renegotiation;
disable-relay;
dual-stack dual-stack-group-name;
interface-client-limit number;
layer2-unicast-replies;
no-allow-snooped-clients;
no-bind-on-request;
proxy-mode;
relay-source
replace-ip-source-with;
send-release-on-delete;
trust-option-82;
}
relay-option {
option-number option-number;
default-action {
drop;
forward-only;
relay-server-group group-name;
}
equals (ascii ascii-string | hexadecimal hexadecimal-string) {
drop;
forward-only;
relay-server-group relay-server-group;
}
starts-with (ascii ascii-string | hexadecimal hexadecimal-string) {
drop;
forward-only;
local-server-group local-server-group;
relay-server-group relay-server-group;
}
}
322
relay-option-82 {
circuit-id {
prefix prefix;
use-interface-description (logical | device);
}
remote-id {
prefix prefix;
use-interface-description (logical | device);
}
server-id-override
}
remote-id-mismatch disconnect;
route-suppression:
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
}
leasequery {
attempts number-of-attempts;
timeout seconds;
}
lease-time-validation {
lease-time-threshold seconds;
violation-action action;
}
323
liveness-detection {
failure-action (clear-binding | clear-binding-if-interface-up | log-only);
method {
bfd {
version (0 | 1 | automatic);
minimum-interval milliseconds;
minimum-receive-interval milliseconds;
multiplier number;
no-adaptation;
transmit-interval {
minimum-interval milliseconds;
threshold milliseconds;
}
detection-time {
threshold milliseconds;
}
session-mode (automatic | multihop | singlehop);
holddown-interval milliseconds;
}
layer2-liveness-detection {
max-consecutive-retries number;
transmit-interval interval;
}
}
}
no-snoop;
324
overrides {
allow-no-end-option
allow-snooped-clients;
always-write-giaddr;
always-write-option-82;
asymmetric-lease-time seconds;
asymmetric-prefix-lease-time seconds;
client-discover-match (option60-and-option82 | incoming-interface);
delay-authentication;
delete-binding-on-renegotiation;
disable-relay;
dual-stack dual-stack-group-name;
interface-client-limit number;
layer2-unicast-replies;
no-allow-snooped-clients;
no-bind-on-request;
proxy-mode;
relay-source
replace-ip-source-with;
send-release-on-delete;
trust-option-82;
}
relay-option {
option-number option-number;
default-action {
drop;
forward-only;
relay-server-group group-name;
}
equals (ascii ascii-string | hexadecimal hexadecimal-string) {
drop;
forward-only;
relay-server-group relay-server-group;
}
starts-with (ascii ascii-string | hexadecimal hexadecimal-string) {
drop;
forward-only;
local-server-group local-server-group;
relay-server-group relay-server-group;
}
}
325
relay-option-82 {
circuit-id {
prefix prefix;
use-interface-description (logical | device);
}
remote-id {
prefix prefix;
use-interface-description (logical | device);
}
server-id-override
}
}
remote-id-mismatch disconnect;
route-suppression:
server-group {
server-group-name {
server-ip-address;
}
}
server-response-time seconds;
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
}
Hierarchy Level
[edit forwarding-options],
[edit logical-systems logical-system-name forwarding-options],
[edit logical-systems logical-system-name routing-instances routing-instance-name forwarding-options],
[edit routing-instances routing-instance-name forwarding-options]
Release Information
Statement introduced in Junos OS Release 8.3.
Statement introduced in Junos OS Release 12.1 for EX Series switches.
Statement introduced in Junos OS Release 13.2X51 for the QFX Series.
Statement introduced in Junos OS Release 14.1X53-D20 for the OCX Series.
326
Description
Configure extended Dynamic Host Configuration Protocol (DHCP) relay and DHCPv6 relay options on
the router or switch to enable the router (or switch) to function as a DHCP relay agent. A DHCP relay
agent forwards DHCP request and reply packets between a DHCP client and a DHCP server.
DHCP relay supports the attachment of dynamic profiles and also interacts with the local AAA Service
Framework to use back-end authentication servers, such as RADIUS, to provide subscriber authentication
or client authentication. You can attach dynamic profiles and configure authentication support on a global
basis or for a specific group of interfaces.
The extended DHCP and DHCPv6 relay agent options configured with the dhcp-relay and dhcpv6
statements are incompatible with the DHCP/BOOTP relay agent options configured with the bootp
statement. As a result, the extended DHCP or DHCPv6 relay agent and the DHCP/BOOTP relay agent
cannot both be enabled on the router (or switch) at the same time.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
drop-probability [values];
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced before Junos OS 11.4 for EX Series switches.
Description
Define values for interpolated drop probabilities. The maximum number of drop probability values supported
per drop profile is based on the line card.
On EX Series switches, this statement is supported only on the EX9200 switch, EX8200 standalone
switches, and EX8200 Virtual Chassis.
Options
percentage—The probability (expressed in percentage) for a packet to be dropped from the queue.
Range: 0 through 100
RELATED DOCUMENTATION
Managing Congestion Using RED Drop Profiles and Packet Loss Priorities
Defining Packet Drop Behavior by Configuring RED Drop Profiles
328
drop-probability (Percentage)
Syntax
drop-probability percentage;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Define drop probability percentages. The maximum number of drop probability values supported per drop
profile is based on the line card.
Options
percentage—Probability that a packet is dropped, expressed as a percentage. A value of 0 means that a
packet is never dropped, and a value of 100 means that all packets are dropped.
Range: 0 through 100 percent
RELATED DOCUMENTATION
Managing Congestion Using RED Drop Profiles and Packet Loss Priorities
Defining Packet Drop Behavior by Configuring RED Drop Profiles
329
drop-profile (Schedulers)
Syntax
drop-profile profile-name;
Hierarchy Level
[edit class-of-service schedulers scheduler-name drop-profile-map loss-priority (any | low | medium-low | medium-high
| high) protocol (any | non-tcp | tcp)]
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 12.1X48 for PTX Series Packet Transport Routers.
Statement introduced in Junos OS Release 12.2 for ACX Series Routers.
Description
Define drop profiles for RED. When a packet arrives, RED checks the queue fill level. If the fill level
corresponds to a nonzero drop probability, the RED algorithm determines whether to drop the arriving
packet.
Options
profile-name—Name of the drop profile.
RELATED DOCUMENTATION
Determining Packet Drop Behavior by Configuring Drop Profile Maps for Schedulers
Managing Congestion Using RED Drop Profiles and Packet Loss Priorities
330
drop-profile-map (Schedulers)
Syntax
drop-profile-map loss-priority (any | low | medium-low | medium-high | high) protocol (any | non-tcp | tcp) drop-profile
(Schedulers) profile-name;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 12.1X48 for PTX Series Packet Transport Routers.
Statement introduced in Junos OS Release 12.2 for ACX Series Routers.
Description
Define the loss-priority value for a drop profile.
RELATED DOCUMENTATION
drop-profiles
Syntax
drop-profiles {
profile-name {
fill-level percentage drop-probability percentage;
interpolate {
drop-probability [values];
fill-level [values]
}
}
}
Hierarchy Level
[edit class-of-service]
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced before Junos OS 11.4 for EX Series switches.
Description
Define drop profiles for RED.
For a packet to be dropped, it must match the drop profile. When a packet arrives, RED checks the queue
fill level. If the fill level corresponds to a nonzero drop probability, the RED algorithm determines whether
to drop the packet.
Options
profile-name—Name of the drop profile.
RELATED DOCUMENTATION
dscp classifier-name {
import (classifier-name | default);
forwarding-class class-name {
loss-priority level ] {
code-points [ aliases ] [ bit-patterns;
}
}
}
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Define the diffserv code point (DSCP) mapping that is applied to the packets.
Options
classifier-name—Name of the classifier.
RELATED DOCUMENTATION
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For IPv4 traffic, apply a Differentiated Services (DiffServ) code point (DSCP) rewrite rule.
Logical interfaces do not support multiple dscp rewrite rules for the same protocol.
DSCP and DSCP IPv6 rewrite rules are supported on M Series and T Series routers when non-queuing
PICs are installed, but are disabled when queuing PICs are installed with the following exceptions:
• On M320 routers, DSCP rewrite is supported on IQ, IQ2, IQE, and IQ2E PICs when used with the
Enhanced III FPC.
• On M120 routers, DSCP rewrite is supported on IQ, IQ2, IQE, and IQ2E PICs.
DSCP and DCSP IPv6 rewrite rules are supported on MIC and MPC interfaces on MX Series routers.
DSCP rewrite rules are not supported on T Series routers when IQ, IQ2, IQE, IQ2E, SONET/SDH
OC48/STM16 IQE, or PD-5-10XGE-SFPP PICs are installed.
Options
rewrite-name—Name of a rewrite-rules mapping configured at the [edit class-of-service rewrite-rules
dscp] hierarchy level.
protocol inet-both—For gr- interfaces (GRE tunnels) on MPCs, rewrite the DSCP CoS value to both the
inner and outer header for Unicast/Multicast IPv4 traffic. The first six bits of the CoS value are rewritten
and the final two bits are taken from the incoming CoS value.
protocol inet-outer—For gr- interfaces on MPCs, rewrite the DSCP CoS value to the outer header for
Unicast/Multicast IPv4 traffic. The first six bits of the CoS value are rewritten and the final two bits
are taken from the incoming CoS value.
334
protocol mpls—(Optional for ingress MPLS tunnel nodes) For interfaces on MX Series routers or hosted
on Enhanced III FPCs in M120 or M320 routers only, rewrite the MPLS EXP bits in the MPLS header
independently of the IPv4 DSCP value for IPv4 packets entering an MPLS tunnel.
RELATED DOCUMENTATION
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Support for protocol mpls option introduced in Junos OS Release 10.4R2.
Description
For IPv6 traffic, apply a DSCP rewrite rule.
Logical interfaces do not support multiple dscp-ipv6 rewrite rules for the same protocol.
DSCP and DSCP IPv6 rewrite rules are supported on M Series and T Series routers when non-queuing
PICs are installed, but are disabled when queuing PICs are installed with the following exceptions:
• On M320 routers, DSCP rewrite is supported on IQ, IQ2, IQE, and IQ2E PICs when used with the
Enhanced III FPC.
• On M120 routers, DSCP rewrite is supported on IQ, IQ2, IQE, and IQ2E PICs.
DSCP and DCSP IPv6 rewrite rules are supported on MIC and MPC interfaces on MX Series routers.
DSCP rewrite rules are not supported on T Series routers when IQ, IQ2, IQE, IQ2E, SONET/SDH
OC48/STM16 IQE, or PD-5-10XGE-SFPP PICs are installed.
Options
rewrite-name—Name of a rewrite-rules mapping configured at the [edit class-of-service rewrite-rules
dscp-ipv6] hierarchy level.
default—Default mapping.
protocol mpls—(Optional for ingress MPLS tunnel nodes) For interfaces on MX Series routers or hosted
on Enhanced III FPCs in M120 or M320 routers only, rewrite the MPLS EXP bits in the MPLS header
independently of the IPv6 DSCP value for IPv6 packets entering an MPLS tunnel.
RELATED DOCUMENTATION
dynamic-profile profile-name {
aggregate-clients (merge | replace);
use-primary primary-profile-name;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.2.
Statement introduced in Junos OS Release 12.3R2 for EX Series switches.
Options aggregate-clients and use-primary introduced in Junos OS Release 9.3.
Support at the [edit ... interface] hierarchy levels introduced in Junos OS Release 11.2.
Description
Specify the dynamic profile that is attached to all interfaces, a named group of interfaces, or a specific
interface.
Options
profile-name—Name of the dynamic profile.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
dynamic-profile (VLAN)
Syntax
dynamic-profile profile-name {
accept (any | dhcp-v4 |dhcp-v6| inet | inet6 | pppoe);
accept-out-of-band protocol;
access-profilevlan-dynamic-profile-name;
ranges (any | low-tag)–(any | high-tag);
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.5.
Description
Configure a dynamic profile for use when configuring dynamic VLANs.
Options
profile-name—Name of the dynamic profile that you want to use when configuring dynamic VLANs.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
dynamic-profiles
Syntax
dynamic-profiles {
profile-name {
class-of-service {
dynamic-class-of-service-options {
vendor-specific-tags tag;
}
interfaces {
interface-name ;
}
unit logical-unit-number {
classifiers {
type (classifier-name | default);
}
output-traffic-control-profile (profile-name | $junos-cos-traffic-control-profile);
report-ingress-shaping-rate bps;
rewrite-rules {
dscp (rewrite-name | default);
dscp-ipv6 (rewrite-name | default);
ieee-802.1 (rewrite-name | default) vlan-tag (outer | outer-and-inner);
inet-precedence (rewrite-name | default);
}
}
}
}
scheduler-maps {
map-name {
forwarding-class class-name scheduler scheduler-name;
}
}
schedulers {
(scheduler-name) {
buffer-size (seconds | percent percentage | remainder | temporal microseconds);
drop-profile-map loss-priority (any | low | medium-low | medium-high | high) protocol (any | non-tcp |
tcp) drop-profile profile-name;
excess-priority (low | high | $junos-cos-scheduler-excess-priority);
excess-rate (percent percentage | percent $junos-cos-scheduler-excess-rate);
overhead-accounting (shaping-mode) <bytes (byte-value>;
priority priority-level;
shaping-rate (rate | predefined-variable);
transmit-rate (percent percentage | rate | remainder) <exact | rate-limit>;
}
341
}
traffic-control-profiles profile-name {
adjust-minimum rate;
delay-buffer-rate (percent percentage | rate);
excess-rate (percent percentage | proportion value | percent $junos-cos-excess-rate);
excess-rate-high (percent percentage | proportion value);
excess-rate-low (percent percentage | proportion value);
guaranteed-rate (percent percentage | rate) <burst-size bytes>;
max-burst-size cells;
overhead-accounting (frame-mode | cell-mode) <bytes byte-value>;
peak-rate rate;
scheduler-map map-name;
shaping-rate (percent percentage | rate | predefined-variable) <burst-size bytes>;
shaping-rate-excess-high (percent percentage | rate) <burst-size bytes>;
shaping-rate-excess-medium-high (percent percentage | rate) <burst-size bytes>;
shaping-rate-excess-medium-low (percent percentage | rate) <burst-size bytes>;
shaping-rate-excess-low (percent percentage | rate) <burst-size bytes>;
shaping-rate-priority-high (percent percentage | rate) <burst-size bytes>;
shaping-rate-priority-low (percent percentage | rate) <burst-size bytes>;
shaping-rate-priority-medium (percent percentage | rate) <burst-size bytes>;
shaping-rate-priority-medium-low (percent percentage | rate) <burst-size bytes>;
shaping-rate-priority-strict-high (percent percentage | rate) <burst-size bytes>;
sustained-rate rate;
}
}
342
firewall {
family family {
fast-update-filter filter-name {
interface-specific;
match-order [match-order];
term term-name {
from {
match-conditions;
}
then {
action;
action-modifiers;
}
only-at-create;
}
}
filter filter-name {
enhanced-mode-override;
fast-lookup-filter;
instance-shared;
interface-shared;
interface-specific;
term term-name {
from {
match-conditions;
}
then {
action;
action-modifiers;
}
only-at-create;
filter filter-name {
interface-specific;
term term-name {
from {
match-conditions;
}
then {
action;
action-modifiers;
}
}
hierarchical-policer uid {
aggregate {
343
if-exceeding {
bandwidth-limit-limit bps;
burst-size-limit bytes;
}
then {
policer-action;
}
}
premium {
if-exceeding {
bandwidth-limit bps;
burst-size-limit bytes;
}
then {
policer-action;
}
}
}
policer uid {
filter-specific;
if-exceeding {
(bandwidth-limit bps | bandwidth-percent percentage);
burst-size-limit bytes;
}
logical-bandwidth-policer;
logical-interface-policer;
physical-interface-policer;
then {
policer-action;
}
}
344
three-color-policer uid {
action {
loss-priority high then discard;
}
logical-interface-policer;
single-rate {
(color-aware | color-blind);
committed-burst-size bytes;
committed-information-rate bps;
excess-burst-size bytes;
}
two-rate {
(color-aware | color-blind);
committed-burst-size bytes;
committed-information-rate bps;
peak-burst-size bytes;
peak-information-rate bps;
}
}
}
}
345
interfaces interface-name {
interface-set interface-set-name {
interface interface-name {
unit logical unit number {
advisory-options {
downstream-rate rate;
upstream-rate rate;
}
}
}
}
unit logical-unit-number {
actual-transit-statistics;
auto-configure {
agent-circuit-identifier {
dynamic-profile profile-name;
}
line-identity {
include {
accept-no-ids;
circuit-id;
remote-id;
}
dynamic-profile profile-name;
}
}
encapsulation (atm-ccc-cell-relay | atm-ccc-vc-mux | atm-cisco-nlpid | atm-tcc-vc-mux | atm-mlppp-llc |
atm-nlpid | atm-ppp-llc | atm-ppp-vc-mux | atm-snap | atm-tcc-snap | atm-vc-mux | ether-over-atm-llc
| ether-vpls-over-atm-llc | ether-vpls-over-fr | ether-vpls-over-ppp | ethernet | frame-relay-ccc |
frame-relay-ppp | frame-relay-tcc | frame-relay-ether-type | frame-relay-ether-type-tcc |
multilink-frame-relay-end-to-end | multilink-ppp | ppp-over-ether | ppp-over-ether-over-atm-llc |
vlan-bridge | vlan-ccc | vlan-vci-ccc | vlan-tcc | vlan-vpls);
family family {
address address;
filter {
adf {
counter;
input-precedence precedence;
not-mandatory;
output-precedence precedence;
rule rule-value;
}
input filter-name (
precedence precedence;
346
shared-name filter-shared-name;
}
output filter-name {
precedence precedence;
shared-name filter-shared-name;
}
}
rpf-check {
fail-filter filter-name;
mode loose;
}
service {
input {
service-set service-set-name {
service-filter filter-name;
}
post-service-filter filter-name;
}
input-vlan-map {
inner-tag-protocol-id tpid;
inner-vlan-id number;
(push | swap);
tag-protocol-id tpid;
vlan-id number;
}
output {
service-set service-set-name {
service-filter filter-name;
}
}
output-vlan-map {
inner-tag-protocol-id tpid;
inner-vlan-id number;
(pop | swap);
tag-protocol-id tpid;
vlan-id number;
}
pcef pcef-profile-name {
activate rule-name | activate-all;
}
}
unnumbered-address interface-name <preferred-source-address address>;
}
347
filter {
input filter-name (
shared-name filter-shared-name;
}
output filter-name {
shared-name filter-shared-name;
}
}
host-prefix-only;
ppp-options {
aaa-options aaa-options-name;
authentication [ authentication-protocols ];
chap {
challenge-length minimum minimum-length maximum maximum-length;
local-name name;
}
ignore-magic-number-mismatch;
initiate-ncp (dual-stack-passive | ipv6 | ip)
ipcp-suggest-dns-option;
mru size;
mtu (size | use-lower-layer);
on-demand-ip-address;
pap;
peer-ip-address-optional;
local-authentication {
password password;
username-include {
circuit-id;
delimiter character;
domain-name name;
mac-address;
remote-id;
}
}
}
targeted-options {
backup backup;
group group;
primary primary;
weight ($junos-interface-target-weight | weight-value);
}
348
telemetry {
subscriber-statistics;
queue-statistics {
interface $junos-interface-name {
refresh rate;
queues queue set;
}
interface-set $junos-interface-set-name {
refresh rate;
queues queue set;
}
}
}
vlan-id number;
vlan-tags outer [tpid].vlan-id [inner [tpid].vlan-id];
}
}
interfaces {
demux0 {...}
}
interfaces {
pp0 {...}
}
policy-options {
prefix-list uid {
ip-addresses;
dynamic-db;
}
}
predefined-variable-defaults predefined-variable <variable-option> default-value;
profile-type remote-device-service;
349
protocols {
igmp {
interface interface-name {
accounting;
disable;
group-limit limit;
group-policy;
group-threshold value;
immediate-leave
log-interval seconds;
no-accounting;
oif-map;
passive;
promiscuous-mode;
ssm-map ssm-map-name;
ssm-map-policy ssm-map-policy-name
static {
group group {
source source;
}
}
version version;
}
}
mld {
interface interface-name {
(accounting | no-accounting);
disable;
group-limit limit;
group-policy;
group-threshold value;
immediate-leave;
log-interval seconds;
oif-map;
passive;
ssm-map ssm-map-name;
ssm-map-policy ssm-map-policy-name;
static {
group multicast-group-address {
exclude;
group-count number;
group-increment increment;
source ip-address {
source-count number;
350
source-increment increment;
}
}
}
version version;
}
}
router-advertisement {
interface interface-name {
current-hop-limit number;
default-lifetime seconds;
(managed-configuration | no-managed-configuration);
max-advertisement-interval seconds;
min-advertisement-interval seconds;
(other-stateful-configuration | no-other-stateful-configuration);
prefix prefix;
reachable-time milliseconds;
retransmit-timer milliseconds;
}
}
}
351
routing-instances routing-instance-name {
interface interface-name;
routing-options {
access {
route prefix {
next-hop next-hop;
metric route-cost;
preference route-distance;
tag route-tag;
tag2 route-tag2;
}
}
access-internal {
route subscriber-ip-address {
qualified-next-hop underlying-interface {
mac-address address;
}
}
}
multicast {
interface interface-name {
no-qos-adjust;
}
}
}
rib routing-table-name {
access {
route prefix {
next-hop next-hop;
metric route-cost;
preference route-distance;
tag route-tag;
tag2 route-tag2;
}
}
access-internal {
route subscriber-ip-address {
qualified-next-hop underlying-interface {
mac-address address;
}
}
}
}
}
352
routing-options {
access {
route prefix {
next-hop next-hop;
metric route-cost;
preference route-distance;
tag route-tag;
tag2 route-tag2;
}
}
access-internal {
route subscriber-ip-address {
qualified-next-hop underlying-interface {
mac-address address;
}
}
}
multicast {
interface interface-name {
no-qos-adjust;
}
}
}
services {
captive-portal-content-delivery {
auto-deactivate value;
rule name {
match-direction (input | input-output | output);
term name {
then {
accept;
redirect url;
rewrite destination-address address <destination-port port-number>;
syslog;
}
}
}
}
}
353
variables {
variable-name {
default-value default-value;
equals expression;
mandatory;
uid;
uid-reference;
}
}
}
}
Hierarchy Level
[edit]
Release Information
Statement introduced in Junos OS Release 9.2.
Support at the filter, policer, hierarchical-policer, three-color-policer, and policy options hierarchy levels
introduced in Junos OS Release 11.4.
Description
Create dynamic profiles for use with DHCP or PPP client access.
Options
profile-name—Name of the dynamic profile; string of up to 80 alphanumeric characters.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
egress-shaping-overhead
Syntax
egress-shaping-overhead number;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.3.
Description
Number of bytes to add to packet to determine shaped session packet length.
NOTE: On M Series and T Series routers with Gigabit Ethernet Intelligent Queuing 2 (IQ2) PICs
and Enhanced IQ2 (IQ2E) PICs and on MX Series routers with Dense Port Concentrators (DPCs)
only, to account for egress shaping overhead bytes added to output traffic on the line card, you
must use the egress-policer-overhead statement to explicitly configure corresponding egress
policing overhead for Layer 2 policers, MAC policers, or queue rate limits applied to output traffic
on the line card.
NOTE: For MIC and MPC interfaces on MX Series routers, by default the value of
egress-shaping-overhead is configured to 20, which means that the number of class-of-service
(CoS) shaping overhead bytes to be added to the packets is 20. The interfaces on DPCs in MX
Series routers, the default value is zero. For interfaces on PICs other than the 10-port 10-Gigabit
Oversubscribed Ethernet (OSE) Type 4, you should configure egress-shaping-overhead to a
minimum of 20 bytes to add a shaping overhead of 20 bytes to the packets.
NOTE: When you change the egress-shaping-overhead value, on M Series, T Series, and MX104
routers the PIC on which it is changed is restarted. On MX5 routers, the MIC on which it is
changed is restarted. On other MX Series routers, the DPC/MPC on which it is changed is
restarted.
355
Options
number—When traffic management (queuing and scheduling) is configured on the egress side, the number
of CoS shaping overhead bytes to add to the packets on the egress interface.
Range:
• –63 through 192.
NOTE: The L2 headers (DA/SA + VLAN tags) are automatically a part of the shaping calculation.
RELATED DOCUMENTATION
egress-policer-overhead
Configuring CoS for L2TP Tunnels on ATM Interfaces
ingress-shaping-overhead
mode (Layer 2 Tunneling Protocol Shaping) | 435, ingress-shaping-overhead
traffic-manager | 530
356
excess-bandwidth-share
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.5.
Description
Specify the method of sharing excess bandwidth in a hierarchical scheduler environment. With hierarchical
schedulers, you can provide shaping and scheduling at the service VLAN level as well as other levels, such
as the physical interface. You can also group a set of logical interfaces and then apply scheduling and
shaping parameters to the logical interface set.
To configure CoS hierarchical schedulers, you must enable hierarchical scheduling by including the
hierarchical-scheduler statement at the [edit interfaces] hierarchy for the physical interface. If you do not
include this statement, the interfaces on the MX Series router cannot use hierarchical interfaces.
The Enhanced Queuing DPC supports the following hierarchical scheduler characteristics:
Options
equal—Share excess bandwidth equally among the configured interfaces.
proportional value—(Default) Share excess bandwidth proportionally according to the specified value. In
this mode, the excess bandwidth is shared at the ratio of the logical interface shaping rates.
Default: 32.64 Mbps
This example sets the excess bandwidth sharing for an Enhanced Queuing DPC interface proportionally
at a rate of 100 Mbps and a shaping rate of 80 Mbps applied to the interface through the
output-traffic-control profile for scheduling and shaping:
357
RELATED DOCUMENTATION
excess-priority
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.3.
Option none introduced in Junos OS Release 11.4.
Description
Determine the priority of excess bandwidth traffic on a scheduler.
NOTE: For Link Services IQ (LSQ) PICs or Multiservices PIC (MS-PICs), the excess-priority
statement is allowed for consistency, but ignored. If an explicit priority is not configured for
these interfaces, a default low priority is used. This default priority is also used in the excess
region.
Options
low—Excess traffic for this scheduler has low priority.
none—System does not demote the priority of guaranteed traffic when the bandwidth exceeds the shaping
rate or the guaranteed rate.
RELATED DOCUMENTATION
359
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.2.
Description
For an MPC interface, determine the percentage or proportion of excess bandwidth traffic to share for all
priorities of traffic.
Options
percentage—Percentage of the excess bandwidth to share.
Range: 0 through 100 percent
NOTE: The proportion of excess bandwidth on MPC2-3D MPCs can be configured with
increments of 1 from 0 through 1000. All other MPCs should be configured with increments of
10 from 0 through 1000.
$junos-cos-excess-rate—Variable for the excess rate that is specified for the logical interface. The variable
is replaced with a value obtained from the RADIUS server when a subscriber authenticates over the
interface to which the dynamic profile is attached.
RELATED DOCUMENTATION
Managing Excess Bandwidth Distribution for Dynamic CoS on MIC and MPC Interfaces
output-traffic-control-profile
362
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 11.4.
Description
For an MPC/MIC interface, determine the percentage of excess bandwidth for high-priority traffic to
share.
Options
percentage—Percentage of the excess bandwidth to share.
Range: 0 through 100 percent
NOTE: The proportion of excess bandwidth on MPC2-3D MPCs can be configured with
increments of 1 from 0 through 1000. All other MPCs should be configured with increments of
10 from 0 through 1000.
$junos-cos-excess-rate-high—Variable for the excess rate that is specified for high-priority traffic on the
logical interface. The variable is replaced with a value obtained from the RADIUS server when a subscriber
authenticates over the interface to which the dynamic profile is attached.
RELATED DOCUMENTATION
Managing Excess Bandwidth Distribution for Dynamic CoS on MIC and MPC Interfaces
output-traffic-control-profile
364
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 11.4.
Description
For an MPC/MIC interface, determine the percentage of excess bandwidth for low-priority traffic to share.
Options
percentage—Percentage of the excess bandwidth to share.
Range: 0 through 100 percent
NOTE: The proportion of excess bandwidth on MPC2-3D MPCs can be configured with
increments of 1 from 0 through 1000. All other MPCs should be configured with increments of
10 from 0 through 1000.
$junos-cos-excess-rate-low—Variable for the excess rate that is specified for low-priority traffic on the
logical interface. The variable is replaced with a value obtained from the RADIUS server when a subscriber
authenticates over the interface to which the dynamic profile is attached.
RELATED DOCUMENTATION
output-traffic-control-profile
366
family
Syntax
family family {
accounting {
destination-class-usage;
source-class-usage {
(input | output | input output);
}
}
access-concentrator name;
address address {
... the address subhierarchy appears after the main [edit interfaces interface-name unit logical-unit-number family
family-name] hierarchy ...
}
bundle interface-name;
core-facing;
demux-destination {
destination-prefix;
}
demux-source {
source-prefix;
}
direct-connect;
duplicate-protection;
dynamic-profile profile-name;
filter {
group filter-group-number;
input filter-name;
input-list [ filter-names ];
output filter-name;
output-list [ filter-names ];
}
interface-mode (access | trunk);
ipsec-sa sa-name;
keep-address-and-control;
mac-validate (loose | strict);
max-sessions number;
max-sessions-vsa-ignore;
mtu bytes;
multicast-only;
nd6-stale-time seconds;
negotiate-address;
no-neighbor-learn;
367
no-redirects;
policer {
arp policer-template-name;
input policer-template-name;
output policer-template-name;
}
primary;
protocols [inet iso mpls];
proxy inet-address address;
receive-options-packets;
receive-ttl-exceeded;
remote (inet-address address | mac-address address);
rpf-check {
fail-filter filter-name
mode loose;
}
sampling {
input;
output;
}
service {
input {
post-service-filter filter-name;
service-set service-set-name <service-filter filter-name>;
}
output {
service-set service-set-name <service-filter filter-name>;
}
}
service-name-table table-name;
short-cycle-protection <lockout-time-min minimum-seconds lockout-time-max maximum-seconds> <filter [aci]>;
(translate-discard-eligible | no-translate-discard-eligible);
(translate-fecn-and-becn | no-translate-fecn-and-becn);
translate-plp-control-word-de;
unnumbered-address interface-name destination address destination-profile profile-name;
vlan-id number;
vlan-id-list [number number-number];
368
address address {
arp ip-address (mac | multicast-mac) mac-address <publish>;
broadcast address;
destination address;
destination-profile name;
eui-64;
master-only;
multipoint-destination address dlci dlci-identifier;
multipoint-destination address {
epd-threshold cells;
inverse-arp;
oam-liveness {
up-count cells;
down-count cells;
}
oam-period (disable | seconds);
shaping {
(cbr rate | rtvbr burst length peak rate sustained rate | vbr burst length peak rate sustained rate);
queue-length number;
}
vci vpi-identifier.vci-identifier;
}
preferred;
primary;
vrrp-groupgroup-id {
(accept-data | no-accept-data);
advertise-interval seconds;
authentication-key key;
authentication-type authentication;
fast-interval milliseconds;
(preempt | no-preempt) {
hold-time seconds;
}
priority number;
track {
interface interface-name {
bandwidth-threshold bits-per-second priority-cost priority;
priority-cost priority;
}
priority-hold-time seconds;
route prefix routing-instance instance-name priority-cost priority;
}
}
virtual-address [ addresses ];
369
}
virtual-link-local-address ipv6-address;
}
}
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Option max-sessions-vsa-ignore introduced in Junos OS Release 11.4.
Description
Configure protocol family information for the logical interface.
Starting in Junos OS Release 20.1R1, aggregated ethernet interfaces supports VLAN TCC (Translational
cross-connect) encapsulation on MX series platforms. See Configuring VLAN TCC Encapsulation for more
details.
NOTE: Not all subordinate statements are available to every protocol family.
370
Options
family—Protocol family:
• bridge—(M Series and T Series routers only) Configure only when the physical interface is configured
with ethernet-bridge type encapsulation or when the logical interface is configured with vlan-bridge
type encapsulation. You can optionally configure this protocol family for the logical interface on which
you configure VPLS.
• ethernet-switching—(M Series and T Series routers only) Configure only when the physical interface is
configured with ethernet-bridge type encapsulation or when the logical interface is configured with
vlan-bridge type encapsulation
• ccc—Circuit cross-connect protocol suite. You can configure this protocol family for the logical interface
of CCC physical interfaces. When you use this encapsulation type, you can configure the ccc family only.
• inet—Internet Protocol version 4 suite. You must configure this protocol family for the logical interface
to support IP protocol traffic, including Open Shortest Path First (OSPF), Border Gateway Protocol (BGP),
Internet Control Message Protocol (ICMP), and Internet Protocol Control Protocol (IPCP).
• inet6—Internet Protocol version 6 suite. You must configure this protocol family for the logical interface
to support IPv6 protocol traffic, including Routing Information Protocol for IPv6 (RIPng), Intermediate
System-to-Intermediate System (IS-IS), BGP, and Virtual Router Redundancy Protocol for IPv6 (VRRP).
• iso—International Organization for Standardization Open Systems Interconnection (ISO OSI) protocol
suite. You must configure this protocol family for the logical interface to support IS-IS traffic.
• mlfr-end-to-end—Multilink Frame Relay FRF.15. You must configure this protocol or multilink
Point-to-Point Protocol (MLPPP) for the logical interface to support multilink bundling.
• mlfr-uni-nni—Multilink Frame Relay FRF.16. You must configure this protocol or mlfr-end-to-end for
the logical interface to support link services and voice services bundling.
• multilink-ppp—Multilink Point-to-Point Protocol. You must configure this protocol (or mlfr-end-to-end)
for the logical interface to support multilink bundling.
• mpls—Multiprotocol Label Switching (MPLS). You must configure this protocol family for the logical
interface to participate in an MPLS path.
• tcc—Translational cross-connect protocol suite. You can configure this protocol family for the logical
interface of TCC physical interfaces.
371
• tnp—Trivial Network Protocol. This protocol is used to communicate between the Routing Engine and
the router’s packet forwarding components. The Junos OS automatically configures this protocol family
on the router’s internal interfaces only, as discussed in Understanding Internal Ethernet Interfaces.
• vpls—(M Series and T Series routers only) Virtual private LAN service. You can optionally configure this
protocol family for the logical interface on which you configure VPLS. VPLS provides an Ethernet-based
point-to-multipoint Layer 2 VPN to connect customer edge (CE) routers across an MPLS backbone.
When you configure a VPLS encapsulation type, the family vpls statement is assumed by default.
MX Series routers support dynamic profiles for VPLS pseudowires, VLAN identifier translation, and
automatic bridge domain configuration.
For more information about VPLS, see the Junos OS VPNs Library for Routing Devices.
Release Description
20.1R1 Starting in Junos OS Release 20.1R1, aggregated ethernet interfaces supports VLAN TCC
(Translational cross-connect) encapsulation on MX series platforms.
RELATED DOCUMENTATION
family family {
dhcp-attributes {
[protocol-specific attributes]
}
excluded-address ip-address;
excluded-range name low minimum-value high maximum-value;
host hostname {
hardware-address mac-address;
ip-address ip-address;
}
network ip-prefix/<prefix-length>;
prefix ipv6-prefix;
range range-name {
high upper-limit;
low lower-limit;
prefix-length prefix-length;
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
Statement introduced in Junos OS Release 12.3 for EX Series switches.
Description
Configure the protocol family for the address-assignment pool.
NOTE: Subordinate statement support depends on the platform. See individual statement topics
for more detailed support information.
Options
family—Protocol family:
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
family family {
access-concentrator name;
address address;
demux-source {
source-address;
}
direct-connect;
duplicate-protection;
dynamic-profile profile-name;
filter {
input filter-name;
output filter-name;
}
mac-validate (loose | strict);
max-sessions number;
max-sessions-vsa-ignore;
service-name-table table-name;
short-cycle-protection <lockout-time-min minimum-seconds lockout-time-max maximum-seconds> <filter [aci]>;
unnumbered-address interface-name <preferred-source-address address>;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.3.
pppoe option added in Junos OS Release 11.2.
Description
Configure protocol family information for the logical interface.
NOTE: Not all subordinate stanzas are available to every protocol family.
Options
family—Protocol family:
375
• pppoe—(MX Series routers with MPCs only) Point-to-Point Protocol over Ethernet
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
family family {
unnumbered-address interface-name;
address address;
service {
input {
service-set service-set-name {
service-filter filter-name;
}
post-service-filter filter-name;
}
output {
service-set service-set-name {
service-filter filter-name;
}
}
}
filter {
input filter-name {
precedence precedence;
}
output filter-name {
precedence precedence;
}
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.1.
Description
Configure protocol family information for the logical interface.
Options
family—Protocol family:
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
family family {
access-concentrator name;
address address;
direct-connect;
duplicate-protection;
dynamic-profile profile-name;
filter {
adf {
counter;
input-precedence precedence;
not-mandatory;
output-precedence precedence;
rule rule-value;
}
input filter-name {
precedence precedence;
shared-name filter-shared-name;
}
output filter-name {
precedence precedence;
shared-name filter-shared-name;
}
}
mac-validate (loose | strict);
max-sessions number;
max-sessions-vsa-ignore;
rpf-check {
fail-filter filter-name;
mode loose;
}
service {
input {
service-set service-set-name {
service-filter filter-name;
}
post-service-filter filter-name;
}
output {
service-set service-set-name {
service-filter filter-name;
}
379
}
}
service-name-table table-name;
short-cycle-protection <lockout-time-min minimum-seconds lockout-time-max maximum-seconds> <filter [aci]>;
unnumbered-address interface-name <preferred-source-address address>;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.2.
pppoe option added in Junos OS Release 11.2.
Description
Configure protocol family information for the logical interface.
NOTE: Not all subordinate stanzas are available to every protocol family.
Options
family—Protocol family:
• pppoe—(MX Series routers with MPCs only) Point-to-Point Protocol over Ethernet
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
fill-level percentage;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced before Junos OS 11.4 for EX Series switches.
Description
When configuring RED, map the fullness of a queue to a drop probability.
Options
percentage—How full the queue is, expressed as a percentage. You configure the fill-level and
drop-probability statements in pairs. To specify multiple fill levels, include multiple fill-level and
drop-probability statements. The values you assign to each statement pair must increase relative to the
previous pair’s values. This is shown in the discrete graph in Managing Congestion Using RED Drop Profiles
and Packet Loss Priorities.
Range: 0 through 100 percent
RELATED DOCUMENTATION
Managing Congestion Using RED Drop Profiles and Packet Loss Priorities
Defining Packet Drop Behavior by Configuring RED Drop Profiles
381
fill-level [values];
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced before Junos OS 11.4 for EX Series switches.
Description
Define up to 64 values for interpolating queue fill level.
On EX Series switches, this statement is supported only on EX8200 standalone switches and EX8200
Virtual Chassis.
Options
values—Data points for mapping queue fill percentage.
Range: 0 through 100
Default: In the default tail drop profile, when the fill level is 0 percent, the drop probability is 0 percent. When
the fill level is 100 percent, the drop probability is 100 percent.
RELATED DOCUMENTATION
Managing Congestion Using RED Drop Profiles and Packet Loss Priorities
Defining Packet Drop Behavior by Configuring RED Drop Profiles.
382
filter (Configuring)
Syntax
filter filter-name {
accounting-profile name;
enhanced-mode;
fast-lookup-filter;
filter-list-template;
interface-shared;
interface-specific;
physical-interface-filter;
promote gre-key;
term term-name {
... term configuration ...
}
}
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Logical systems support introduced in Junos OS Release 9.3.
physical-interface-filter statement introduced in Junos OS Release 9.6.
Support for the interface-shared statement introduced in Junos OS Release 12.2.
Statement introduced in Junos OS Release 12.3R2 for EX Series switches.
Description
Configure firewall filters.
Options
filter-name—Name that identifies the filter. This must be a non-reserved string of not more than 64
characters. To include spaces in the name, enclose it in quotation marks (“ ”). Firewall filter names are
restricted from having the form __.*__ (beginning and ending with underscores) or __.* (beginning with an
underscore.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
flexible-vlan-tagging
Syntax
flexible-vlan-tagging;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.1.
Support for aggregated Ethernet added in Junos OS Release 9.0.
Statement introduced in Junos OS Release 12.1x48 for PTX Series Packet Transport Routers.
Statement introduced in Junos OS Release 13.2X50-D15 for EX Series switches.
Statement introduced in Junos OS Release 13.2X51-D20 for the QFX Series.
Description
Support simultaneous transmission of 802.1Q VLAN single-tag and dual-tag frames on logical interfaces
on the same Ethernet port, and on pseudowire logical interfaces.
This statement is supported on M Series and T Series routers, for Fast Ethernet and Gigabit Ethernet
interfaces only on Gigabit Ethernet IQ2 and IQ2-E, IQ, and IQE PICs, and for aggregated Ethernet interfaces
with member links in IQ2, IQ2-E, and IQ PICs or in MX Series DPCs, or on Ethernet interfaces for PTX
Series Packet Transport Routers or 100-Gigabit Ethernet Type 5 PIC with CFP.
This statement is supported on Gigabit Ethernet, 10-Gigabit Ethernet, 40-Gigabit Ethernet, and aggregated
Ethernet interfaces on EX Series and QFX Series switches.
RELATED DOCUMENTATION
forwarding-classes (Class-of-Service)
Syntax
forwarding-classes {
class queue-num queue-number priority (high | low);
queue queue-number class-name priority (high | low) [ policing-priority (premium | normal) ];
}
Hierarchy Level
[edit class-of-service]
Release Information
Statement introduced before Junos OS Release 7.4.
policing-priority option introduced in Junos OS Release 9.5.
Statement introduced on PTX Series Packet Transport Routers in Junos OS Release 12.1.
Description
Associate the forwarding class with a queue name and number. For M320, MX Series, T Series routers
and EX Series switches only, you can configure fabric priority queuing by including the priority statement.
For Enhanced IQ PICs, you can include the policing-priority option.
NOTE: The priority and policing-priority options are not supported on PTX Series Packet
Transport Routers.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
group group-name {
access-profile profile-name;
authentication {
password password-string;
username-include {
circuit-type;
client-id;
delimiter delimiter-character;
domain-name domain-name-string;
interface-description (device-interface | logical-interface);
logical-system-name;
mac-address;
option-60;
option-82 <circuit-id> <remote-id>;
relay-agent-interface-id
relay-agent-remote-id;
relay-agent-subscriber-id;
routing-instance-name;
user-prefix user-prefix-string;
vlan-tags;
}
}
dynamic-profile profile-name <aggregate-clients (merge | replace) | use-primary primary-profile-name>;
interface interface-name {
access-profile profile-name;
exclude;
overrides {
asymmetric-lease-time seconds;
asymmetric-prefix-lease-time seconds;
client-discover-match <option60-and-option82>;
client-negotiation-match incoming-interface;
delay-advertise {
based-on (option-15 | option-16 | option-18 | option-37) {
equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
not-equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
387
starts-with {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
}
delay-time seconds;
}
delay-offer {
based-on (option-60 | option-77 | option-82) {
equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
not-equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
starts-with {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
}
delay-time seconds;
}
dual-stack dual-stack-group-name;
interface-client-limit number;
process-inform {
pool pool-name;
}
rapid-commit;
}
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
trace;
upto upto-interface-name;
}
388
liveness-detection {
failure-action (clear-binding | clear-binding-if-interface-up | log-only);
method {
bfd {
version (0 | 1 | automatic);
minimum-interval milliseconds;
minimum-receive-interval milliseconds;
multiplier number;
no-adaptation;
transmit-interval {
minimum-interval milliseconds;
threshold milliseconds;
}
detection-time {
threshold milliseconds;
}
session-mode(automatic | multihop | singlehop);
holddown-interval milliseconds;
}
layer2-liveness-detection {
max-consecutive-retries number;
transmit-interval interval;
}
}
}
389
overrides {
asymmetric-lease-time seconds;
asymmetric-prefix-lease-time seconds;
client-discover-match <option60-and-option82>;
client-negotiation-match incoming-interface;
delay-advertise {
based-on (option-15 | option-16 | option-18 | option-37) {
equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
not-equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
starts-with {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
}
delay-time seconds;
}
delay-offer {
based-on (option-60 | option-77 | option-82) {
equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
not-equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
starts-with {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
}
delay-time seconds;
}
delegated-pool;
delete-binding-on-renegotiation;
dual-stack dual-stack-group-name;
interface-client-limit number;
process-inform {
390
pool pool-name;
}
protocol-attributes attribute-set-name;
rapid-commit;
}
reconfigure {
attempts attempt-count;
clear-on-abort;
strict;
timeout timeout-value;
token token-value;
trigger {
radius-disconnect;
}
}
route-suppression;
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
Statement introduced in Junos OS Release 12.1 for EX Series switches.
Description
Configure a group of interfaces that have a common configuration, such as authentication parameters. A
group must contain at least one interface.
Options
group-name—Name of the group.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
391
RELATED DOCUMENTATION
guaranteed-rate
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.6.
Option burst-size introduced for Enhanced Queuing (EQ) DPC interfaces in Junos OS Release 9.4.
Option burst-size introduced for MIC and MPC interfaces in Junos OS Release 11.4.
Option burst-size introduced for IQ2 and IQ2E interfaces in Junos OS Release 12.3
Description
For Gigabit Ethernet IQ, Channelized IQ PICs, Multiservices and Services PICs FRF.16 LSQ interfaces, and
EQ DPCs only, configure a guaranteed minimum rate. You can also configure an optional burst size for a
logical interface on EQ DPCs and on IQ2 and IQ2E PICs. This can help to ensure that higher priority services
do not starve lower priority services.
Default
If you do not include this statement and you do not include the delay-buffer-rate statement, the logical
interface receives a minimal delay-buffer rate and minimal bandwidth equal to 2 MTU-sized packets.
Options
percent percentage—For LSQ interfaces, guaranteed rate as a percentage of the available interface
bandwidth.
Range: 1 through 100 percent
rate—For IQ and IQ2 interfaces, guaranteed rate, in bits per second (bps). You can specify a value in bits
per second 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).
Range: 1000 through 6,400,000,000,000 bps
NOTE: Through Junos OS Release 13.3, the upper limit is 160,000,000,000 bps. Beginning with
Junos OS Release 14.1, the upper limit is 6,400,000,000,000 bps.
RELATED DOCUMENTATION
hierarchical-scheduler
Syntax
hierarchical-scheduler;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.5.
Description
On MX Series, M Series, and T Series routers with IQ2E PIC, enables the use of hierarchical schedulers.
NOTE: To enable hierarchical scheduling on MX80 and MX104 routers, configure the
hierarchical-scheduler statement at each member physical interface level of a particular
aggregated Ethernet interface as well as at that aggregated Ethernet interface level. On other
routing platforms, it is enough if you include this statement at the aggregated Ethernet interface
level.
Default
If you do not include this statement, the interfaces on the MX Series router cannot use hierarchical
interfaces.
RELATED DOCUMENTATION
hierarchical-scheduler {
implicit-hierarchy;
maximum-hierarchy-levels number;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.1.
implicit-hierarchy option added in Junos OS Release 13.1.
Support on GRE tunnel interfaces configured on physical interfaces on MICs or MPCs in MX Series routers
added in Junos OS Release 13.3.
Support for up to four hierarchy levels added in Junos OS Release 16.1.
Description
Configure hierarchical scheduling options on the interface.
• GRE tunnel interfaces configured on physical interfaces hosted on MIC or MPC line cards in MX Series
routers
Options
implicit-hierarchy—Configure four-level hierarchical scheduling. When you include the implicit-hierarchy
option, a hierarchical relationship is formed between the CoS scheduler nodes at level 1, level 2, level 3,
and level 4. The implicit-hierarchy option is supported only on MPC/MIC subscriber interfaces and interface
sets on MX Series routers.
• If you set maximum-hierarchy-levels to 2, interface sets are not allowed. In this case, if you configure
a level 2 interface set, you generate Packet Forwarding Engine errors.
• If you do not include the maximum-hierarchy-levels option, keeping the default number of hierarchy
levels at 3, interface sets can be at either level 2 or level 3, depending on whether the member logical
interfaces within the interface set have a traffic control profile. If any member logical interface has a
traffic control profile, then the interface set is a level 2 CoS scheduler node. If no member logical interface
has a traffic control profile, the interface set is at level 3.
CAUTION: MPC3E, 32x10GE MPC4E, and 2x100GE + 8x10GE MPC4E MPCs support
only two levels of scheduling hierarchy. When enabling hierarchical scheduling on
these cards, you must explicitly set maximum-hierarchy-levels to 2.
RELATED DOCUMENTATION
ieee-802.1ad
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.2.
Description
Apply a IEEE-802.1ad rewrite rule.
Options
rewrite-name—Name of a rewrite-rules mapping configured at the [edit class-of-service rewrite-rules
ieee-802.1ad] hierarchy level.
RELATED DOCUMENTATION
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Apply an IPv4 classifier.
Options
default—The default mapping. By default, IP precedence rewrite rules alter the first three bits on the type
of service (ToS) byte while leaving the last three bits unchanged.
RELATED DOCUMENTATION
input-excess-bandwidth-share
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
Description
Determines the method of sharing excess bandwidth on the ingress interface in a hierarchical scheduler
environment. If you do not include this statement, the node shares excess bandwidth proportionally at
32.64 Mbps.
Options
proportional value—(Default) Share ingress excess bandwidth proportionally (default value is 32.64 Mbps).
RELATED DOCUMENTATION
input-scheduler-map
Syntax
input-scheduler-map map-name;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.6.
Description
Associate a scheduler map with a physical or logical input interface. The input-scheduler-map and
input-traffic-control-profile statements are mutually exclusive at the same hierarchy level.
NOTE:
For an Enhanced Queuing (EQ) DPC on an MX Series router, CoS queuing and scheduling are
enabled on the egress side but disabled on the ingress side by default. To enable ingress CoS on
the EQ DPC, you must configure the traffic-manager statement with ingress-and-egress mode:
Options
map-name—Name of scheduler map that you define at the [edit class-of-service scheduler-maps] hierarchy
level.
RELATED DOCUMENTATION
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.6.
Description
For Gigabit Ethernet IQ2, Enhanced Queuing DPC, MIC, and MPC interfaces, configure input traffic shaping
by specifying the amount of bandwidth to be allocated to the logical interface. You can configure hierarchical
shaping, meaning you can apply an input shaping rate to both the physical interface and the logical interface.
Default
If you do not include this statement, logical interfaces 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.
Options
percent percentage—Shaping rate as a percentage of the available interface bandwidth.
Range: 0 through 100 percent
rate—Peak rate, in bits per second (bps). You can specify a value in bits per second 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).
Range: 1000 through 6,400,000,000,000 bps
NOTE: Through Junos OS Release 13.3, the upper limit is 160,000,000,000 bps. Beginning with
Junos OS Release 14.1, the upper limit is 6,400,000,000,000 bps.
RELATED DOCUMENTATION
input-shaping-rate rate;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.6.
Description
For Gigabit Ethernet IQ2, Enhanced Queuing DPC, MIC, and MPC interfaces, configure input traffic shaping
by specifying the amount of bandwidth to be allocated to the physical interface. You can configure
hierarchical shaping, meaning you can apply an input shaping rate to both the physical interface and the
logical interface.
Options
rate—Peak rate, in bits per second (bps). You can specify a value in bits per second 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).
Range: 1000 through 6,400,000,000,000 bps
NOTE: Through Junos OS Release 13.3, the upper limit is 160,000,000,000 bps. Beginning with
Junos OS Release 14.1, the upper limit is 6,400,000,000,000 bps.
RELATED DOCUMENTATION
Configuring Input Shaping Rates for Both Physical and Logical Interfaces
Configuring Ingress Hierarchical CoS on Enhanced Queuing DPCs | 43
input-traffic-control-profile | 405
405
input-traffic-control-profile
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.6.
Description
For Gigabit Ethernet IQ2 and IQ2E PIC, Enhanced Queuing DPC , MIC, and MPC interfaces, apply an input
traffic scheduling and shaping profile to the logical interface. The input-traffic-control-profile and
input-scheduler-map statements are mutually exclusive at the same hierarchy level.
NOTE: The shared-instance statement applies only to Gigabit Ethernet IQ2 and IQ2E PICs.
NOTE:
For an Enhanced Queuing (EQ) DPC on an MX Series router, CoS queuing and scheduling are
enabled on the egress side but disabled on the ingress side by default. To enable ingress CoS on
the EQ DPC, you must configure the traffic-manager statement with ingress-and-egress mode:
Options
profile-name—Name of the traffic-control profile to be applied to this interface.
RELATED DOCUMENTATION
input-traffic-control-profile-remaining
Syntax
input-traffic-control-profile-remaining profile-name;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
Description
For Enhanced Queuing DPC, MICs, or MPC interfaces on MX Series routers, or for IQ2E PICs interfaces
on M Series and T Series router, apply an input traffic scheduling and shaping profile for the remaining
traffic to the logical interface or interface set.
Options
profile-name—Name of the traffic-control profile for the remaining traffic to be applied to this interface
or interface set.
RELATED DOCUMENTATION
interface interface-name {
access-profile profile-name;
exclude;
overrides {
asymmetric-lease-time seconds;
asymmetric-prefix-lease-time seconds;
client-discover-match <option60-and-option82 | incoming-interface>;
client-negotiation-match incoming-interface;
delay-advertise {
based-on (option-15 | option-16 | option-18 | option-37) {
equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
not-equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
starts-with {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
}
delay-time seconds;
}
delay-offer {
based-on (option-60 | option-77 | option-82) {
equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
not-equals {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
starts-with {
ascii ascii-string;
hexadecimal hexadecimal-string;
}
}
delay-time seconds;
408
}
dual-stack dual-stack-group-name;
interface-client-limit number;
rapid-commit;
}
service-profile dynamic-profile-name;
short-cycle-protection <lockout-min-time seconds> <lockout-max-time seconds>;
trace;
upto upto-interface-name;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
Statement introduced in Junos OS Release 12.3R2 for EX Series switches.
Options upto and exclude introduced in Junos OS Release 9.1.
Description
Specify one or more interfaces, or a range of interfaces, that are within a specified group on which the
DHCP local server is enabled. You can repeat the interface interface-name statement to specify multiple
interfaces within a group, but you cannot specify the same interface in more than one group. Also, you
cannot use an interface that is being used by the DHCP relay agent.
NOTE: DHCP values are supported in integrated routing and bridging (IRB) configurations. When
you configure an IRB interface in a network that is using DHCP, the DHCP information (for
example, authentication, address assignment, and so on) is propagated in the associated bridge
domain. This enables the DHCP server to configure client IP addresses residing within the bridge
domain. IRB currently supports only static DHCP configurations.
409
Options
exclude—Exclude an interface or a range of interfaces from the group. This option and the overrides option
are mutually exclusive.
interface-name—Name of the interface. You can repeat this option multiple times.
upto-interface-name—Upper end of the range of interfaces; the lower end of the range is the interface-name
entry. The interface device name of the upto-interface-name must be the same as the device name of the
interface-name.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
interface-set interface-set-name {
interface ethernet-interface-name {
(unit unit-number | vlan-tags-outer vlan-tag);
}
}
Hierarchy Level
[edit interfaces]
Release Information
Statement introduced in Junos OS Release 8.5.
Description
The set of interfaces used to configure hierarchical CoS schedulers on Ethernet interfaces on the MX
Series router and IQ2E PIC on M Series and T Series routers.
RELATED DOCUMENTATION
interface-set interface-set-name {
excess-bandwidth-share (proportional value | equal);
internal-node;
output-traffic-control-profile profile-name;
output-traffic-control-profile-remaining profile-name;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.5.
Description
For Enhanced Queuing DPC, MIC, or MPC interfaces on MX Series routers, or for IQ2E PIC interfaces on
M Series routers, configure hierarchical schedulers for an interface set.
Options
interface-set-name—Name of the interface set.
RELATED DOCUMENTATION
interface-set interface-set-name {
interface interface-name {
unit unit-number;
}
}
Hierarchy Level
[edit interfaces]
Release Information
Statement introduced in Junos OS Release 9.2.
Description
The set of interfaces used to configure hierarchical CoS schedulers for subscribers on IP demux interfaces
on the MX Series router.
RELATED DOCUMENTATION
interfaces
List of Syntax
Syntax (QFX Series) on page 413
Syntax (EX Series, MX Series and T Series) on page 413
interfaces interface-name {
no-mac-learning;
}
interfaces { ... }
QFX Series
[edit ethernet-switching-options]
[edit]
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 11.1 for the QFX Series.
Description
Configure settings for interfaces that have been assigned to family ethernet-switching.
Default
The management and internal Ethernet interfaces are automatically configured. You must configure all
other interfaces.
Options
interface-name —Name of an interface that is configured for family ethernet-switching.
RELATED DOCUMENTATION
interfaces (CoS)
Syntax
interfaces {
interface-name {
classifiers{
dscp(classifier-name | default) {
}
ieee-802.1 (classifier-name | default) vlan-tag (inner | outer | classifier-name);
inet-precedence (rewrite-name | default);
}
input-scheduler-map map-name;
input-shaping-rate rate;
irb {
unit logical-unit-number {
classifiers {
type (classifier-name | default);
no-default;
}
rewrite-rules {
dscp (rewrite-name | default);
dscp-ipv6 (rewrite-name | default);
exp (rewrite-name | default)protocol protocol-types;
ieee-802.1 (rewrite-name | default) vlan-tag (outer | outer-and-inner);
inet-precedence (rewrite-name | default);
}
}
}
member-link-scheduler (replicate | scale);
rewrite-rules {
dscp (rewrite-name | default);
ieee-802.1 (rewrite-name | default) vlan-tag (outer);
inet-precedence (rewrite-name | default);
}
}
scheduler-map map-name;
scheduler-map-chassis map-name;
shaping-rate rate;
unit logical-unit-number {
classifiers {
type (classifier-name | default) family (mpls | inet);
}
forwarding-class class-name;
fragmentation-map map-name;
416
Hierarchy Level
[edit class-of-service]
Release Information
Statement introduced before Junos OS Release 7.4.
Interface-set level added in Junos OS Release 8.5.
Description
Configure interface-specific CoS properties for incoming packets.
Options
The remaining statements are explained separately. See CLI Explorer.
417
RELATED DOCUMENTATION
interfaces {
interface-name {
unit logical-unit-number {
actual-transit-statistics;
auto-configure {
agent-circuit-identifier {
dynamic-profile profile-name;
}
line-identity {
include {
accept-no-ids;
circuit-id;
remote-id;
}
dynamic-profile profile-name;
}
}
family family {
access-concentrator name;
address address;
direct-connect;
duplicate-protection;
dynamic-profile profile-name;
filter {
adf {
counter;
input-precedence precedence;
not-mandatory;
output-precedence precedence;
rule rule-value;
}
input filter-name {
precedence precedence;
shared-name filter-shared-name;
}
output filter-name {
precedence precedence;
shared-name filter-shared-name;
}
}
max-sessions number;
419
max-sessions-vsa-ignore;
rpf-check {
mode loose;
}
service {
input {
service-set service-set-name {
service-filter filter-name;
}
post-service-filter filter-name;
}
output {
service-set service-set-name {
service-filter filter-name;
}
}
}
service-name-table table-name
short-cycle-protection <lockout-time-min minimum-seconds lockout-time-max maximum-seconds>;
unnumbered-address interface-name <preferred-source-address address>;
}
filter {
input filter-name (
precedence precedence;
shared-name filter-shared-name;
}
output filter-name {
precedence precedence;
shared-name filter-shared-name;
}
}
host-prefix-only;
ppp-options {
chap;
pap;
}
proxy-arp;
service {
pcef pcef-profile-name {
activate rule-name | activate-all;
}
}
420
targeted-options {
backup backup;
group group;
primary primary;
weight ($junos-interface-target-weight | weight-value);
}
vlan-id;
vlan-tags outer [tpid].vlan-id [inner [tpid].vlan-id];
}
vlan-tagging;
}
interface-set interface-set-name {
interface interface-name {
unit logical unit number {
advisory-options {
downstream-rate rate;
upstream-rate rate;
}
}
}
pppoe-underlying-options {
max-sessions number;
}
}
421
demux0 {
unit logical-unit-number {
demux-options {
underlying-interface interface-name
}
family family {
access-concentrator name;
address address;
direct-connect;
duplicate-protection;
dynamic-profile profile-name;
demux-source {
source-prefix;
}
filter {
input filter-name (
precedence precedence;
shared-name filter-shared-name;
}
output filter-name {
precedence precedence;
shared-name filter-shared-name;
}
}
mac-validate (loose | strict):
max-sessions number;
max-sessions-vsa-ignore;
rpf-check {
fail-filter filter-name;
mode loose;
}
service-name-table table-name
short-cycle-protection <lockout-time-min minimum-seconds lockout-time-max maximum-seconds>;
unnumbered-address interface-name <preferred-source-address address>;
}
filter {
input filter-name;
output filter-name;
}
vlan-id number;
vlan-tags outer [tpid].vlan-id [inner [tpid].vlan-id];
}
}
422
pp0 {
unit logical-unit-number {
keepalives interval seconds;
no-keepalives;
pppoe-options {
underlying-interface interface-name;
server;
}
ppp-options {
aaa-options aaa-options-name;
authentication [ authentication-protocols ];
chap {
challenge-length minimum minimum-length maximum maximum-length;
local-name name;
}
ignore-magic-number-mismatch;
initiate-ncp (dual-stack-passive | ipv6 | ip)
ipcp-suggest-dns-option;
mru size;
mtu (size | use-lower-layer);
on-demand-ip-address;
pap;
peer-ip-address-optional;
local-authentication {
password password;
username-include {
circuit-id;
delimiter character;
domain-name name;
mac-address;
remote-id;
}
}
}
family inet {
unnumbered-address interface-name;
address address;
service {
input {
service-set service-set-name {
service-filter filter-name;
}
post-service-filter filter-name;
}
423
output {
service-set service-set-name {
service-filter filter-name;
}
}
}
filter {
input filter-name {
precedence precedence;
shared-name filter-shared-name;
}
output filter-name {
precedence precedence;
shared-name filter-shared-name;
}
}
}
}
}
stacked-interface-set {
interface-set-name interface-set-name {
interface-set-name interface-set-name;
}
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.2.
Description
Define interfaces for dynamic client profiles.
424
Options
interface-name—The interface variable ($junos-interface-ifd-name). The interface variable is dynamically
replaced with the interface the DHCP client accesses when connecting to the router.
NOTE: Though we do not recommend it, you can also enter the specific name of the interface
you want to assign to the dynamic profile.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
internal-node
Syntax
internal-node;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.5.
Description
The statement is used to raise the interface set without children to the same level as the other configured
interface sets with children, allowing them to compete for the same set of resources.
Default
If you do not include this statement, the node is internal only if its children have a traffic control profile
configured.
RELATED DOCUMENTATION
interpolate
Syntax
interpolate {
drop-probability [values];
fill-level [values];
}
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced before Junos OS 11.4 for EX Series switches.
Description
Specify values for interpolating relationship between queue fill level and drop probability.
On EX Series switches, this statement is supported only on EX8200 standalone switches and EX8200
Virtual Chassis.
RELATED DOCUMENTATION
loss-priority level;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 14.2 for PTX Series Packet Transport Routers.
Description
Specify packet loss priority value for a specific set of code-point aliases and bit patterns.
Options
level can be one of the following:
RELATED DOCUMENTATION
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 12.1X48 for PTX Series Packet Transport Routers.
Statement introduced in Junos OS Release 12.2 for ACX Series Routers.
Description
Specify a loss priority to which to apply a drop profile. The drop profile map sets the drop profile for a
specific PLP and protocol type. The inputs for the map are the PLP designation and the protocol type. The
output is the drop profile.
Options
any—The drop profile applies to packets with any PLP.
NOTE: On ACX Series Routers, if you configure the protocol as tcp, then the loss-priority (any
| high | low | medium-high) values are supported. If you configure the protocol with either non-tcp
or any option, then irrespective of the loss-priority value, only one drop-profile can be specified.
RELATED DOCUMENTATION
429
max-queues
Syntax
max-queues queues-per-line-card;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 13.2.
Support for MPC7E, MPC8E, and MPC9E from Junos OS Release 15.1F4.
Description
Configure the maximum number of queues allowed per MPC1 Q, MPC2 Q, MPC2 EQ, MPC7E, MPC8E,
and MPC9E line cards in an MX240, MX480, MX960, MX2010, or MX2020 router or per 2-port or 4-port
10-Gigabit Ethernet fixed MIC with XFP in an MX5, MX10, MX40, or MX80 modular chassis router.
Reducing the number of queues allowed in a hierarchical scheduling environment in turn reduces the
degree of jitter in the queues.
Options
queues-per-line-card—Maximum number of queues allowed for the line card. Only the following keywords
are valid: 8k, 16k, 32k, 64k, 96k, 128k, 256k, 512k, 768k, or 1M.
• Built-in 10-Gigabit Ethernet MICs and MPC1 Q line cards support up to 128 K queues. You can use
this statement to configure the single Packet Forwarding Engine to support a lower maximum number
of queues.
• MPC2 Q and MPC2 EQ line cards support up to 256 K queues. You can use this statement to
configure the two Packet Forwarding Engines to support a lower maximum number of queues.
If you configure a keyword for a value that exceeds the number of queues supported by the line card
hardware, the system uses the maximum number of queues supported by the line card.
If the max-queues statement is not configured on MPC7E, MPC8E, and MPC9E, which is the default
mode, the MPC starts with a message similar to the following:
431
FPC 0 supports only port based queuing. A license is required for per-VLAN and hierarchical features.
If the max-queues statement is configured on MPC7E, MPC8E, and MPC9E and the value is less than
or equal to 32,000, the MPC starts with a message similar to the following:
FPC 0 supports port based queuing and is configured in 16384 queue mode. A limited per-VLAN
queuing license is required for per VLAN and hierarchical queuing features.
If the max-queues statement is configured on MPC7E, MPC8E, and MPC9E and the value is greater
than 32,000, the MPC starts with a message similar to the following:
FPC 0 supports port based queuing and is configured in 524288 queue mode. A full scale per-VLAN
queuing license is required for per VLAN and hierarchical queuing features.
RELATED DOCUMENTATION
max-queues-per-interface
Syntax
max-queues-per-interface (8 | 4);
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Support for TX Matrix and TX Matrix Plus added in Junos OS Release 9.6.
Description
On IQ, MPC, and DPC interfaces on M120, T320, T640, T1600, TX Matrix, and TX Matrix Plus routers,
or on MIC or MPC interfaces on MX Series routers, set the number of egress queues per port to four or
eight.
NOTE: If you include the max-queues-per-interface 8 statement, the configuration at the [edit
class-of-service] hierarchy level must also support eight queues per interface.
NOTE: When you include the max-queues-per-interface statement and commit the configuration,
all physical interfaces on the PIC/MIC are deleted and readded. Also, the PIC/MIC is restarted
automatically. You should change modes between four queues and eight queues only when
there is no active traffic going to the PIC/MIC.
By default, IQ PICs on T Series and M320 routers are restricted to a maximum of four egress queues per
interface. If you include the max-queues-per-interface 4 statement, you can configure all four ports and
configure up to four queues per port.
For Quad T3 and Quad E3 PICs and for 4-port OC3c/STM1 Type I and Type II PICs on M320 and T Series
routers, when you include the max-queues-per-interface 8 statement, you can configure up to eight queues
on ports 0 and 2. After you commit the configuration, the PIC goes offline and comes back online with
only ports 0 and 2 operational. No interfaces can be configured on ports 1 and 3.
433
NOTE: Starting from Junos OS Release 14.1R8, 14.2R6, 15.1F6, 15.1R3, 15.1R4, and 16.1R1,
the restricted queue PICs without the max-queues-per-interface configuration boot up with a
maximum of eight queues per port and two operational ports (port 0 and 2). PICs with restricted
queues include Quad T3 PIC, Quad E3 PIC, 4-port SONET/SDH OC3c/STM1 PIC, and 4-Port
OC3 and 1-port OC12 PICs with SFP.
On certain older MPCS (MPC1 Q, MPC1E Q, MPC2 Q, MPC2E Q), you can include the
max-queues-per-interface statement to set the number of queues per logical interface to four or eight.
Setting max-queues-per-interface 4 sets the MPC to have four queues per logical interface and provides
twice as many logical interfaces on the MPC as setting max-queues-per-interface 8.
NOTE: For consistency, max-queues-per-interface should not be set on MPCs starting from
Junos OS 14.1X51.
RELATED DOCUMENTATION
Configuring the Junos OS to Support Eight Queues on IQ Interfaces for T Series and M320 Routers
Configuring Up to 16 Custom Forwarding Classes
Enabling Eight Queues on ATM Interfaces
Configuring the Maximum Number of Queues for Trio MPC/MIC Interfaces
Example: Configuring CoS on SRX5000 Devices with an MPC
Example: Enabling Eight-Queue Class of Service on Redundant Ethernet Interfaces on SRX Series Devices in
a Chassis Cluster
434
member-link-scheduler
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.6.
Description
Determines whether scheduler parameters for aggregated interface member links are applied in a replicated
or scaled manner.
Default
By default, scheduler parameters are scaled (in “equal division mode”) among aggregated interface member
links.
Options
replicate—Scheduler parameters are copied to each level of the aggregated interface member links.
scale—Scheduler parameters are scaled based on number of member links and applied each level of the
aggregated interface member links.
RELATED DOCUMENTATION
mode traffic-manager-mode;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.3.
Statement introduced at the [edit chassis fpc slot-number pic pic-number port port-number traffic-manager]
hierarchy level on MX80 and MX104 routers in Junos OS Release 17.4R2.
Description
Enable shaping on an L2TP session.
Options
traffic-manager-mode—Configure CoS traffic manager mode of operation on this interface. This option has
the following suboptions:
egress-only—Enable CoS queuing and scheduling on the egress side for the PIC that houses the interface.
This is the default mode for an Enhanced Queuing (EQ) DPC on MX Series routers.
If ingress packet drops are observed at a high rate for an IQ2 or IQ2E PIC, configure the traffic-manager
statement to work in the egress-only mode.
ingress-and-egress—Enable CoS queuing and scheduling on both the egress and ingress sides for the PIC.
This is the default mode for IQ2 and IQ2E PICs on M Series and T Series routers.
Junos OS does not support ingress-and-egress mode on label-switched interfaces (LSIs) configured
with VPLS.
For EQ DPCs, you must configure the traffic-manager statement with ingress-and-egress mode to
enable ingress CoS on the EQ DPC. EQ DPCs have 250 ms of buffering, with only egress queuing
(default mode). When ingress-and-egress is configured, the buffer is partitioned as 50 ms for the
ingress direction and 200 ms for the egress direction.
session-shaping—(M10i and M120 routers only) Configure the IQ2 PIC mode for session-aware traffic
shaping to enable L2TP session shaping.
RELATED DOCUMENTATION
output-traffic-control-profile
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.6.
interface-set option added for Enhanced Queuing DPCs on MX Series routers in Junos OS Release 8.5.
interface-set option added for MIC and MPC interfaces on MX Series routers in Junos OS Release 10.2.
Support on GRE tunnel interfaces configured on physical and logical interfaces on MICs or MPCs in MX
Series routers added in Junos OS Release 13.3.
Description
Apply the specified CoS traffic control profile (traffic scheduling and shaping configuration objects) to the
output traffic at the physical interface, logical interface, or interface set.
• Gigabit Ethernet IQ, Gigabit Ethernet IQ2, and IQ2E PIC interfaces
• GRE tunnel interfaces configured on physical or logical interfaces hosted on MIC or MPC line cards in
MX Series routers.
NOTE: Interface sets (sets of interfaces used to configure hierarchical CoS schedulers on
supported Ethernet interfaces) are not supported on GRE tunnel interfaces.
Options
profile-name—Name of the traffic-control profile to be applied to this interface.
438
RELATED DOCUMENTATION
output-traffic-control-profile-remaining
Syntax
output-traffic-control-profile-remaining profile-name;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.5.
Support on GRE tunnel interfaces configured on physical interfaces on MICs or MPCs in MX Series routers
added in Junos OS Release 13.3.
Description
Apply the specified traffic control profile (traffic scheduling and shaping configuration objects) to the
remaining output traffic at the physical interface or interface set. The remaining traffic is transmitted by
the default interface or interface set.
• GRE tunnel interfaces configured on physical interfaces hosted on MIC or MPC line cards in MX Series
routers.
NOTE: Interface sets (sets of interfaces used to configure hierarchical CoS schedulers on
supported Ethernet interfaces) are not supported on GRE tunnel interfaces.
You can map the TCP to the interface or interface set by using the output-traffic-control-profile-remaining
statement to explicitly configure the queues of the default interface or interface set scheduler that transmits
the remaining traffic.
Options
profile-name—Name of the traffic-control profile for remaining traffic to be applied to this interface or
interface set.
RELATED DOCUMENTATION
overhead-accounting
Syntax
overhead-accounting {
bytes bytes;
cell-mode cell-mode-bytes cell-mode-bytes;
frame-mode frame-mode-bytes frame-mode-bytes;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.2.
Description
Configure the mode to shape downstream ATM traffic based on either frames or cells.
Default
The default is frame-mode.
Options
The remaining statements are explained separately. See CLI Explorer.
RELATED DOCUMENTATION
Configuring Static Shaping Parameters to Account for Overhead in Downstream Traffic Rates
Configuring Dynamic Shaping Parameters to Account for Overhead in Downstream Traffic Rates
egress-shaping-overhead | 354
442
pap;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.5.
Support at the [edit dynamic-profiles profile-name interfaces "$junos-interface-ifd-name" unit
“$junos-interface-unit” ppp-options] hierarchy level introduced in Junos OS Release 12.2.
Description
Specify PAP authentication in a PPP dynamic profile.
RELATED DOCUMENTATION
peak-rate
Syntax
peak-rate rate;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 12.1.
Description
(MX Series routers) Define ATM peak cell rate on ATM MICs in cells per second by entering a decimal
number followed by the abbreviation c; where 1 cps = 384 bps.
Options
rate—ATM peak rate in cells per second.
Range: 61 cps through 353,206 cps.
Range: (MX Series with MPCs and ATM MICs with SFP) 61 cps through 1,412,829 cps
NOTE: Beginning with Junos OS Release 14.2, to configure OC12 CBR bandwidth speed per virtual
circuit (VC) on an ATM MIC with SFP (MIC-3D-8OC3-2OC12-ATM), specify up to 1,412,829
cps as the ATM peak cell rate.
RELATED DOCUMENTATION
per-unit-scheduler
Syntax
per-unit-scheduler;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 13.2 on 16x10GE MPC and MPC3E line cards.
Statement introduced in Junos OS Release 13.2 on PTX Series Packet Transport Routers.
Statement introduced in Junos OS Release 13.3 on MPC4E line cards.
Statement introduced in Junos OS Release 15.1 on MPC6E line cards.
Description
For Channelized OC3 IQ, Channelized OC12 IQ, Channelized STM1 IQ, Channelized T3 IQ, Channelized
E1 IQ, E3 IQ, link services IQ interfaces (lsq-), Gigabit Ethernet IQ, Gigabit Ethernet IQ2 and IQ2-E, and
10-, 40-, and 100-Gigabit Ethernet interfaces (including the 16x10GE MPC), enable the association of
scheduler maps with logical interfaces.
NOTE: To enable per-unit scheduling on MX80 and MX104 routers, configure the
per-unit-scheduler statement at each member physical interface level of a particular aggregated
Ethernet interface as well as at that aggregated Ethernet interface level. On other routing
platforms, it is enough if you include this statement at the aggregated Ethernet interface level.
NOTE: On Gigabit Ethernet IQ2 and IQ2-E PICs without the per-unit-scheduler statement, the
entire PIC supports 4071 VLANs and the user can configure all the VLANs on the same port.
On Gigabit Ethernet IQ2 and IQ2-E PICs with the per-unit-scheduler statement, the entire PIC
supports 1024 – 2 * number of ports (1024 minus two times the number of ports), because each
port is allocated two default schedulers.
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.
RELATED DOCUMENTATION
pool pool-name {
active-drain;
family family {
dhcp-attributes {
[ protocol-specific attributes ]
}
excluded-address ip-address;
excluded-range name low minimum-value high maximum-value;
host hostname {
hardware-address mac-address;
ip-address ip-address;
}
network ip-prefixprefix-length>;
prefix ipv6-prefix;
range range-name {
high upper-limit;
low lower-limit;
prefix-length prefix-length;
}
}
hold-down;
link pool-name;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
Statement introduced in Junos OS Release 12.1 for EX Series switches.
Description
Configure the name of an address-assignment pool.
NOTE: Subordinate statement support depends on the platform. See individual statement topics
for more detailed support information.
447
Options
pool-name—Name assigned to the address-assignment pool.
active-drain—(MX Series only) Starting in Junos OS Release 17.2, configure the DHCP local server to stop
allocating addresses from this pool. When this is configured, the DHCP local server gracefully shifts
clients from this address pool to an alternative pool for which active drain is not configured. When
existing clients with an address from this pool submit a DHCPv4 request or DHCPv6 renew, they
receive a NAK, forcing them to renegotiate. The server responds with a DHCPv4 offer or DHCPv6
advertise message with an address from a different pool.
The options for this statement are explained separately. Click the linked statement for details.
hold-down—(MX Series only) Starting in Junos OS Release 16.1, configure an address-assignment pool
that is currently in use to be unavailable for further address allocation. When a pool is in the hold-down
state, the pool is no longer used to allocate IP addresses for subscribers. Current subscribers who
previously obtained an address from the pool are not affected; they can continue to renew their leases.
As each of these users disconnects, their address is not reallocated. The pool becomes inactive when
all subscribers have disconnected and their addresses are returned to the pool.
link—(M Series, MX Series, SRX Series, T Series only) Designate a secondary address-assignment pool that
is linked to the pool being configured. When the pool being configured has no addresses available for
allocation, the secondary pool can be searched for a free address. You can configure a chain of linked
pools, but you cannot directly link more than one pool to or from any other pool. Each linked pool in
the chain serves as a backup pool for the pool immediately before it in the chain.
Values: pool-name—Name assigned to the secondary address-assignment pool.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
pppoe-options {
underlying-interface interface-name;
server;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.1.
Description
Configure the underlying interface and PPPoE server mode for a dynamic PPPoE logical interface in a
dynamic profile.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
ppp-options {
aaa-options aaa-options-name;
authentication [ authentication-protocols ];
chap {
challenge-length minimum minimum-length maximum maximum-length;
local-name name;
}
ignore-magic-number-mismatch;
initiate-ncp (dual-stack-passive | ipv6 | ip)
ipcp-suggest-dns-option;
lcp-connection-update;
mru size;
mtu (size | use-lower-layer);
on-demand-ip-address;
pap;
peer-ip-address-optional;
local-authentication {
password password;
username-include {
circuit-id;
delimiter character;
domain-name name;
mac-address;
remote-id;
}
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.5.
Support at the [edit dynamic-profiles profile-name interfaces "$junos-interface-ifd-name" unit
“$junos-interface-unit”] hierarchy level introduced in Junos OS Release 12.2.
Description
Configure PPP-specific interface properties in a dynamic profile.
450
NOTE:
PPP options can also be configured in a group profile with the ppp-options (L2TP) statement.
The following behavior determines the interaction between the PPP options configured in a
group profile and the PPP options configured in a dynamic profile:
• When PPP options are configured only in the group profile, the group profile options are
applied to the subscriber.
• When PPP options are configured in both a group profile and a dynamic profile, the dynamic
profile configuration takes complete precedence over the group profile when the dynamic
profile includes one or more of the PPP options that can be configured in the group profile.
Complete precedence means that there is no merging of options between the profiles. The
group profile is applied to the subscriber only when the dynamic profile does not include any
PPP option available in the group profile.
Options
lcp-connection-update—Enable PPP to act on a Connection-Status-Message VSA (26–218) received by
authd in either a RADIUS Access-Accept message or a CoA message. PPP conveys the contents of
the VSA in an LCP Connection-Update-Request message to the remote peer, such as a home gateway.
This action requires the following to be true:
• At least the first address family has been successfully negotiated and the session is active.
Otherwise PPP takes no action on the VSA. If you do not enable the lcp-connection-update option,
PPP processes the notification from authd, but takes no action.
Default: Disabled
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
priority (Schedulers)
Syntax
priority priority-level;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 12.1X48 for PTX Series Packet Transport Routers.
Statement introduced in Junos OS Release 12.2 for ACX Series Routers.
Description
Specify the packet-scheduling priority value.
Options
priority-level can be one of the following:
• high—Scheduler has high priority. Assigning high priority to a queue prevents the queue from being
underserved.
• strict-high—Scheduler has strictly high priority. Configure a high priority queue with unlimited transmission
bandwidth available to it. As long as it has traffic to send, the strict-high priority queue receives
precedence over low, medium-low, and medium-high priority queues, but not high priority queues. You
can configure strict-high priority on only one queue per interface.
NOTE: The strict-high priority level is the only priority level supported on ACX Series Routers.
However, multiple strict-high priority queues can be configured per interface on ACX Series
Routers.
RELATED DOCUMENTATION
profile (Access)
Syntax
profile profile-name {
accounting {
address-change-immediate-update
accounting-stop-on-access-deny;
accounting-stop-on-failure;
ancp-speed-change-immediate-update;
coa-immediate-update;
coa-no-override service-class-attribute;
duplication;
duplication-filter;
duplication-vrf {
access-profile-name profile-name;
vrf-name vrf-name;
}
immediate-update;
order [ accounting-method ];
send-acct-status-on-config-change;
statistics (time | volume-time);
update-interval minutes;
wait-for-acct-on-ack;
}
accounting-order (radius | [accounting-order-data-list]);
authentication-order [ authentication-methods ];
client client-name {
chap-secret chap-secret;
group-profile profile-name;
ike {
allowed-proxy-pair {
remote remote-proxy-address local local-proxy-address;
}
pre-shared-key (ascii-text character-string | hexadecimal hexadecimal-digits);
ike-policy policy-name;
interface-id string-value;
}
l2tp {
aaa-access-profile profile-name;
interface-id interface-id;
lcp-renegotiation;
local-chap;
maximum-sessions number;
maximum-sessions-per-tunnel number;
455
multilink {
drop-timeout milliseconds;
fragment-threshold bytes;
}
override-result-code session-out-of-resource;
ppp-authentication (chap | pap);
ppp-profile profile-name;
service-profile profile-name(parameter)&profile-name;
sessions-limit-group limit-group-name;
shared-secret shared-secret;
}
pap-password pap-password;
ppp {
cell-overhead;
encapsulation-overhead bytes;
framed-ip-address ip-address;
framed-pool framed-pool;
idle-timeout seconds;
interface-id interface-id;
keepalive seconds;
primary-dns primary-dns;
primary-wins primary-wins;
secondary-dns secondary-dns;
secondary-wins secondary-wins;
}
user-group-profile profile-name;
}
domain-name-server;
domain-name-server-inet;
domain-name-server-inet6;
local {
flat-file-profile profile-name;
}
preauthentication-order preauthentication-method;
provisioning-order (gx-plus | jsrc | pcrf);
456
radius {
accounting-server [ ip-address ];
attributes {
exclude {
attribute-name packet-type;
standard-attribute number {
packet-type [ access-request | accounting-off | accounting-on | accounting-start | accounting-stop ];
}
vendor-id id-number {
vendor-attribute vsa-number {
packet-type [ access-request | accounting-off | accounting-on | accounting-start | accounting-stop ];
}
}
}
ignore {
dynamic-iflset-name;
framed-ip-netmask;
idle-timeout;
input-filter;
logical-system:routing-instance;
output-filter;
session-timeout;
standard-attribute number;
vendor-id id-number {
vendor-attribute vsa-number;
}
}
}
authentication-server [ ip-address ];
options {
accounting-session-id-format (decimal | description);
calling-station-id-delimiter delimiter-character;
calling-station-id-format {
agent-circuit-id;
agent-remote-id;
interface-description;
interface-text-description;
mac-address;
nas-identifier;
stacked-vlan;
vlan;
}
chap-challenge-in-request-authenticator;
client-accounting-algorithm (direct | round-robin);
457
nas-port-type {
ethernet {
port-type;
}
}
override {
calling-station-id remote-circuit-id;
nas-ip-address tunnel-client-gateway-address;
nas-port tunnel-client-nas-port;
nas-port-type tunnel-client-nas-port-type;
}
remote-circuit-id-delimiter;
remote-circuit-id-fallback {
remote-circuit-id-format;
agent-circuit-id;
agent-remote-id;
}
revert-interval interval;
service-activation {
dynamic-profile (optional-at-login | required-at-login);
extensible-service (optional-at-login | required-at-login);
}
vlan-nas-port-stacked-format;
}
preauthentication-server ip-address;
}
radius-server server-address {
accounting-port port-number;
accounting-retry number;
accounting-timeout seconds;
dynamic-request-port
port port-number;
preauthentication-port port-number;
preauthentication-secret password;
retry attempts;
routing-instance routing-instance-name;
secret password;
max-outstanding-requests value;
source-address source-address;
timeout seconds;
}
459
service {
accounting {
statistics (time | volume-time);
update-interval minutes;
}
accounting-order (activation-protocol | local | radius);
}
session-limit-per-username number;
session-options {
client-idle-timeout minutes;
client-idle-timeout-ingress-only;
client-session-timeoutminutes;
pcc-context {
input-service-filter-name filter-name;
input-service-set-name service-set-name;
ipv6-input-service-filter-name filter-name;
ipv6-input-service-set-name service-set-name;
ipv6-output-service-filter-name filter-name;
ipv6-output-service-set-name service-set-name;
output-service-filter-name filter-name;
output-service-set-name service-set-name;
profile-name pcef-profile-name;
}
strip-user-name {
delimiter [ delimiter ];
parse-direction (left-to-right | right-to-left);
}
}
subscriber username {
delegated-pool delegated-pool-name;
framed-ip-address ipv4-address;
framed-ipv6-pool ipv6-pool-name;
framed-pool ipv4-pool-name;
password password;
target-logical-system logical-system-name <target-routing-instance (default | routing-instance-name>;
target-routing-instance (default | routing-instance-name);
}
}
Hierarchy Level
[edit access]
460
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure a subscriber access profile that includes subscriber access, L2TP, or PPP properties.
Options
profile-name—Name of the profile.
For CHAP, the name serves as the mapping between peer identifiers and CHAP secret keys. This entity
is queried for the secret key whenever a CHAP challenge or response is received.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
protocols
Syntax
protocols {
bgp {
... bgp-configuration ...
}
isis {
... isis-configuration ...
}
ldp {
... ldp-configuration ...
}
mpls {
... mpls -configuration ...
}
msdp {
... msdp-configuration ...
}
mstp {
... mstp-configuration ...
}
ospf {
domain-id domain-id;
domain-vpn-tag number;
route-type-community (iana | vendor);
traffic-engineering {
<advertise-unnumbered-interfaces>;
<credibility-protocol-preference>;
ignore-lsp-metrics;
multicast-rpf-routes;
no-topology;
shortcuts {
lsp-metric-into-summary;
}
}
... ospf-configuration ...
}
ospf3 {
domain-id domain-id;
domain-vpn-tag number;
route-type-community (iana | vendor);
traffic-engineering {
<advertise-unnumbered-interfaces>;
462
<credibility-protocol-preference>;
ignore-lsp-metrics;
multicast-rpf-routes;
no-topology;
shortcuts {
lsp-metric-into-summary;
}
}
... ospf3-configuration ...
}
pim {
... pim-configuration ...
}
rip {
... rip-configuration ...
}
ripng {
... ripng-configuration ...
}
rstp {
rstp-configuration;
}
rsvp{
... rsvp-configuration ...
}
vstp {
vstp configuration;
}
vpls {
vpls configuration;
}
}
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Support for RIPng introduced in Junos OS Release 9.0.
Statement introduced in Junos OS Release 11.1 for EX Series switches.
Statement introduced in Junos OS Release 11.3 for the QFX Series.
mpls and rsvp options added in Junos OS Release 15.1.
Statement introduced in Junos OS Release 14.1X53-D20 for the OCX Series.
Description
Specify the protocol for a routing instance. You can configure multiple instances of many protocol types.
Not all protocols are supported on the switches. See the switch CLI.
Options
bgp—Specify BGP as the protocol for a routing instance.
ldp—Specify LDP as the protocol for a routing instance or for a virtual router instance.
msdp—Specify the Multicast Source Discovery Protocol (MSDP) for a routing instance.
mstp—Specify the Multiple Spanning Tree Protocol (MSTP) for a virtual switch routing instance.
NOTE: OSPFv3 supports the no-forwarding, virtual-router, and vrf routing instance types only.
pim—Specify the Protocol Independent Multicast (PIM) protocol for a routing instance.
ripng—Specify RIP next generation (RIPng) as the protocol for a routing instance.
rstp—Specify the Rapid Spanning Tree Protocol (RSTP) for a virtual switch routing instance.
vstp—Specify the VLAN Spanning Tree Protocol (VSTP) for a virtual switch routing instance.
RELATED DOCUMENTATION
proxy-arp
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.6 for EX Series switches.
restricted added in Junos OS Release 10.0 for EX Series switches.
Statement introduced in Junos OS Release 12.2 for the QFX Series.
Description
For Ethernet interfaces only, configure the router or switch to respond to any ARP request, as long as the
router or switch has an active route to the ARP request’s target address.
NOTE: You must configure the IP address and the inet family for the interface when you enable
proxy ARP.
Default
Proxy ARP is not enabled. The router or switch responds to an ARP request only if the destination IP
address is its own.
Options
• none—The router or switch responds to any ARP request for a local or remote address if the router or
switch has a route to the target IP address.
• restricted—(Optional) The router or switch responds to ARP requests in which the physical networks of
the source and target are different and does not respond if the source and target IP addresses are in the
same subnet. The router or switch must also have a route to the target IP address.
• unrestricted—(Optional) The router or switch responds to any ARP request for a local or remote address
if the router or switch has a route to the target IP address.
Default: unrestricted
RELATED DOCUMENTATION
qos-adjust-hierarchical
Syntax
qos-adjust-hierarchical [interface-set];
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 17.2R1.
Description
Specify that multicast QoS adjustments received on the subscriber contribute to hierarchical QoS
adjustments.
Options
interface-set—(Optional) Specify that the immediate parent interface-set receive QoS adjustments.
NOTE: For any multicast-enabled interface, only directly stacked interface-set parents are
adjusted. The following scenario is not supported: multicast-enabled client interface is stacked
over a VLAN interface and the VLAN interface in turn is stacked over and interface-set.
RELATED DOCUMENTATION
Configuring the Minimum Adjusted Shaping Rate on Scheduler Nodes for Subscribers | 168
468
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 14.2 for PTX Series Packet Transport Routers.
Description
Specify the output transmission queue to which to map all input from an associated forwarding class.
On M120, M320, MX Series, T Series routers and on EX Series switches, this statement enables you to
configure up to eight forwarding classes with one-to-one mapping to output queues. If you want to
configure up to 16 forwarding classes with multiple forwarding classes mapped to single output queues,
include the class statement instead of the queue statement at the [edit class-of-service forwarding-classes]
hierarchy level.
Options
class-name—Name of forwarding class.
RELATED DOCUMENTATION
radius {
accounting-server [ ip-address ];
attributes {
exclude
attribute-name packet-type;
standard-attribute number {
packet-type [ access-request | accounting-off | accounting-on | accounting-start | accounting-stop ];
}
vendor-id id-number {
vendor-attribute vsa-number {
packet-type [ access-request | accounting-off | accounting-on | accounting-start | accounting-stop ];
}
}
}
ignore {
dynamic-iflset-name;
framed-ip-netmask;
idle-timeout;
input-filter;
logical-system-routing-instance;
output-filter;
session-timeout;
standard-attribute number;
vendor-id id-number {
vendor-attribute vsa-number;
}
}
}
authentication-server [ ip-address ];
options {
accounting-session-id-format (decimal | description);
calling-station-id-delimiter delimiter-character;
calling-station-id-format {
agent-circuit-id;
agent-remote-id;
interface-description;
nas-identifier;
}
chap-challenge-in-request-authenticator;
client-accounting-algorithm (direct | round-robin);
client-authentication-algorithm (direct | round-robin);
470
coa-dynamic-variable-validation;
ethernet-port-type-virtual;
interface-description-format {
exclude-adapter;
exclude-channel;
exclude-sub-interface;
}
ip-address-change-notify message;
juniper-access-line-attributes;
nas-identifier identifier-value;
nas-port-extended-format {
adapter-width width;
ae-width width;
port-width width;
slot-width width;
stacked-vlan-width width;
vlan-width width;
atm {
adapter-width width;
port-width width:
slot-width width;
vci-width width:
vpi-width width;
}
}
nas-port-id-delimiter delimiter-character;
nas-port-id-format {
agent-circuit-id;
agent-remote-id;
interface-description;
interface-text-description;
nas-identifier;
order {
agent-circuit-id;
agent-remote-id;
interface-description;
interface-text-description;
nas-identifier;
postpend-vlan-tags;
}
postpend-vlan-tags;
}
471
nas-port-type {
ethernet {
port-type;
}
}
override {
calling-station-id remote-circuit-id;
nas-ip-address tunnel-client-gateway-address;
nas-port tunnel-client-nas-port;
nas-port-type tunnel-client-nas-port-type;
}
remote-circuit-id-delimiter;
remote-circuit-id-fallback;
remote-circuit-id-format {
agent-circuit-id;
agent-remote-id;
}
revert-interval interval;
service-activation {
dynamic-profile (optional-at-login | required-at-login);
extensible-service (optional-at-login | required-at-login);
}
vlan-nas-port-stacked-format;
}
preauthentication-server ip-address;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.1.
Statement introduced in Junos OS Release 9.1 for EX Series switches.
Description
Configure the RADIUS parameters that the router uses for AAA authentication and accounting for
subscribers.
472
Options
accounting-server—(MX Series only) Specify a list of the RADIUS accounting servers used for accounting
for DHCP, L2TP, and PPP clients.
Values: ip-address—IP version 4 (IPv4) address.
authentication-server—(SRX Series only) Specify a list of the RADIUS authentication servers used to
authenticate DHCP, L2TP, and PPP clients. The servers in the list are also used as RADIUS
dynamic-request servers, from which the router accepts and processes RADIUS disconnect requests,
CoA requests, and dynamic service activations and deactivations.
Values: ip-address—IPv4 address.
preauthentication-server—(MX Series only) Starting in Junos OS Release 13.3, specify the RADIUS
preauthentication server, which is used for the LLID service.
NOTE: You cannot configure this statement if the Calling-Station-ID attribute is excluded from
RADIUS Access-Request messages by the exclude statement.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
radius-server
Syntax
radius-server server-address {
accounting-port port-number;
accounting-retry number;
accounting-timeout seconds;
dynamic-request-port port-number;
max-outstanding-requests value;
port port-number;
preauthentication-port port-number;
preauthentication-secret password;
retry attempts;
routing-instance routing-instance-name;
secret password;
source-address source-address;
timeout seconds;
}
Hierarchy Level
[edit access],
[edit access profile profile-name]
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
max-outstanding-requests introduced in Junos OS Release 11.4.
accounting-retry and accounting-timeout introduced in Junos OS Release 14.1.
dynamic-request-port option added in Junos OS Release 14.2R1 for MX Series routers.
preauthentication-port and preauthentication-secret options added in Junos OS Release 15.1 for MX
Series routers.
accounting-port introduced in Junos OS Release 13.2X50-D10 for EX Series switches with support for
Enhanced Layer 2 software (ELS). It was introduced in Junos OS without ELS in the following releases:
Junos OS Releases 12.3R10, 14.1X53-D25, and 15.1R4 for EX Series switches.
Support for IPv6 server-address introduced in Junos OS Release 16.1.
Description
Configure RADIUS for subscriber access management, L2TP, or PPP.
474
To configure multiple RADIUS servers, include multiple radius-server statements. The servers are tried in
order and in a round-robin fashion until a valid response is received from one of the servers or until all the
configured retry limits are reached.
475
Options
server-address—IPv4 or IPv6 address of the RADIUS server.
accounting-port—(EX Series, M Series, MX Series, PTX Series, T Series only) Configure the port number
on which to contact the RADIUS accounting server. This statement was introduced in Junos OS Release
13.2X50-D10 for EX Series switches with support for Enhanced Layer 2 software (ELS). It was
introduced in Junos OS without ELS in the following releases: Junos OS Releases 12.3R10,
14.1X53-D25, and 15.1R4 for EX Series switches.
NOTE: Specifying the accounting port is optional, and port 1813 is the default. However, we
recommend that you configure it in order to avoid confusion, as some RADIUS servers might
refer to an older default.
Values: port-number—Port number on which to contact the RADIUS accounting server. Most RADIUS
servers use port 1813, as specified in RFC 2866.
Default: 1813
accounting-retry—(MX Series, T Series only) Starting in Junos OS Release 14.1, configure the number of
times the device retransmits RADIUS accounting messages when no response is received from the
server. When you do not configure this statement, the number of retry attempts is determined by the
retry statement.
NOTE: To successfully set a retry limit for the accounting servers different from the
authentication servers, you must configure both the accounting-retry and accounting-timeout
statements . If you configure only one of these statements, then the value you configure is
ignored in favor of the values configured with the retry and timeout statements.
NOTE: The maximum retry duration (the number of retries times the length of the timeout)
cannot exceed 2700 seconds. An error message is displayed if you configure a longer duration.
accounting-timeout—(MX Series, T Series only) Starting in Junos OS Release 14.1, configure how long the
local device waits to receive a response from a RADIUS accounting server before retransmitting the
message. When you do not configure this statement, the length of the timeout is determined by the
timeout statement.
476
NOTE: To successfully set a timeout value for the accounting servers different from the
authentication servers, you must configure both the accounting-retry and accounting-timeout
statements . If you configure only one of these statements, then the value you configure is
ignored in favor of the values configured with the retry and timeout statements.
NOTE: The maximum retry duration (the number of retries times the length of the timeout)
cannot exceed 2700 seconds. An error message is displayed if you configure a longer duration.
dynamic-request-port—(MX Series only) Starting in Junos OS Release 14.2R1, specify the port that the
router monitors for dynamic (CoA) requests from the specified RADIUS servers. You can configure a
port globally or for a specific access profile.
You must either use the default port for all RADIUS servers or configure the same nondefault port for
all RADIUS servers. This rule applies at both the global access and access profile levels.
NOTE: Any other configuration results in a commit check failure. Multiple port numbers—that
is, different port numbers for different servers—are not supported.
max-outstanding-requests—(MX Series only) Starting in Junos OS Release 11.4, configure the maximum
number of outstanding requests for this RADIUS server. An increase in this value is immediate while
a decrease is more gradual if the current number of outstanding requests exceeds the new value.
Values: requests—Maximum number of outstanding requests for this RADIUS server.
Range: 0 through 2000 outstanding requests per server
Default: 1000 outstanding requests per server
port—(EX Series, M Series, MX Series, SRX Series, T Series only) Configure the port number on which to
contact the RADIUS server.
Values: port-number—Port number on which to contact the RADIUS server.
Default: 1812 (as specified in RFC 2865)
477
preauthentication-port—(MX Series only) Starting in Junos OS Release 15.1 for MX Series routers, configure
the port number on which to contact the RADIUS server for logical line identification (LLID)
preauthentication requests. If you do not configure a separate UDP port for preauthentication purposes,
the same UDP port that you configure for authentication messages by including the port port-number
statement is used.
Values: port-number—Port number used for preauthentication requests to contact the RADIUS server.
preauthentication-secret—(MX Series only) Starting in Junos OS Release 15.1 for MX Series routers,
configure the password to use with the RADIUS server for LLID preauthentication requests. If you do
not configure a separate UDP password for preauthentication purposes, the same password that you
configure for authentication messages by including the secret password statement is used. The secret
password used by the local router must match that used by the server.
Values: password—Password to use. To include spaces enclose the character string in quotation marks.
retry—(EX Series, M Series, MX Series, PTX Series, T Series only) Specify the number of times that the
device is allowed to attempt to contact a RADIUS authentication or accounting server. You can override
the retry limit for accounting servers with the accounting-retry statement.
NOTE: To successfully set a retry limit for the accounting servers different from the
authentication servers, you must configure both the accounting-retry and accounting-timeout
statements . If you configure only one of these statements, then the value you configure is
ignored in favor of the values configured with the retry and timeout statements.
NOTE: The maximum retry duration (the number of retries times the length of the timeout)
cannot exceed 2700 seconds. An error message is displayed if you configure a longer duration.
Values: attempts—Number of times that the router is allowed to attempt to contact a RADIUS server.
Range: 1 through 100
Default: 3
routing-instance—(SRX Series, vSRX only) Configure the routing instance used to send RADIUS packets
to the RADIUS server.
Values: routing-instance-name—Routing instance name.
source-address—(SRX Series, vSRX only) Configure a source address for each configured RADIUS server.
Each RADIUS request sent to a RADIUS server uses the specified source address. Support for IPv6
source-address was introduced in Junos OS Release 16.1.
Values: source-address—Valid IPv4 or IPv6 address configured on one of the router or switch interfaces.
On M Series routers only, the source address can be an IPv6 address and the UDP source port is 514.
478
timeout—(SRX Series, vSRX only) Configure the amount of time that the local device waits to receive a
response from RADIUS authentication and accounting servers. You can override the timeout value
for accounting servers with the accounting-timeout statement.
NOTE: To successfully set a timeout value for the accounting servers different from the
authentication servers, you must configure both the accounting-retry and accounting-timeout
statements . If you configure only one of these statements, then the value you configure is
ignored in favor of the values configured with the retry and timeout statements.
NOTE: The maximum retry duration (the number of retries times the length of the timeout)
cannot exceed 2700 seconds. An error message is displayed if you configure a longer duration.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
range range-name {
high upper-limit;
low lower-limit;
prefix-length prefix-length;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0.
IPv6 support introduced in Junos OS Release 10.0.
Statement introduced in Junos OS Release 12.3 for EX Series switches.
Description
Configure a named range of IPv4 addresses or IPv6 prefixes, used within an address-assignment pool.
Options
high upper-limit—Upper limit of an address range or IPv6 prefix range.
RELATED DOCUMENTATION
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.5.
Description
Configure VLAN ranges for dynamic, auto-sensed VLANs.
Options
any—The entire VLAN range.
RELATED DOCUMENTATION
Configuring an Interface to Use the Dynamic Profile Configured to Create Single-Tag VLANs
481
rewrite-rules (Definition)
Syntax
rewrite-rules {
type rewrite-name {
import (rewrite-name | default);
forwarding-class class-name {
loss-priority level code-point [ aliases ] [ bit-patterns ];
}
}
}
Hierarchy Level
[edit class-of-service]
Release Information
Statement introduced before Junos OS Release 7.4.
ieee-802.1ad option introduced in Junos OS Release 9.2.
Description
Specify a rewrite-rules mapping for the traffic that passes through all queues on the interface.
Options
rewrite-name—Name of a rewrite-rules mapping.
type—Traffic type.
Values: dscp, dscp-ipv6, exp, ieee-802.1, ieee-802.1ad, inet-precedence, inet6-precedence
RELATED DOCUMENTATION
rewrite-rules (Interfaces)
Syntax
rewrite-rules {
dscp (rewrite-name | default) protocol (inet-both | inet-outer | mpls);
dscp-ipv6 (rewrite-name | default) protocol mpls;
exp (rewrite-name | default) protocol protocol-types;
exp-push-push-push default;
exp-swap-push-push default;
ieee-802.1 (rewrite-name | default) vlan-tag (outer | outer-and-inner);
ieee-802.1ad (rewrite-name | default) vlan-tag (outer | outer-and-inner);
inet-precedence (rewrite-name | default) protocol (inet-both | inet-outer | mpls);
}
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Associate a rewrite-rules configuration or default mapping with a specific interface.
The [edit class-of-service interfaces interface-name] hierarchy level is not supported on M Series routers.
The [edit class-of-service interfaces interface-name unit logical-unit-number] hierarchy level is not supported
on ACX Series routers.
Integrated Bridging and Routing (IRB) interfaces are used to tie together Layer 2 switched and Layer 3
routed domains on MX routers. MX routers support classifiers and rewrite rules on the IRB interface at
the [edit class-of-service interfaces irb unit logical-unit-number] level of the hierarchy. All types of
classifiers and rewrite rules are allowed, including IEEE 802.1p.
NOTE: The IRB classifiers and rewrite rules are used only for routed packets; in other words, it
is for traffic that originated in the Layer 2 domain and is then routed through IRB into the Layer
3 domain, or vice versa. Only IEEE classifiers and IEEE rewrite rules are allowed for pure Layer
2 interfaces within a bridge domain.
483
On an ACX Series router, only the outer tag is supported for dscp, inet-precedence, and ieee802.1.
On M Series routers only, if you include the control-word statement at the [edit protocols l2circuit neighbor
address interface interface-name] hierarchy level, the software cannot rewrite MPLS EXP bits.
For IQ PICs, you can configure only one IEEE 802.1 rewrite rule on a physical port. All logical ports (units)
on that physical port should apply the same IEEE 802.1 rewrite rule.
On M320 and T Series routers (except for T4000 routers with Type 5 FPCs), for a single interface, you
cannot enable a rewrite rule on a subset of forwarding classes. You must assign a rewrite rule to either
none of the forwarding classes or all of the forwarding classes. When you assign a rewrite rule to a subset
of forwarding classes, the commit does not fail, and the subset of forwarding classes works as expected.
However, the forwarding classes to which the rewrite rule is not assigned are rewritten to all zeros.
For example, if you configure a Differentiated Services code point (DSCP) rewrite rule, the bits in the
forwarding classes to which you do not assign the rewrite rule are rewritten to 000000. If you configure
an IP precedence rewrite rule, the bits in the forwarding classes to which you do not assign the rewrite
rule are rewritten to 000.
Options
rewrite-name—Name of a rewrite-rules mapping configured at the [edit class-of-service rewrite-rules]
hierarchy level.
RELATED DOCUMENTATION
Hierarchy Level
[edit],
[edit logical-systems logical-system-name]
Release Information
Statement introduced before Junos OS Release 7.4.
remote-vtep-v6-list statement introduced in Junos OS Release 17.3 for MX Series routers with MPC and
MIC interfaces.
Description
Configure an additional routing entity for a router. You can create multiple instances of BGP, IS-IS, OSPF,
OSPFv3, and RIP for a router. You can also create multiple routing instances for separating routing tables,
routing policies, and interfaces for individual wholesale subscribers (retailers) in a Layer 3 wholesale
network.
Each routing instance has a unique name and a corresponding IP unicast table. For example, if you configure
a routing instance with the name my-instance, its corresponding IP unicast table is my-instance.inet.0. All
routes for my-instance are installed into my-instance.inet.0.
Routes are installed into the default routing instance inet.0 by default, unless a routing instance is specified.
In Junos OS Release 9.0 and later, you can no longer specify a routing-instance name of master, default,
or bgp or include special characters within the name of a routing instance.
In Junos OS Release 9.6 and later, you can include a slash (/) in a routing-instance name only if a logical
system is not configured. That is, you cannot include the slash character in a routing-instance name if a
logical system other than the default is explicitly configured. Routing-instance names, further, are restricted
from having the form __.*__ (beginning and ending with underscores). The colon : character cannot be
used when multitopology routing (MTR) is enabled.
Default
485
Options
routing-instance-name——Name of the routing instance. This must be a non-reserved string of not more
than 128 characters.
RELATED DOCUMENTATION
scheduler scheduler-name;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 12.2 for ACX Series Routers.
Description
Associate a scheduler with a scheduler map.
Options
scheduler-name—Name of the scheduler configuration block.
RELATED DOCUMENTATION
Configuring Schedulers
487
scheduler-map map-name;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For Gigabit Ethernet IQ, Channelized IQ PICs, and FRF.15 and FRF.16 LSQ interfaces only, associate a
scheduler map name with an interface or with a traffic-control profile.
For channelized OC12 intelligent queuing (IQ), channelized T3 IQ, channelized E1 IQ, and Gigabit Ethernet
IQ interfaces only, you can associate a scheduler map name with a logical interface.
Options
map-name—Name of the scheduler map.
RELATED DOCUMENTATION
Configuring Schedulers
Oversubscribing Interface Bandwidth
output-traffic-control-profile | 437
488
scheduler-maps {
map-name {
forwarding-class class-name scheduler scheduler-name;
}
}
Hierarchy Level
[edit class-of-service]
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Specify a scheduler map name and associate it with the scheduler configuration and forwarding class.
Options
map-name—Name of the scheduler map.
schedulers (CoS)
Syntax
schedulers {
scheduler-name {
adjust-minimum rate;
adjust-percent percentage;
buffer-size (seconds | percent percentage | remainder | temporal microseconds);
drop-profile-map loss-priority (any | low | medium-low | medium-high | high) protocol (any | non-tcp | tcp)
drop-profile profile-name;
excess-priority [ low | medium-low | medium-high | high | none];
excess-rate (percent percentage | proportion value);
priority priority-level;
shaping-rate (percent percentage | rate);
transmit-rate (percent percentage | rate | remainder) <exact | rate-limit>;
}
}
Hierarchy Level
[edit class-of-service]
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 12.1X48 for PTX Series routers.
Description
Specify the scheduler name and parameter values.
Options
scheduler-name—Name of the scheduler to be configured.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
490
secret (RADIUS)
Syntax
secret password;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Description
Configure the password to use with the RADIUS server. The secret password used by the local router or
switch must match that used by the server.
Options
password—Password to use; it can include spaces if the character string is enclosed in quotation marks.
RELATED DOCUMENTATION
server;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.1.
Description
In a dynamic profile, configure the router to act as a PPPoE server, also known as a remote access
concentrator, when a PPPoE logical interface is dynamically created.
RELATED DOCUMENTATION
server-group
Syntax
server-group {
server-group-name {
server-ip-address;
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.3.
Support at the [edit ... dhcpv6] hierarchy levels introduced in Junos OS Release 11.4.
Statement introduced in Junos OS Release 12.1 for EX Series switches.
Description
Specify the name of a group of DHCP server addresses for use by the extended DHCP relay agent. Apply
the group with the active-server-group statement globally for all interfaces or for a named group of
interfaces configured with the group statement. This mechanism enables you to apply different DHCP
relay configurations for different groups of servers, with a common configuration for the servers within a
server group.
Options
server-group-name—Name of the group of DHCP or DHCPv6 server addresses.
server-ip-address—IP address of the DHCP server belonging to this named server group. Use IPv6 addresses
when configuring DHCPv6 support. Starting in Junos OS Release 18.4R1, you can configure up to 32
server IP addresses per group for DHCPv4 servers. In earlier releases, you can configure only up to 5
server IP addresses for DHCPv4 servers. For DHCPv6 servers, you can configure only up to 32
addresses in all releases. The configuration fails commit check if you configure more than the maximum
number of server addresses.
494
RELATED DOCUMENTATION
shaping-rate rate;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
[edit class-of-service interfaces interface-name] hierarchy level added in Junos OS Release 7.5.
Statement introduced in Junos OS Release 13.2 on PTX Series Packet Transport Routers.
Statement introduced in Junos OS Release 17.3 on PTX10008 Routers.
Description
For logical interfaces on which you configure packet scheduling, configure traffic shaping by specifying
the amount of bandwidth to be allocated to the logical interface. Applying a shaping rate can help ensure
that higher-priority services do not starve lower-priority services.
For physical interfaces, configure traffic shaping based on the rate-limited bandwidth of the total interface
bandwidth.
Logical and physical interface traffic shaping rates are mutually exclusive. This means you can include the
shaping-rate statement at the [edit class-of-service interfaces interface-name] hierarchy level or at the
[edit class-of-service interfaces interface-name unit logical-unit-number] hierarchy level, but not at both.
NOTE: For MX Series routers and for EX Series switches, the shaping rate value for the physical
interface at the [edit class-of-service interfaces interface-name] hierarchy level must be a minimum
of 160 Kbps. If the value is less than the sum of the logical interface guaranteed rates, you cannot
apply the shaping rate to a physical interface.
For PTX Series routers, the shaping rate value for the physical interface at the [edit
class-of-service interfaces interface-name] hierarchy level must be a minimum of 1 Gbps and an
incremental granularity of 0.1 percent of the physical interface speed after that (for example,
10 Mbps increments on a 10 Gbps interface).
For T4000 routers with Type 5 FPCs, the shaping rate value for the physical interface must be
a minimum of 292 Kbps. The maximum value of shaping-rate is limited by the maximum
transmission rate of the interface.
496
Alternatively, you can configure a shaping rate for a 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.
For FRF.15 and FRF.16 bundles on link services interfaces, only shaping rates based on percentage are
supported.
Default
If you do not include this statement at the [edit class-of-service interfaces interface-name unit
logical-unit-number] hierarchy level, the default logical interface bandwidth is the average of unused
bandwidth for the number of logical interfaces that require default bandwidth treatment. If you do not
include this statement at the [edit class-of-service interfaces interface-name] hierarchy level, the default
physical interface bandwidth is the average of unused bandwidth for the number of physical interfaces
that require default bandwidth treatment.
Options
rate—Peak rate, in bits per second (bps). You can specify a value in bits per second 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).
Range: 1000 through 6,400,000,000,000 bps.
NOTE: Through Junos OS Release 13.3, the upper limit is 160,000,000,000 bps. Beginning
with Junos OS Release 14.1, the upper limit is 6,400,000,000,000 bps.
NOTE: For all MX Series and EX Series interfaces, the rate can be from 65,535
to 6,400,000,000,000 bps.
For all PTX Series interfaces, the rate can be from 1,000,000,000 to 160,000,000,000 bps in
increments of 0.1 percent of the interface speed.
RELATED DOCUMENTATION
shaping-rate (Schedulers)
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
The burst-size option added for MIC and MPC interfaces on MX Series routers in Junos OS Release 11.4.
Statement introduced in Junos OS Release 12.2 for ACX Series Routers.
Description
Define a limit on excess bandwidth usage for a forwarding class/queue.
The transmit-rate statement at the [edit class-of-service schedulers scheduler-name] hierarchy level
configures the minimum bandwidth allocated to a queue. The transmission bandwidth can be configured
as an exact value or allowed to exceed the configured rate if additional bandwidth is available from other
queues.
Configure the shaping rate as an absolute maximum usage and not the additional usage beyond the
configured transmit rate.
Default
If you do not include this statement, the default shaping rate is 100 percent, which is the same as no
shaping at all.
Options
percent percentage—Shaping rate as a percentage of the available interface bandwidth.
Range: 0 through 100 percent
499
NOTE: If you configure a shaping rate as a percent in a scheduler, the effective shaping rate is
calculated based on the following hierarchy:
With SRX300, SRX320, SRX340, SRX345, SRX550m, SRX1500, and vSRX2.0 devices, you can
configure both logical interface shaping rates and physical interface shaping rates on the same
physical interface. On all other models, you can only configure one or the other on a particular
physical interface.
rate—Peak rate, in bits per second (bps). You can specify a value in bits per second 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).
Range: 3200 through 6,400,000,000,000 bps
NOTE: Through Junos OS Release 13.3, the upper limit is 160,000,000,000 bps. Beginning with
Junos OS Release 14.1, the upper limit is 6,400,000,000,000 bps.
burst-size bytes—Maximum burst size, in bytes. The burst value determines the number of rate credits
that can accrue when the queue or scheduler node is held in the inactive round robin.
Range: 0 through 1,000,000,000
RELATED DOCUMENTATION
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.6.
Option burst-size introduced for Enhanced Queuing (EQ) DPC interfaces on MX Series routers in Junos
OS Release 9.4.
Option burst-size option introduced for MIC and MPC interfaces on MX Series routers in Junos OS Release
11.4.
NOTE: Option burst-size is not supported on MPC5 interfaces. The burst-size configuration is
allowed on these interfaces, but does not take effect.
Option burst-size introduced for IQ2 and IQ2E interfaces in Junos OS Release 12.3.
Statement introduced for PTX Series Packet Transport Routers in Junos OS Release 16.1. PTX Series
Packet Transport Routers do not support the burst-size option or defining the shaping-rate as a percentage.
Description
For Gigabit Ethernet IQ, Channelized IQ PIC, FRF.15 and FRF.16 LSQ interfaces, and for EQ DPC, MIC,
and MPC interfaces on MX Series routers, configure a shaping rate for a logical interface. You can also
configure an optional burst size for a logical interface on EQ DPC interfaces and on IQ2 and IQ2E PIC
interfaces. This can help to ensure that higher-priority services do not starve lower-priority services.
For physical interfaces on T4000 router interfaces on Type 5 FPCs and on PTX Series routers, configure
traffic shaping rate.
The sum of the shaping rates for all logical interfaces on the physical interface can exceed the physical
interface bandwidth. This practice is known as oversubscription of the peak information rate (PIR).
Default
The default behavior depends on various factors. For more information, see Bandwidth and Delay Buffer
Allocations by Configuration Scenario.
Options
percent percentage—For LSQ interfaces, shaping rate as a percentage of the available interface bandwidth.
501
rate—For IQ and IQ2 interfaces, and T4000 routers with Type 5 FPCs, peak shaping rate, in bits per second
(bps). You can specify a value in bits per second 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).
Range:
• IQ and IQ2 interfaces—1000 through 6,400,000,000,000 bps
NOTE: Through Junos OS Release 13.3, the upper limit is 160,000,000,000 bps. Beginning with
Junos OS Release 14.1, the upper limit is 6,400,000,000,000 bps.
• T4000 routers with Type 5 FPCs—The shaping rate value for the physical interface must be a minimum of
292 Kbps. The maximum value of shaping-rate is limited by the maximum transmission rate of the
interface.
RELATED DOCUMENTATION
shaping-rate-excess-high
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.1.
percent option added in Junos OS Release 19.3R1.
Description
For MIC and MPC interfaces on MX Series routers, configure a shaping rate and optional burst size for
high-priority excess traffic. This can help to make sure higher priority services do not starve lower priority
services.
NOTE: Option burst-size is not supported on MPC5 interfaces. The burst-size configuration is
allowed on these interfaces, but does not take effect.
Default
If you do not include this statement, the default shaping rate for this priority is determined by the
shaping-rate statement in the traffic control profile.
Options
percent percentage—Specify the shaping rate as a percentage of the overall shaping rate.
Range: 1 through 100
rate—Peak rate, in bits per second (bps). You can specify a value in bits per second 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).
Range: 1000 through 6,400,000,000,000
NOTE: Through Junos OS Release 13.3, the upper limit is 160,000,000,000 bps. Beginning with
Junos OS Release 14.1, the upper limit is 6,400,000,000,000 bps.
503
Default: None
RELATED DOCUMENTATION
shaping-rate-excess-low
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.1.
percent option added in Junos OS Release 19.3R1.
Description
For MIC and MPC interfaces on MX Series routers, configure a shaping rate and optional burst size for
low-priority excess traffic. This can help to make sure higher priority services do not starve lower priority
services.
NOTE: Option burst-size is not supported on MPC5 interfaces. The burst-size configuration is
allowed on these interfaces, but does not take effect.
Default
If you do not include this statement, the default shaping rate for this priority is determined by the
shaping-rate statement in the traffic control profile.
Options
percent percentage—Specify the shaping rate as a percentage of the overall shaping rate.
Range: 1 through 100
rate—Peak rate, in bits per second (bps). You can specify a value in bits per second 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).
Range: 1000 through 6,400,000,000,000
NOTE: Through Junos OS Release 13.3, the upper limit is 160,000,000,000 bps. Beginning with
Junos OS Release 14.1, the upper limit is 6,400,000,000,000 bps.
505
Default: None
RELATED DOCUMENTATION
shaping-rate-priority-high
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.1.
percent option added in Junos OS Release 19.3R1.
Description
For MIC and MPC interfaces on MX Series routers, configure a shaping rate and optional burst size for
high priority traffic. This can help to make sure higher priority services do not starve lower priority services.
NOTE: Option burst-size is not supported on MPC5 interfaces. The burst-size configuration is
allowed on these interfaces, but does not take effect.
Default
If you do not include this statement, the default shaping rate for this priority is determined by the
shaping-rate statement in the traffic control profile.
Options
percent percentage—Specify the shaping rate as a percentage of the overall shaping rate.
Range: 1 through 100
rate—Peak rate, in bits per second (bps). You can specify a value in bits per second 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).
Range: 1000 through 6,400,000,000,000
NOTE: Through Junos OS Release 13.3, the upper limit is 160,000,000,000 bps. Beginning with
Junos OS Release 14.1, the upper limit is 6,400,000,000,000 bps.
Default: None
507
RELATED DOCUMENTATION
shaping-rate-priority-low
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.1.
percent option added in Junos OS Release 19.3R1.
Description
For MIC and MPC interfaces on MX Series routers, configure a shaping rate and optional burst size for
low priority traffic. This can help to make sure higher priority services do not starve lower priority services.
NOTE: Option burst-size is not supported on MPC5 interfaces. The burst-size configuration is
allowed on these interfaces, but does not take effect.
Default
If you do not include this statement, the default shaping rate for this priority is determined by the
shaping-rate statement in the traffic control profile.
Options
percent percentage—Specify the shaping rate as a percentage of the overall shaping rate.
Range: 1 through 100
rate—Peak rate, in bits per second (bps). You can specify a value in bits per second 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).
Range: 1000 through 6,400,000,000,000
NOTE: Through Junos OS Release 13.3, the upper limit is 160,000,000,000 bps. Beginning with
Junos OS Release 14.1, the upper limit is 6,400,000,000,000 bps.
Default: None
509
RELATED DOCUMENTATION
shaping-rate-priority-medium
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.1.
percent option added in Junos OS Release 19.3R1.
Description
For MIC and MPC interfaces on MX Series routers, configure a shaping rate and optional burst size for
medium priority traffic. This can help to make sure higher priority services do not starve lower priority
services.
NOTE: Option burst-size is not supported on MPC5 interfaces. The burst-size configuration is
allowed on these interfaces, but does not take effect.
Default
If you do not include this statement, the default shaping rate for this priority is determined by the
shaping-rate statement in the traffic control profile.
Options
percent percentage—Specify the shaping rate as a percentage of the overall shaping rate.
Range: 1 through 100
rate—Peak rate, in bits per second (bps). You can specify a value in bits per second 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).
Range: 1000 through 6,400,000,000,000
NOTE: Through Junos OS Release 13.3, the upper limit is 160,000,000,000 bps. Beginning with
Junos OS Release 14.1, the upper limit is 6,400,000,000,000 bps.
511
Default: None
RELATED DOCUMENTATION
shared-bandwidth-policer (Configuring)
Syntax
shared-bandwidth-policer;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 11.2.
Support for MX Series MPC and MIC interfaces added in Junos OS Release 12.1.
Statement introduced in Junos OS Release 12.3R2 for EX Series switches.
Description
Policer instances share bandwidth. This enables configuration of interface-specific policers applied on an
aggregated Ethernet bundle or an aggregated SONET bundle to match the effective bandwidth and
burst-size to user-configured values. This feature is supported on the following platforms: T Series routers,
M120, M10i, M7i (CFEB-E only), M320 (SFPC only), MX240, MX480, and MX960 with DPC, MIC, and
MPC interfaces and EX Series switches.
RELATED DOCUMENTATION
shared-instance
Syntax
shared-instance instance-name;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.6.
Description
For Gigabit Ethernet IQ2 and IQ2E PICs only, apply a shared traffic scheduling and shaping profile to the
logical interface.
Options
instance-name—Name of the shared scheduler and shaper to be applied to this interface
RELATED DOCUMENTATION
shared-scheduler
Syntax
shared-scheduler;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.6.
Description
For Gigabit Ethernet IQ2 PICs only, enable shared schedulers and shapers on this interface. This statement
and the per-unit-scheduler statement are mutually exclusive. Even so, you can configure one logical
interface for each shared instance. This effectively provides the functionality of per-unit scheduling.
For Gigabit Ethernet IQ2 and Ethernet Enhanced IQ2 (IQ2E) PICs on M320 routers, enable shared schedulers
on aggregated Ethernet interfaces in link protection mode.
RELATED DOCUMENTATION
simple-filter {
input filter-name;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.6.
Description
Apply a simple filter to an interface. You can apply simple filters to the family inet only, and only in the
input direction.
Options
input filter-name—Name of one filter to evaluate when packets are received on the interface.
RELATED DOCUMENTATION
simple-filter
Syntax
simple-filter filter-name {
term term-name {
from {
match-conditions;
}
then {
forwarding-class class-name;
loss-priority (high | low | medium);
}
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.6.
Logical systems support introduced in Junos OS Release 9.3.
Statement introduced in Junos OS Release 12.3R2 for EX Series switches.
Description
Configure simple filters.
Options
filter-name—Name that identifies the simple filter. The name must be a non-reserved string of not more
than 64 characters. No special characters are restricted. To include spaces in the name, enclose them
in quotation marks (“ ”).
from—Match packet fields to values. If the from option is not included, all packets are considered to match
and the actions and action modifiers in the then statement are taken.
term term-name—Define a simple-filter term. The name that identifies the term can contain letters, numbers,
and hyphens (-), and can be up to 255 characters long. To include spaces in the name, enclose them
in quotation marks (“ ”).
517
then—Actions to take on matching packets. If the then option is not included and a packet matches all the
conditions in the from statement, the packet is accepted.
NOTE: Only forwarding-class and loss-priority are valid actions in a simple filter configuration.
RELATED DOCUMENTATION
site-identifier (VPLS)
Syntax
site-identifier identifier;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Specify the numerical identifier for the local VPLS site.
Options
identifier—Specify the numerical identifier for the local VPLS site. The identifier must be an unsigned 16-bit
number greater than zero.
RELATED DOCUMENTATION
stacked-interface-set {
interface-set-name interface-set-name {
interface-set-name interface-set-name;
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 18.4R1.
Description
For MX Series routers with MPCs that support 5-level hierarchical scheduling, define an interface set over
interface set hierarchy. The child interface set (L3) contains subscriber logical interfaces, and the parent
interface set (L2) contains one or more interface sets as members.
NOTE: For both interface-sets in the stack (at L3 and L2), a CoS traffic-control-profile (TCP)
must be assigned to each.
Options
interface-set-name—Name of the interface set to be configured or one of the following Junos OS predefined
variables:
RELATED DOCUMENTATION
stacked-vlan-tagging
Syntax
stacked-vlan-tagging;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 12.2 for ACX Series Universal Metro Routers.
Description
For Gigabit Ethernet IQ interfaces, Gigabit Ethernet, 10-Gigabit Ethernet LAN/WAN PIC, and 100-Gigabit
Ethernet Type 5 PIC with CFP, enable stacked VLAN tagging for all logical interfaces on the physical
interface.
For pseudowire subscriber interfaces, enable stacked VLAN tagging for logical interfaces on the pseudowire
service.
RELATED DOCUMENTATION
term term-name {
from {
match-conditions;
}
then {
forwarding-class class-name;
loss-priority (high | low | medium);
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.6.
Description
Define a simple filter term.
Options
from—Match packet fields to values. If the from option is not included, all packets are considered to match
and the actions and action modifiers in the then statement are taken.
term-name—Name that identifies the term. The name can contain letters, numbers, and hyphens (-), and
can be up to 255 characters long. To include spaces in the name, enclose it in quotation marks (“ ”).
then—Actions to take on matching packets. If the then option is not included and a packet matches all the
conditions in the from statement, the packet is accepted. For CoS, only the actions listed are allowed.
These statements are explained separately.
RELATED DOCUMENTATION
523
Multifield Classification
Simple Filter Overview
Firewall Filter Match Conditions for IPv4 Traffic
Firewall Filter Match Conditions for IPv6 Traffic
524
three-color-policer (Applying)
Syntax
three-color-policer {
(single-rate | two-rate) policer-name;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 7.4.
single-rate statement added in Junos OS Release 8.2.
Logical systems support introduced in Junos OS Release 9.3.
Statement introduced in Junos OS Release 12.3R2 for EX Series switches.
Description
Apply a tricolor marking policer.
Options
single-rate—Named tricolor policer is a single-rate policer.
RELATED DOCUMENTATION
three-color-policer (Configuring)
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
The action and single-rate statements added in Junos OS Release 8.2.
Logical systems support introduced in Junos OS Release 9.3.
Support at the [edit dynamic-profiles ... firewall] hierarchy level introduced in Junos OS Release 11.4.
Description
Configure a three-color policer in static firewall filters or dynamic firewall filters in a dynamic client profile
or a dynamic service profile.
Options
526
policer-name—Name of the three-color policer. Reference this name when you apply the policer to an
interface.
uid—When you configure a policer at the [edit dynamic-profiles] hierarchy level, you must assign a variable
UID as the policer name.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
traffic-control-profiles
Syntax
EX Series (Except EX4600), M Series, MX Series, PTX Series, T Series
traffic-control-profiles profile-name {
adjust-minimum rate;
atm-service (cbr | rtvbr | nrtvbr);
delay-buffer-rate (percent percentage | rate);
excess-rate (percent percentage | proportion value );
excess-rate-high (percent percentage | proportion value);
excess-rate-low (percent percentage | proportion value);
guaranteed-rate (percent percentage | rate) <burst-size bytes>;
max-burst-size cells;
overhead-accounting (frame-mode | cell-mode | frame-mode-bytes | cell-mode-bytes) <bytes
(byte-value)>;
peak-rate rate;
scheduler-map map-name;
shaping-rate (percent percentage | rate) <burst-size bytes>;
shaping-rate-excess-high (percent percentage | rate) <burst-size bytes>;
shaping-rate-excess-medium-high (percent percentage | rate) <burst-size bytes>;
shaping-rate-excess-medium-low (percent percentage | rate) <burst-size bytes>;
shaping-rate-excess-low (percent percentage | rate) <burst-size bytes>;
shaping-rate-priority-high (percent percentage | rate) <burst-size bytes>;
shaping-rate-priority-low (percent percentage | rate) <burst-size bytes>;
shaping-rate-priority-medium (percent percentage | rate) <burst-size bytes>;
shaping-rate-priority-medium-low (percent percentage | rate) <burst-size bytes>;
shaping-rate-priority-strict-high (percent percentage | rate) <burst-size bytes>;
strict-priority-scheduler;
sustained-rate rate;
}
traffic-control-profiles profile-name {
guaranteed-rate (rate| percent percentage);
scheduler-map map-name;
shaping-rate (rate| percent percentage);
}
528
ACX Series
traffic-control-profiles profile-name {
atm-service (cbr | nrtvbr | rtvbr);
delay-buffer-rate cps;
max-burst-size max-burst-size;
peak-rate peak-rate;
sustained-rate sustained-rate;
}
Hierarchy Level
[edit class-of-service]
Release Information
Statement was introduced in Junos OS Release 7.6 (EX series, M series, MX series, T series, and PTX series
devices).
Statement was introduced in Junos OS Release 11.1 for the QFX Series.
Statement was introduced in Junos OS Release 12.3 for ACX series routers.
Statement was introduced in Junos OS Release 14.1X53-D20 for the OCX Series.
Description
ACX Series Routers
NOTE: For CoS on ACX6360-OR, see the documentation for the PTX1000.
EX Series (Except EX4600), M Series, MX Series, T Series, and PTX Series Routers
For Gigabit Ethernet IQ, Channelized IQ PICs, FRF.15 and FRF.16 LSQ interfaces, Enhanced Queuing (EQ)
DPCs, and PTX Series routers only, configure traffic shaping and scheduling profiles. For Enhanced EQ
PICs, EQ DPCs, and PTX Series routers only, you can include the excess-rate statement.
Configure traffic shaping and scheduling profiles for forwarding class sets (priority groups) to implement
enhanced transmission selection (ETS) or for logical interfaces.
529
Options
profile-name—Name of the traffic-control profile. This name is also used to specify an output traffic control
profile.
The remaining statements are explained separately. See CLI Explorer or click a linked statement in the
Syntax section for details.
RELATED DOCUMENTATION
traffic-manager
List of Syntax
Syntax (MX Series, PTX Series) Configure Queue Monitoring on page 530
Syntax (MX Series, T Series) on page 530
Syntax (M Series) on page 531
Syntax (QFX Series) on page 531
Syntax (vSRX) on page 532
traffic-manager {
egress-shaping-overhead number;
ingress-shaping-overhead number;
mode {
egress-only;
ingress-and-egress;
session-shaping;
}
enhanced-priority-mode;
no-enhanced-priority-mode;
packet-timestamp {
enable;
}
queue-threshold {
fabric-queue {
priority high/low {
threshold threshold-percentage;
}
}
wan-queue {
priority high/medium-high/medium-low/low {
threshold threshold-percentage;
}
}
}
}
traffic-manager {
egress-shaping-overhead number;
ingress-shaping-overhead number;
mode {
531
egress-only;
ingress-and-egress;
}
}
Syntax (M Series)
traffic-manager {
egress-shaping-overhead number;
ingress-shaping-overhead number;
mode {
egress-only;
ingress-and-egress;
session-shaping;
}
}
traffic-manager {
buffer-monitor-enable;
packet-timestamp {
enable;
}
queue-threshold {
fabric-queue {
priority high/low {
threshold threshold-percentage;
}
}
wan-queue {
priority high/medium-high/medium-low/low {
threshold threshold-percentage;
}
}
}
}
532
Syntax (vSRX)
traffic-manager {
egress-shaping-overhead number;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.3.
Description
Enable CoS queuing, scheduling, and shaping on an L2TP session.
Options
buffer-monitor-enable—QFX5000 Series only. Enable port buffer monitoring. Buffer utilization data is
collected in one-second intervals and compared with the data from the previous interval. The larger value
is kept to keep track of peak buffer occupancy for each queue or priority group.
queue-threshold—Enable monitoring of Fabric and WAN queues. When the fabric-queue statement is
configured, an SNMP trap is generated whenever the fabric power utilization exceeds the configured
threshold value.
When wan-queue is configured, an SNMP trap is generated whenever the WAN queue depth exceeds
the configured threshold value.
For vSRX, replace number with a value from -62 through 192 bytes.
NOTE: The L2 headers (DA/SA + VLAN tags) are automatically a part of the shaping calculation.
ingress-shaping-overhead number—When L2TP session shaping is configured, the number of CoS shaping
overhead bytes to add to the packets on the ingress side of the L2TP tunnel to determine the shaped
session packet length.
When session shaping is not configured and traffic management (queueing and scheduling) is configured
on the ingress side, the number of CoS shaping overhead bytes to add to the packets on the ingress
interface.
mode—Configure CoS traffic manager mode of operation. This option has the following suboptions:
• egress-only—Enable CoS queuing and scheduling on the egress side for the PIC that houses the interface.
This is the default mode for an Enhanced Queueing (EQ) DPC on MX Series routers.
NOTE: If ingress packet drops are observed at a high rate for an IQ2 or IQ2E PIC, configure
the traffic-manager statement to work in the egress-only mode.
• ingress-and-egress—Enable CoS queueing and scheduling on both the egress and ingress sides for the
PIC. This is the default mode for IQ2 and IQ2E PICs on M Series and T Series routers.
534
NOTE:
• For EQ DPCs, you must configure the traffic-manager statement with ingress-and-egress
mode to enable ingress CoS on the EQ DPC.
• EQ DPCs have 250 ms of buffering, with only egress queueing (default mode). When
ingress-and-egress is configured, the buffer is partitioned as 50 ms for the ingress direction
and 200 ms for the egress direction.
• session-shaping—(M Series routers only) Configure the IQ2 PIC mode for session-aware traffic shaping
to enable L2TP session shaping.
enhanced-priority-mode—Enable the enhanced priority mode. When you enable the enhanced priority
mode, the scheduler supports four additional per-priority shaping rates and two additional excess priorities
at the interface and interface set level. The four additional per-priority shaping rates are: Guaranteed
Strict-high, Guaranteed Medium-low, Excess medium-high, and Excess medium-low. The two additional
excess priorities are: Excess-rate Medium- high and Excess-rate Medium-low. This is the default mode for
PTX Series routers.
no-enhanced-priority-mode—Disable the enhanced priority mode. This is the default mode for MX Series
routers.
NOTE: The line card reboots when you enable or disable the enhanced priority mode feature.
RELATED DOCUMENTATION
transmit-rate (Schedulers)
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
rate-limit option introduced in Junos OS Release 8.3. Applied to the Multiservices PICs in Junos OS Release
9.4.
Statement introduced in Junos OS Release 12.1X48 for PTX Series routers.
Statement introduced in Junos OS Release 12.2 for ACX Series routers.
Description
Specify the transmit rate or percentage for a scheduler.
Default
If you do not include this statement, the default scheduler transmission rate and buffer size percentages
for queues 0 through 7 are 95, 0, 0, 5, 0, 0, 0, and 0 percent, respectively.
Options
exact—(Optional) Enforce the exact transmission rate. Under sustained congestion, a rate-controlled queue
that goes into negative credit fills up and eventually drops packets. This value should never exceed the
rate-controlled amount. For PTX Series routers, this option is allowed only on the non-strict-high (high,
medium-high, medium-low, or low) queues.
percent percentage—Percentage of transmission capacity. A percentage of zero drops all packets in the
queue unless additional bandwidth is available from other queues.
Range: 0 through 100 percent for M, MX and T Series routers and EX Series switches; 1 through 100 percent
for PTX Series routers; 0 through 200 percent for the SONET/SDH OC48/STM16 IQE PIC
536
NOTE:
• On M Series Multiservice Edge Routers, for interfaces configured on 4-port E1 and 4-port T1
PICs only, you can configure a percentage value only from 11 through 100. These two PICs
do not support transmission rates less than 11 percent.
• The configuration of the transmit-rate percent 0 exact statement at the [edit class-of-service
schedules scheduler-name] hierarchy is ineffective on T4000 routers with Type 5 FPC.
• On MIC and MPC interfaces on MX Series routers, when the transmit rate is configured as a
percentage and exact or rate-limit is enabled on a queue, the shaping rate of the parent node
is used to compute the transmit rate. If exact or rate-limit is not configured, the guaranteed
rate of the parent node is used to compute the transmit rate.
• On PTX Series routers, unconfigured interfaces are equivalent to percent 0. This means the
system offers no guaranteed rate on the interface, and the queue will always be scheduled in
the excess priority.
rate—Transmission rate, in bps. You can specify a value in bits per second 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).
Range: 3200 through 6,400,000,000,000 bps
NOTE: For all MX Series interfaces, the rate can be from 65,535 through 6,400,000,000,000 bps.
rate-limit—(Optional) Limit the transmission rate to the rate-controlled amount by applying a policing
action to the queue. Packets are hard-dropped when traffic exceeds the specified maximum transmission
rate.
NOTE: For PTX Series routers, this option is allowed only on the strict-high queue. We
recommend that you configure rate limit on strict-high queues because the other queues may
not meet their guaranteed bandwidths. The rate-limit option cannot rate limit the queue if
strict-priority scheduling is configured with the strict-priority-scheduler statement.
NOTE: The configuration of the rate-limit statement is supported on T4000 routers only with
a Type 5 FPC.
RELATED DOCUMENTATION
Configuring Schedulers
Configuring Scheduler Transmission Rate
Understanding Scheduling on PTX Series Routers
transparent
Syntax
transparent;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 11.2
Description
Packet classification based on the transparent VLAN tag.
underlying-interface (demux0)
Syntax
underlying-interface underlying-interface-name;
Hierarchy Level
[edit dynamic-profiles profile-name interfaces demux0 interface-name unit unit logical-unit-number demux-options]
Release Information
Statement introduced in Junos OS Release 9.3.
Support for aggregated Ethernet introduced in Junos OS Release 9.4.
Description
Configure the underlying interface on which the demultiplexing (demux) interface is running.
CAUTION: Before you make any changes to the underlying interface for a demux0
interface, you must ensure that no subscribers are currently present on that underlying
interface. If any subscribers are present, you must remove them before you make
changes.
Options
underlying-interface-name—Either the specific name of the interface on which the DHCP discover packet
arrives or one of the following interface variables:
The variable is used to specify the underlying interface when a new demux interface is dynamically created.
The variable is dynamically replaced with the underlying interface that DHCP supplies when the subscriber
logs in.
NOTE: Logical demux interfaces are currently supported on Gigabit Ethernet, Fast Ethernet,
10-Gigabit Ethernet, or aggregated Ethernet interfaces.
RELATED DOCUMENTATION
underlying-interface interface-name;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.1.
Description
In a dynamic profile, configure the underlying interface on which the router creates the dynamic PPPoE
logical interface.
Options
interface-name—Variable used to specify the name of the underlying interface on which the PPPoE logical
interface is dynamically created. In the underlying-interface interface-name statement for dynamic PPPoE
logical interfaces, you must use the predefined variable $junos-underlying-interface in place of
interface-name. When the router creates the dynamic PPPoE interface, the $junos-underlying-interface
predefined variable is dynamically replaced with the name of the underlying interface supplied by the
network when the subscriber logs in.
RELATED DOCUMENTATION
unit
Syntax
unit logical-unit-number {
classifiers {
type (classifier-name | default) family (mpls | all);
}
forwarding-class class-name;
fragmentation-map map-name;
input-traffic-control-profile profile-name shared-instance instance-name;
output-traffic-control-profile profile-name shared-instance instance-name;
per-session-scheduler;
rewrite-rules {
dscp (rewrite-name | default);
dscp-ipv6 (rewrite-name | default);
exp (rewrite-name | default)protocol protocol-types;
exp-push-push-push default;
exp-swap-push-push default;
ieee-802.1 (rewrite-name | default) vlan-tag (outer | outer-and-inner);
inet-precedence (rewrite-name | default);
}
scheduler-map map-name;
shaping-rate rate;
}
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
Configure a logical interface on the physical device. You must configure a logical interface to be able to
use the physical device.
Options
logical-unit-number—Number of the logical unit.
Range: 0 through 16,384
RELATED DOCUMENTATION
unit logical-unit-number {
demux-options {
underlying-interface interface-name
}
family family {
access-concentrator name;
address address;
demux-source {
source-address;
}
direct-connect;
duplicate-protection;
dynamic-profile profile-name;
filter {
input filter-name;
output filter-name;
}
mac-validate (loose | strict):
max-sessions number;
max-sessions-vsa-ignore;
rpf-check {
fail-filter filter-name;
mode loose;
}
service-name-table table-name;
short-cycle-protection <lockout-time-min minimum-seconds lockout-time-max maximum-seconds>;
unnumbered-address interface-name <preferred-source-address address>;
}
filter {
input filter-name;
output filter-name;
}
}
vlan-id number;
Hierarchy Level
Release Information
544
Description
Configure a dynamic logical interface on the physical device. You must configure a logical interface to be
able to use the physical device.
Options
logical-unit-number—Either the specific unit number of the interface or the unit number variable
($junos-interface-unit). The variable is used to specify the unit of the interface when a new demux interface
is dynamically created. The static unit number variable is dynamically replaced with the unit number that
DHCP supplies when the subscriber logs in.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
unit logical-unit-number {
keepalives interval seconds;
no-keepalives;
pppoe-options {
underlying-interface interface-name;
server;
}
ppp-options {
aaa-options aaa-options-name;
authentication [ authentication-protocols ];
mru size;
mtu (size | use-lower-layer);
chap {
challenge-length minimum minimum-length maximum maximum-length;
}
ignore-magic-number-mismatch;
initiate-ncp (ip | ipv6 | dual-stack-passive)
ipcp-suggest-dns-option;
mru size;
mtu (size | use-lower-layer);
on-demand-ip-address;
pap;
peer-ip-address-optional;
}
family inet {
unnumbered-address interface-name;
address address;
service {
input {
service-set service-set-name {
service-filter filter-name;
}
post-service-filter filter-name;
}
output {
service-set service-set-name {
service-filter filter-name;
}
}
}
filter {
546
input filter-name {
precedence precedence;
}
output filter-name {
precedence precedence;
}
}
}
filter {
input filter-name;
output filter-name;
}
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.1.
Description
In a dynamic profile, configure a logical unit number for the dynamic PPPoE logical interface. You must
configure a logical interface to be able to use the router.
Options
logical-unit-number—Variable used to specify the unit number when the PPPoE logical interface is
dynamically created. In the unit logical-unit-number statement for dynamic PPPoE logical interfaces, you
must use the predefined variable $junos-interface-unit in place of logical-unit-number. The
$junos-interface-unit predefined variable is dynamically replaced with the unit number supplied by the
router when the subscriber logs in.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
unnumbered-address interface-name;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 10.1.
Description
For dynamic PPPoE interfaces, enable the local address to be derived from the specified interface.
Configuring unnumbered Ethernet interfaces enables IP processing on the interface without assigning an
explicit IP address to the interface.
Options
interface-name—Interface from which the local address is derived. The interface name must include a
logical unit number and must have a configured address.
RELATED DOCUMENTATION
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.2.
Support for the $junos-preferred-source-address and $junos-preferred-source-ipv6-address predefined
variables introduced in Junos OS Release 9.6.
Support for the $junos-loopback-interface predefined variable introduced in Junos OS Release 9.6.
Description
For Ethernet interfaces, enable the local address to be derived from the specified interface. Configuring
unnumbered Ethernet interfaces enables IP processing on the interface without assigning an explicit IP
address to the interface. To configure unnumbered address dynamically, include the
$junos-loopback-interface-address predefined variable.
You can configure unnumbered address support on Ethernet interfaces for IPv4 and IPv6 address families.
Options
interface-name—Name of the interface from which the local address is derived. The specified interface
must have a logical unit number, a configured IP address, and must not be an unnumbered interface. This
value can be a specific interface name or the $junos-loopback-interface predefined variable.
When defining the unnumbered-address statement using a static interface, keep the following in mind:
• If you choose to include the routing-instance statement at the [edit dynamic-profiles] hierarchy level,
that statement must be configured with a dynamic value by using the $junos-routing-instance predefined
variable. In addition, whatever static unnumbered interface you specify must belong to that routing
instance; otherwise, the profile instantiation fails.
• If you choose to not include the routing-instance statement at the [edit dynamic-profiles] hierarchy
level, the unnumbered-address statement uses the default routing instance. The use of the default
routing instance requires that the unnumbered interface be configured statically and that it reside in the
default routing instance.
549
NOTE: When you specify a static logical interface for the unnumbered interface in a dynamic
profile that includes the $junos-routing-instance predefined variable, you must not configure a
preferred source address, whether with the $junos-preferred-source-address predefined variable,
the $junos-preferred-source-ipv6-address predefined variable, or the preferred-source-address
statement. Configuring the preferred source address in this circumstance causes a commit failure.
• To use the $junos-loopback-interface predefined variable, the dynamic profile must also contain the
routing-instance statement configured with the $junos-routing-instance predefined variable at the [edit
dynamic-profiles] hierarchy level.
• The applied loopback interface is based on the dynamically obtained routing instance of the subscriber.
address—(Optional) Secondary IP address of the donor interface. Configuring the preferred source address
enables you to use an IP address other than the primary IP address on some of the unnumbered Ethernet
interfaces in your network. This value can be a static IP address, the $junos-preferred-source-address
predefined variable for the inet family, or the $junos-preferred-source-ipv6-address predefined variable
for the inet6 family.
When defining the preferred-source-address value using a static IP address, keep the following in mind:
• The IP address specified as the preferred-source-address must be configured in the specified unnumbered
interface.
• You must configure the unnumbered-address statement using the $junos-loopback-interface predefined
variable.
• You must configure the routing-instance statement using the $junos-routing-instance predefined variable
at the [edit dynamic-profiles] hierarchy level.
• The preferred source address chosen is based on the dynamically applied loopback address which is in
turn derived from the dynamically obtained routing instance of the subscriber. The configured loopback
address with the closest network match to the user IP address is selected as the preferred source address.
RELATED DOCUMENTATION
unnumbered-address (Ethernet)
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.2.
preferred-source-address option introduced in Junos OS Release 9.0.
Description
For Ethernet interfaces, enable the local address to be derived from the specified interface. Configuring
an unnumbered Ethernet interface enables IP processing on the interface without assigning an explicit IP
address to the interface.
Options
interface-name—Name of the interface from which the local address is derived. The specified interface
must have a logical unit number and a configured IP address, and must not be an unnumbered interface.
RELATED DOCUMENTATION
user-prefix user-prefix-string;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.1.
Statement introduced in Junos OS Release 12.3R2 for EX Series switches.
Support at the [edit ... dhcpv6] hierarchy levels introduced in Junos OS Release 11.4.
Support at the [edit ... dual-stack-group dual-stack-group-name] hierarchy level introduced in Junos OS
Release 15.1.
Description
552
Specify the user prefix that is concatenated with the username during the subscriber authentication or
client authentication process. Use the statement at the [edit ... dhcpv6] hierarchy levels to configure
DHCPv6 support.
Options
user-prefix-string—User prefix string.
RELATED DOCUMENTATION
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.5.
VLAN demux interface support introduced in Junos OS Release 10.2.
Description
For VLAN demux, Fast Ethernet, Gigabit Ethernet, and Aggregated Ethernet interfaces only, bind a 802.1Q
VLAN tag ID to a logical interface.
Options
number—A valid VLAN identifier. When used in the dynamic-profiles hierarchy, specify the $junos-vlan-id
predefined variable to dynamically obtain the VLAN identifier.
• For aggregated Ethernet, 4-port, 8-port, and 12-port Fast Ethernet PICs, and for management and
internal Ethernet interfaces, 1 through 1023.
• For 48-port Fast Ethernet and Gigabit Ethernet PICs, 1 through 4094.
RELATED DOCUMENTATION
Configuring Dynamic Subscriber Interfaces Using VLAN Demux Interfaces in Dynamic Profiles
554
vlan-id number;
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Description
For Fast Ethernet, Gigabit Ethernet, and Aggregated Ethernet interfaces only, bind a 802.1Q VLAN tag ID
to a logical interface.
Options
number—A valid VLAN identifier.
Range: For aggregated Ethernet, 4-port, 8-port, and 12-port Fast Ethernet PICs, and for management and
internal Ethernet interfaces, 1 through 1023. In Junos OS Evolved vlan-id 0 is not supported.
For 48-port Fast Ethernet and Gigabit Ethernet PICs, 1 through 4094.
VLAN ID 0 is reserved for tagging the priority of frames used in Junos OS. In Junos OS Evolved vlan-id 0
is not supported.
RELATED DOCUMENTATION
vlan-model
Syntax
vlan-model one-to-one;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 11.2.
Description
Define the network VLAN model.
Options
one-to-one—Specify that any received, dual-tagged VLAN packet triggers the provisioning process in a
Layer 2 Wholesale network. Using this option, the router learns VLAN tags for each individual client. The
router learns both the outer tag and inner tag of the incoming packets, when the instance-role statement
is defined as access, or the outer VLAN tag only, when the instance-role statement is defined as nni.
RELATED DOCUMENTATION
Configuring Separate Access Routing Instances for Layer 2 Wholesale Service Retailers
Configuring Separate NNI Routing Instances for Layer 2 Wholesale Service Retailers
556
vlan-ranges
Syntax
vlan-ranges {
access-profile profile-name;
authentication {
packet-types [packet-types];
password password-string;
username-include {
circuit-type;
circuit-id;
delimiter delimiter-character;
domain-name domain-name-string;
interface-name;
mac-address;
option-18;
option-37;
option-82 <circuit-id> <remote-id>;
radius-realm radius-realm-string;
remote-id;
user-prefix user-prefix-string;
vlan-tags;
}
}
dynamic-profile profile-name {
accept (any | dhcp-v4 | inet);
accept-out-of-band protocol;
access-profilevlan-dynamic-profile-name;
ranges (any | low-tag)–(any | high-tag);
}
override;
}
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.5.
Description
Configure multiple VLANs. Each VLAN is assigned a VLAN ID number from the range.
557
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked
statement in the Syntax section for details.
RELATED DOCUMENTATION
Configuring an Interface to Use the Dynamic Profile Configured to Create Single-Tag VLANs
Configuring Interfaces to Support Both Single and Stacked VLANs
558
vlan-tag
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.1.
Description
Apply this IEEE-802.1 rewrite rule to the outer VLAN tag or, if available, both outer and inner VLAN tags.
Default
If you do not include this statement, the rewrite rule applies to the outer VLAN tag only.
Options
outer—Apply the rewrite rule to the outer VLAN tag only.
outer-and-inner—Apply the rewrite rule to both the outer and inner VLAN tags.
RELATED DOCUMENTATION
vlan-tags
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.5.
VLAN demux interface support introduced in Junos OS Release 10.2.
Description
For Gigabit Ethernet IQ and IQE interfaces only, binds TPIDs and 802.1Q VLAN tag IDs to a logical interface.
You must include the stacked-vlan-tagging statement at the [edit interfaces interface-name] hierarchy
level.
Options
inner [tpid].vlan-id—A TPID (optional) and a valid VLAN identifier in the format tpid.vlan-id. When used in
the dynamic-profiles hierarchy, specify the $junos-vlan-id predefined variable to dynamically obtain the
VLAN ID.
NOTE: On the network-to-network (NNI) or egress interfaces of provider edge (PE) routers, you
cannot configure the inner-range tpid. vid1—vid2 option with the vlan-tags statement for
ISP-facing interfaces.
Range: For VLAN ID, 1 through 4094. VLAN ID 0 is reserved for tagging the priority of frames.
outer [tpid].vlan-id—A TPID (optional) and a valid VLAN identifier in the format tpid.vlan-id. When used in
the dynamic-profiles hierarchy, specify the $junos-stacked-vlan-id predefined variable.
Range: For VLAN ID, 1 through 511 for normal interfaces, and 512 through 4094 for VLAN CCC interfaces.
VLAN ID 0 is reserved for tagging the priority of frames.
RELATED DOCUMENTATION
vlan-tags-outer
Syntax
vlan-tags-outer vlan-tag;
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.5.
Description
The S-VLAN outer tag that belongs to a set of interfaces used to configure hierarchical CoS schedulers.
RELATED DOCUMENTATION
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 12.1X48 for PTX Series Packet Transport Routers.
Description
Bind TPIDs and 802.1Q VLAN tag IDs to a logical interface. TPID fields are used to identify the frame as
an IEEE 802.1Q-tagged frame.
Options
inner tpid.vlan-id—A TPID and a valid VLAN identifier. TPID is a 16-bit field set to a value of 0x8100 in
order to identify the frame as an IEEE 802.1Q-tagged frame.
Range: (most routers) For VLAN ID, 1 through 4094. VLAN ID 0 is reserved for tagging the priority of frames.
For PTX Series, VLAN ID 0 is not supported.
inner-range tpid. vid1–vid2—Specify a TPID and a range of VLAN IDs where vid1 is the start of the range
and vid2 is the end of the range.
NOTE: On the network-to-network (NNI) or egress interfaces of provider edge (PE) routers, you
cannot configure the inner-range tpid. vid1—vid2 option with the vlan-tags statement for
ISP-facing interfaces.
Range: For VLAN ID, 1 through 4094. VLAN ID 0 is reserved for tagging the priority of frames.
Range: (most routers) For VLAN ID, 1 through 511 for normal interfaces, and 512 through 4094 for VLAN
CCC interfaces. VLAN ID 0 is reserved for tagging the priority of frames. For PTX Series, VLAN ID 0 is not
supported.
NOTE: Configuring inner-range with the entire vlan-id range consumes system resources and
is not a best practice. The inner-range must be used only when a subset of VLAN IDs of inner
tag (not the entire range) needs to be associated with a logical interface. If you specify the entire
range (1 through 4094), it has the same result as not specifying a range; however, it consumes
Packet Forwarding Engine resources such as VLAN lookup table entries, and so on.
RELATED DOCUMENTATION
CHAPTER 11
Operational Commands
IN THIS CHAPTER
Release Information
Command introduced in Junos OS Release 17.2 for the MX Series.
Description
Display interface-set adjustment information.
Options
none—List all interface-set entries with the total aggregate adjustment value for each interface-set.
detail—List all multicast groups, with adjustment rates, that provide an update on the specified interface-set.
RELATED DOCUMENTATION
Using Hierarchical CoS to Adjust Shaping Rates Based on Multicast Traffic | 185
Output Fields
Table 31 on page 564 describes the output fields for the show show access-cac interface-set command.
Output fields are listed in the approximate order in which they appear.
Total current The total current adjustment on the interface set, in bps, equal to the sum of the measured
adjustment on rates on all configured multicast channels.
interface-set
Configured rate The shaping rate configured for each multicast channel.
Measured rate The current data rate for each multicast channel. This rate for a multicast channel adjusts the
shaping rate of the interface set by an equal amount.
Sample Output
show access-cac interface-set
user@host> show access-cac interface-set
Release Information
Command introduced in Junos OS Release 13.1 for MX Series Routers.
Description
For MPC/MIC interfaces only, display the adjustment control profiles.
Options
none—Display all profiles.
RELATED DOCUMENTATION
Output Fields
Table 32 on page 567 describes the output fields for the show class-of-service adjustment-control-profile
command. Output fields are listed in the approximate order in which they appear.
Priority Priority of the adjusting application. Possible values are 1 through 10; 1 is the highest priority.
Sample Output
show class-of-service adjustment-control-profile
user@host> show class-of-service adjustment-control-profile
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Command introduced in Junos OS Release 11.1 for the QFX Series.
Command introduced in Junos OS Release 14.1X53-D20 for the OCX Series.
Description
For each class-of-service (CoS) classifier, display the mapping of code point value to forwarding class and
loss priority.
Options
none—Display all classifiers.
type dscp—(Optional) Display all classifiers of the Differentiated Services code point (DSCP) type.
type dscp-ipv6—(Optional) Display all classifiers of the DSCP for IPv6 type.
type exp—(Optional) Display all classifiers of the MPLS experimental (EXP) type.
Output Fields
Table 33 on page 570 describes the output fields for the show class-of-service classifier command. Output
fields are listed in the approximate order in which they appear.
570
Code point type Type of the classifier: exp (not on EX Series switch), dscp, dscp-ipv6 (not on EX
Series switch), ieee-802.1, or inet-precedence.
Forwarding class Classification of a packet affecting the forwarding, scheduling, and marking
policies applied as the packet transits the router.
Loss priority Loss priority value used for classification. For most platforms, the value is high
or low. For some platforms, the value is high, medium-high, medium-low, or
low.
Sample Output
show class-of-service classifier type ieee-802.1
user@host> show class-of-service classifier type ieee-802.1
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Forwarding class map information added in Junos OS Release 9.4.
Command introduced in Junos OS Release 11.1 for the QFX Series.
Command introduced in Junos OS Release 12.1 for the PTX Series Packet Transport routers.
Command introduced in Junos OS Release 12.2 for the ACX Series Universal Metro routers.
Command introduced in Junos OS Release 14.1X53-D20 for the OCX Series.
Options detail and comprehensive introduced in Junos OS Release 11.4.
Command introduced in Junos OS Release 15.1R3 on MX Series routers for enhanced subscriber
management.
Description
Display the logical and physical interface associations for the classifier, rewrite rules, and scheduler map
objects.
NOTE: On routing platforms with dual Routing Engines, running this command on the backup
Routing Engine, with or without any of the available options, is not supported and produces the
following error message:
Options
none—Display CoS associations for all physical and logical interfaces.
detail—(M Series, MX Series, and T Series routers) (Optional) Display QoS and CoS information based on
the interface.
NOTE: ACX5000 routers do not support classification on logical interfaces and therefore do
not show CoS associations for logical interfaces with this command.
RELATED DOCUMENTATION
Output Fields
Table 34 on page 574 describes the output fields for the show class-of-service interface command. Output
fields are listed in the approximate order in which they appear.
(Enhanced subscriber management for MX Series routers) Index values for dynamic CoS traffic
control profiles and dynamic scheduler maps are larger for enhanced subscriber management
than they are for legacy subscriber management.
Dedicated Queues Status of dedicated queues configured on an interface. Supported only on Trio MPC/MIC
interfaces on MX Series routers.
(Enhanced subscriber management for MX-Series routers) This field is not displayed for
enhanced subscriber management.
Total non-default Number of queues created in addition to the default queues. Supported only on Trio MPC/MIC
queues created interfaces on MX Series routers.
(Enhanced subscriber management for MX Series routers) This field is not displayed for
enhanced subscriber management.
Rewrite Input IEEE (QFX3500 switches only) IEEE 802.1p code point (priority) rewrite value. Incoming traffic from
Code-point the Fibre Channel (FC) SAN is classified into the forwarding class specified in the native FC
interface (NP_Port) fixed classifier and uses the priority specified as the IEEE 802.1p rewrite
value.
Shaping rate Maximum transmission rate on the physical interface. You can configure the shaping rate on
the physical interface, or on the logical interface, but not on both. Therefore, the Shaping rate
field is displayed for either the physical interface or the logical interface.
575
Scheduler map Name of the output scheduler map associated with this interface.
(Enhanced subscriber management for MX Series routers) The name of the dynamic scheduler
map object is associated with a generated UID (for example, SMAP-1_UID1002) instead of
with a subscriber interface.
Scheduler map (QFX Series only) Name of the output fabric scheduler map associated with a QFabric system
forwarding class sets Interconnect device interface.
Input shaping rate For Gigabit Ethernet IQ2 PICs, maximum transmission rate on the input interface.
Input scheduler map For Gigabit Ethernet IQ2 PICs, name of the input scheduler map associated with this interface.
Chassis scheduler Name of the scheduler map associated with the packet forwarding component queues.
map
Rewrite Name and type of the rewrite rules associated with this interface.
(Enhanced subscriber management for MX Series routers) The name of the dynamic traffic
control profile object is associated with a generated UID (for example,
TC_PROF_100_199_SERIES_UID1006) instead of with a subscriber interface.
Congestion-notification (QFX Series and EX4600 switches only) Congestion notification state, enabled or disabled.
Object Category of an object: Classifier, Fragmentation-map (for LSQ interfaces only), Scheduler-map,
Rewrite, Translation Table (for IQE PICs only), or traffic-class-map (for T4000 routers with
Type 5 FPCs).
Type Type of an object: dscp, dscp-ipv6, exp, ieee-802.1, ip, inet-precedence, or ieee-802.1ad (for
traffic class map on T4000 routers with Type 5 FPCs)..
Device flags The Device flags field provides information about the physical device and displays one or
more of the following values:
Interface flags The Interface flags field provides information about the physical interface and displays one
or more of the following values:
• Admin-Test—Interface is in test mode and some sanity checking, such as loop detection, is
disabled.
• Disabled—Interface is administratively disabled.
• Down—A hardware failure has occurred.
• Hardware-Down—Interface is nonfunctional or incorrectly connected.
• Link-Layer-Down—Interface keepalives have indicated that the link is incomplete.
• No-Multicast—Interface does not support multicast traffic.
• No-receive No-transmit—Passive monitor mode is configured on the interface.
• Point-To-Point—Interface is point-to-point.
• Pop all MPLS labels from packets of depth—MPLS labels are removed as packets arrive on
an interface that has the pop-all-labels statement configured. The depth value can be one
of the following:
• 1—Takes effect for incoming packets with one label only.
• 2—Takes effect for incoming packets with two labels only.
• [ 1 2 ]—Takes effect for incoming packets with either one or two labels.
• Promiscuous—Interface is in promiscuous mode and recognizes frames addressed to all
physical addresses.
• Recv-All-Multicasts—Interface is in multicast promiscuous mode and provides no multicast
filtering.
• SNMP-Traps—SNMP trap notifications are enabled.
• Up—Interface is enabled and operational.
578
Flags The Logical interface flags field provides information about the logical interface and displays
one or more of the following values:
Input Filter Names of any firewall filters to be evaluated when packets are received on the interface,
including any filters attached through activation of dynamic service.
Output Filter Names of any firewall filters to be evaluated when packets are transmitted on the interface,
including any filters attached through activation of dynamic service.
579
Link flags Provides information about the physical link and displays one or more of the following values:
Last flapped Date, time, and how long ago the interface went from down to up. The format is Last flapped:
year-month-day hour:minute:second:timezone (hour:minute:second ago). For example, Last
flapped: 2002-04-26 10:52:40 PDT (04:33:20 ago).
Statistics last cleared Number and rate of bytes and packets received and transmitted on the physical interface.
Exclude Overhead Exclude the counting of overhead bytes from aggregate queue statistics.
Bytes
• Disabled—Default configuration. Includes the counting of overhead bytes in aggregate
queue statistics.
• Enabled—Excludes the counting of overhead bytes from aggregate queue statistics for just
the physical interface.
• Enabled for hierarchy—Excludes the counting of overhead bytes from aggregate queue
statistics for the physical interface as well as all child interfaces, including logical interfaces
and interface sets.
IPv6 transit statistics Number of IPv6 transit bytes and packets received and transmitted on the logical interface if
IPv6 statistics tracking is enabled.
580
Input errors Input errors on the interface. The labels are explained in the following list:
Output errors Output errors on the interface. The labels are explained in the following list:
• Carrier transitions—Number of times the interface has gone from down to up. This number
does not normally increment quickly, increasing only when the cable is unplugged, the
far-end system is powered down and up, or another problem occurs. If the number of carrier
transitions increments quickly (perhaps once every 10 seconds), the cable, the far-end
system, or the PIC is malfunctioning.
• Errors—Sum of the outgoing frame aborts and FCS errors.
• Drops—Number of packets dropped by the output queue of the I/O Manager ASIC. If the
interface is saturated, this number increments once for every packet that is dropped by the
ASIC's RED mechanism.
NOTE: Due to accounting space limitations on certain Type 3 FPCs (which are supported
in M320 and T640 routers), the Drops field does not always use the correct value for queue 6
or queue 7 for interfaces on 10-port 1-Gigabit Ethernet PICs.
• Aged packets—Number of packets that remained in shared packet SDRAM so long that the
system automatically purged them. The value in this field should never increment. If it does,
it is most likely a software bug or possibly malfunctioning hardware.
• HS link FIFO underflows—Number of FIFO underflows on the high-speed links between
the ASICs responsible for handling the router interfaces.
• MTU errors—Number of packets whose size exceeds the MTU of the interface.
Egress queues Total number of egress Maximum usable queues on the specified interface.
Queue counters CoS queue number and its associated user-configured forwarding class name.
SONET alarms (SONET) SONET media-specific alarms and defects that prevent the interface from passing
packets. When a defect persists for a certain period, it is promoted to an alarm. Based on the
SONET defects
router configuration, an alarm can ring the red or yellow alarm bell on the router or light the
red or yellow alarm LED on the craft interface. See these fields for possible alarms and defects:
SONET PHY, SONET section, SONET line, and SONET path.
582
SONET line Active alarms and defects, plus counts of specific SONET errors with detailed information.
SONET path Active alarms and defects, plus counts of specific SONET errors with detailed information.
Received path trace SONET/SDH interfaces allow path trace bytes to be sent inband across the SONET/SDH link.
Juniper Networks and other router manufacturers use these bytes to help diagnose
Transmitted path
misconfigurations and network errors by setting the transmitted path trace message so that
trace
it contains the system hostname and name of the physical interface. The received path trace
value is the message received from the router at the other end of the fiber. The transmitted
path trace value is the message that this router transmits.
Packet Forwarding Information about the configuration of the Packet Forwarding Engine:
Engine configuration
• Destination slot—FPC slot number.
• PLP byte—Packet Level Protocol byte.
CoS information Information about the CoS queue for the physical interface.
• CoS transmit queue—Queue number and its associated user-configured forwarding class
name.
• Bandwidth %—Percentage of bandwidth allocated to the queue.
• Bandwidth bps—Bandwidth allocated to the queue (in bps).
• Buffer %—Percentage of buffer space allocated to the queue.
• Buffer usec—Amount of buffer space allocated to the queue, in microseconds. This value
is nonzero only if the buffer size is configured in terms of time.
• Priority—Queue priority: low or high.
• Limit—Displayed if rate limiting is configured for the queue. Possible values are none and
exact. If exact is configured, the queue transmits only up to the configured bandwidth, even
if excess bandwidth is available. If none is configured, the queue transmits beyond the
configured bandwidth if bandwidth is available.
Forwarding classes Total number of forwarding classes supported on the specified interface.
Egress queues Total number of egress Maximum usable queues on the specified interface.
Queued Bytes Number of bytes queued to this queue. The byte counts vary by PIC type.
Transmitted Packets Number of packets transmitted by this queue. When fragmentation occurs on the egress
interface, the first set of packet counters shows the postfragmentation values. The second
set of packet counters (displayed under the Packet Forwarding Engine Chassis Queues field)
shows the prefragmentation values.
Transmitted Bytes Number of bytes transmitted by this queue. The byte counts vary by PIC type.
NOTE: Due to accounting space limitations on certain Type 3 FPCs (which are supported in
M320 and T640 routers), this field does not always display the correct value for queue 6 or
queue 7 for interfaces on 10-port 1-Gigabit Ethernet PICs.
587
RED-dropped bytes Number of bytes dropped because of RED. The byte counts vary by PIC type.
• (M Series and T Series routers only) On M320 and M120 routers and the T Series routers,
only the total number of dropped bytes is displayed. On all other M Series routers, the
output classifies dropped bytes into the following categories:
• Low, non-TCP—Number of low-loss priority non-TCP bytes dropped because of RED.
• Low, TCP—Number of low-loss priority TCP bytes dropped because of RED.
• High, non-TCP—Number of high-loss priority non-TCP bytes dropped because of RED.
• High, TCP—Number of high-loss priority TCP bytes dropped because of RED.
NOTE: Due to accounting space limitations on certain Type 3 FPCs (which are supported in
M320 and T640 routers), this field does not always display the correct value for queue 6 or
queue 7 for interfaces on 10-port 1-Gigabit Ethernet PICs.
Transmit rate Configured transmit rate of the scheduler. The rate is a percentage of the total interface
bandwidth.
Rate Limit Rate limiting configuration of the queue. Possible values are :
Excess Priority Priority of the excess bandwidth traffic on a scheduler: low, medium-low, medium-high, high,
or none.
Sample Output
show class-of-service interface (Physical)
user@host> show class-of-service interface so-0/2/3
inet
mpls
Interface Admin Link Proto Input Filter Output Filter
ge-0/3/0.0 up up inet
mpls
Interface Admin Link Proto Input Policer Output Policer
ge-0/3/0.0 up up inet
mpls
Unicast packets 0 0
Broadcast packets 0 0
Multicast packets 0 0
CRC/Align errors 0 0
FIFO errors 0 0
MAC control frames 0 0
MAC pause frames 0 0
Oversized frames 0
Jabber frames 0
Fragment frames 0
VLAN tagged frames 0
Code violations 0
Filter statistics:
Input packet count 0
Input packet rejects 0
Input DA rejects 0
Input SA rejects 0
Output packet count 0
Output packet pad count 0
Output packet error count 0
CAM destination filters: 0, CAM source filters: 0
Autonegotiation information:
Negotiation status: Complete
Link partner:
Link mode: Full-duplex, Flow control: Symmetric/Asymmetric, Remote fault:
OK
Local resolution:
Flow control: Symmetric, Remote fault: Link OK
Packet Forwarding Engine configuration:
Destination slot: 0
CoS information:
Direction : Output
CoS transmit queue Bandwidth Buffer Priority
Limit
% bps % usec
2 ef2 39 19500 0 120 high
none
Direction : Input
CoS transmit queue Bandwidth Buffer Priority
Limit
% bps % usec
0 af3 30 3000 45 0 low
none
595
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RL-dropped packets : 0 0 pps
RL-dropped bytes : 0 0 bps
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Logical interface ge-0/3/0.0 (Index 68) (SNMP ifIndex 152) (Generation 159)
Flags: SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.1 ] Encapsulation: ENET2
Traffic statistics:
Input bytes : 0
Output bytes : 0
602
Input packets: 0
Output packets: 0
Local statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Transit statistics:
Input bytes : 0 0 bps
Output bytes : 0 0 bps
Input packets: 0 0 pps
Output packets: 0 0 pps
Protocol inet, MTU: 1500, Generation: 172, Route table: 0
Flags: Sendbcast-pkt-to-re
Input Filters: filter-in-ge-0/3/0.0-i,
Policer: Input: p1-ge-0/3/0.0-inet-i
Protocol mpls, MTU: 1488, Maximum labels: 3, Generation: 173, Route table: 0
Flags: Is-Primary
Output Filters: exp-filter,,,,,
Logical interface ge-1/2/0.0 (Index 347) (SNMP ifIndex 638) (Generation 156)
Filter: filter-in-ge-0/3/0.0-i
Counters:
Name Bytes Packets
count-filter-in-ge-0/3/0.0-i 0 0
Filter: exp-filter
Counters:
Name Bytes Packets
count-exp-seven-match 0 0
count-exp-zero-match 0 0
Policers:
Name Packets
p1-ge-0/3/0.0-inet-i 0
normal
ef2 2 2 2 high
normal
ef1 3 3 3 high
normal
af1 4 4 0 low
normal
Logical interface ge-0/3/0.1 (Index 69) (SNMP ifIndex 154) (Generation 160)
Flags: SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.2 ] Encapsulation: ENET2
Traffic statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Local statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Transit statistics:
Input bytes : 0 0 bps
Output bytes : 0 0 bps
Input packets: 0 0 pps
Output packets: 0 0 pps
Protocol inet, MTU: 1500, Generation: 174, Route table: 0
Flags: Sendbcast-pkt-to-re
Classifier ipprec-compatibility ip 13
[edit]
user@host-g11#
show class-of-service interface (PPPoE Subscriber Interface for Enhanced Subscriber Management)
user@host> show class-of-service interface pp0.3221225474
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 11.1 for the QFX Series.
Command introduced in Junos OS Release 15.1R3 on MX Series routers for enhanced subscriber
management.
Description
Display the mapping of schedulers to forwarding classes and a summary of scheduler parameters for each
entry.
Options
none—Display all scheduler maps.
name—(Optional) Display a summary of scheduler parameters for each forwarding class to which the named
scheduler is assigned.
RELATED DOCUMENTATION
Output Fields
Table 35 on page 613 describes the output fields for the show class-of-service scheduler-map command.
Output fields are listed in the approximate order in which they appear.
613
(Enhanced subscriber management for MX Series routers) The name of the dynamic scheduler
map object is associated with a generated UID (for example, SMAP-1_UID1002) instead of
with a subscriber interface.
Index Index of the indicated object. Objects having indexes in this output include scheduler maps,
schedulers, and drop profiles.
(Enhanced subscriber management for MX Series routers) Index values for dynamic CoS traffic
control profiles are larger for enhanced subscriber management than they are for legacy
subscriber management.
Forwarding class Classification of a packet affecting the forwarding, scheduling, and marking policies applied
as the packet transits the router.
Transmit rate Configured transmit rate of the scheduler (in bps). The rate is a percentage of the total interface
bandwidth, or the keyword remainder, which indicates that the scheduler receives the remaining
bandwidth of the interface.
Rate Limit Rate limiting configuration of the queue. Possible values are none, meaning no rate limiting,
and exact, meaning the queue only transmits at the configured rate.
Maximum buffer Amount of transmit delay (in milliseconds) or the buffer size of the queue. The buffer size is
delay shown as a percentage of the total interface buffer allocation, or by the keyword remainder
to indicate that the buffer is sized according to what remains after other scheduler buffer
allocations.
Excess priority Priority of excess bandwidth: low, medium-low, medium-high, high, or none.
Explicit Congestion (QFX Series, OCX Series, and EX4600 switches only) Explicit congestion notification (ECN)
Notification state:
Drop profiles Table displaying the assignment of drop profiles by name and index to a given loss priority
and protocol pair.
Sample Output
show class-of-service scheduler-map
user@host> show class-of-service scheduler-map
Drop profiles:
Loss priority Protocol Index Name
Low any 3312 lan-dp
Medium-high any 2714 be-dp1
High any 3178 be-dp2
616
Release Information
Command introduced in Junos OS Release 13.3 for MX Series Routers.
Support for up to four hierarchy levels added in Junos OS Release 16.1.
NOTE: Before Junos OS R19.2, the shaping rate would incorrectly display as 90% of the
guaranteed rate.
Description
For MPC/MIC interfaces only, display the scheduler hierarchy as well as the shaping rate, guaranteed rate,
priorities, and queue weight information for each forwarding class at each hierarchy level.
Options
detail—(Optional) Display scheduler hierarchies based on the interface set.
RELATED DOCUMENTATION
Output Fields
Table 36 on page 616 describes the output fields for the show class-of-service scheduler-hierarchy interface
command. Output fields are listed in the approximate order in which they appear.
guaranteed priority Queue priority in the guaranteed region (high, low, or none)
excess priority Queue priority in the excess region (high, low, or none)
excess weight Interface unit per priority weights for excess weighted round-robin
Sample Output
show class-of-service scheduler-hierarchy interface
user@host> show class-of-service scheduler-hierarchy interface xe-1/0/0
--------------------------------------------------------------------------------
Interface/ shaping guaranteed guaranteed/ queue excess
resource name rate rate excess weight weight
kbits kbits priority high/low
--------------------------------------------------------------------------------
xe-1/0/0 12000
<<< L1
xe-1/0/0 RTP 12000 0 1 1
Release Information
Command introduced in Junos OS Release 13.3 for MX Series Routers.
Description
For MPC/MIC interface sets only, display the scheduler hierarchy.
Options
detail—(Optional) Display scheduler hierarchies based on the interface-set.
RELATED DOCUMENTATION
Output Fields
Table 37 on page 619 describes the output fields for the show class-of-service scheduler-hierarchy
interface-set command. Output fields are listed in the approximate order in which they appear.
guaranteed priority Actual queue priority in the guaranteed region (high, low, or none)
620
excess priority Actual queue priority in the excess region (high, low, or none)
queue weight Actual queue weight for excess CoS weighted round-robin
excess weight Actual interface-set per priority weights for excess weighted round-robin
Sample Output
show class-of-service scheduler-hierarchy interface-set
user@host> show class-of-service scheduler-hierarchy interface-set ifset
--------------------------------------------------------------------------------
Interface/ shaping guarnteed guaranteed/ queue excess
resource name rate rate excess weight weight
kbits kbits priority high/low
--------------------------------------------------------------------------------
ge-1/0/0 100000
ge-1/0/0 RTP 100000 0 1 1
be 100000 1000 Low Low 1
da 9000 2000 Medium High 1
vi 100000 3000 Medium None 626
vo 100000 4000 High High 373
gt 100000 0 High High 1
ge-1/0/0.20 50000 40000 750 750
be 50000 1000 Low Low 1
da 9000 2000 Medium High 1
vi 50000 3000 Medium None 626
vo 50000 4000 High High 373
gt 50000 Disabled High High 1
621
show interfaces
List of Syntax
Syntax (Gigabit Ethernet) on page 621
Syntax (10 Gigabit Ethernet) on page 621
Syntax (SRX Series Devices and (vSRX and vSRX 3.0 platforms)) on page 621
Syntax (SRX Series Devices and (vSRX and vSRX 3.0 platforms))
show interfaces (
<interface-name>
<brief | detail | extensive | terse>
<controller interface-name>|
<descriptions interface-name>|
<destination-class (all | destination-class-name logical-interface-name)>|
<diagnostics optics interface-name>|
<far-end-interval interface-fpc/pic/port>|
<filters interface-name>|
<flow-statistics interface-name>|
<interval interface-name>|
<load-balancing (detail | interface-name)>|
<mac-database mac-address mac-address>|
<mc-ae id identifier unit number revertive-info>|
<media interface-name>|
<policers interface-name>|
622
Release Information
Command introduced before Junos OS Release 7.4 for Gigabit interfaces.
Command introduced in Junos OS Release 8.0 for 10 Gigabit interfaces.
Command modified in Junos OS Release 9.5 for SRX Series devices.
Command introduced in Junos OS Release 18.1 for Gigabit interfaces.
Command modified in Junos OS Release 19.3R1 for MX Series Routers.
Starting in Junos OS Release 19.3R1, Output fields Ifindex and speed is modified in the show interfaces
interface name extensive command, on all MX Series routers.
• The default behavior of WAN-PHY interface remains the same.The new precise-bandwidth option
reflects the new speed (9.294-Gbps) configured on the supported line cards.
• The WAN-PHY framing mode is supported only on MPC5E and MPC6E line cards.
Starting in Junos OS Release 19.3R1, class of service (CoS) features can be configured on the physical
interface with speed rates of 1-Gbps, 10-Gbps, 40-Gbps, and 100-Gbps to provide better bandwidth for
processing traffic during congestion using variant speeds.
Description
Display status information about the specified Gigabit Ethernet interface.
(M320, M120, MX Series, and T Series routers only) Display status information about the specified
10-Gigabit Ethernet interface.
Display the IPv6 interface traffic statistics about the specified Gigabit Ethernet interface for MX series
routers. The input and output bytes (bps) and packets (pps) rates are not displayed for IFD and local traffic.
Display status information and statistics about interfaces on SRX Series, vSRX, and vSRX 3.0 platforms
running Junos OS.
623
NOTE: On SRX Series appliances, on configuring identical IPs on a single interface, you will not
see a warning message; instead, you will see a syslog message.
Starting in Junos OS Release 18.4R1, Output fields Next-hop and vpls-status is displayed in the show
interfaces interface name detail command, only for Layer 2 protocols on MX480 routers.
Options
For Gigabit interfaces:
NOTE: Interfaces with different speeds are named uniformly with ge-0/0/x for backward
compatibility. Use the show interfaces command to view the interface speeds.
snmp-index snmp-index—(Optional) Display information for the specified SNMP index of the interface.
snmp-index snmp-index—(Optional) Display information for the specified SNMP index of the interface.
• ct1-pim/0/port—Channelized T1 interface.
• e1-pim/0/port—E1 interface.
• e3-pim/0/port—E3 interface.
• se-pim/0/port—Serial interface.
• wx-slot/0/0—WAN acceleration interface, for the WXC Integrated Services Module (ISM 200).
• ct1-pim/0/port—Channelized T1 interface.
• e1-pim/0/port—E1 interface.
• e3-pim/0/port—E3 interface.
• se-pim/0/port—Serial interface.
• wx-slot/0/0—WAN acceleration interface, for the WXC Integrated Services Module (ISM 200).
Additional Information
In a logical system, this command displays information only about the logical interfaces and not about the
physical interfaces.
625
Release Description
18.4R1 Starting in Junos OS Release 18.4R1, Output fields Next-hop and vpls-status is displayed
in the show interfaces interface name detail command, only for Layer 2 protocols on MX480
routers.
RELATED DOCUMENTATION
Output Fields
Table 38 on page 627 describes the output fields for the show interfaces (Gigabit Ethernet) command.
Output fields are listed in the approximate order in which they appear. For Gigabit Ethernet IQ and IQE
PICs, the traffic and MAC statistics vary by interface type. For more information, see Table 39 on page 665.
627
Physical Interface
Enabled State of the interface. Possible values are described in the “Enabled Field” All levels
section under Common Output Fields Description.
Interface index Index number of the physical interface, which reflects its initialization detail extensive none
sequence.
SNMP ifIndex SNMP index number for the physical interface. detail extensive none
Generation Unique number for use by Juniper Networks technical support only. detail extensive
Link-level type Encapsulation being used on the physical interface. All levels
MTU Maximum transmission unit size on the physical interface. All levels
Loopback Loopback status: Enabled or Disabled. If loopback is enabled, type of All levels
loopback: Local or Remote.
LAN-PHY mode 10-Gigabit Ethernet interface operating in Local Area Network Physical All levels
Layer Device (LAN PHY) mode. LAN PHY allows 10-Gigabit Ethernet wide
area links to use existing Ethernet applications.
WAN-PHY mode 10-Gigabit Ethernet interface operating in Wide Area Network Physical All levels
Layer Device (WAN PHY) mode. WAN PHY allows 10-Gigabit Ethernet
wide area links to use fiber-optic cables and other devices intended for
SONET/SDH.
Unidirectional Unidirectional link mode status for 10-Gigabit Ethernet interface: Enabled All levels
or Disabled for parent interface; Rx-only or Tx-only for child interfaces.
Auto-negotiation (Gigabit Ethernet interfaces) Autonegotiation status: Enabled or Disabled. All levels
628
Device flags Information about the physical device. Possible values are described in All levels
the “Device Flags” section under Common Output Fields Description.
Interface flags Information about the interface. Possible values are described in the All levels
“Interface Flags” section under Common Output Fields Description.
Link flags Information about the link. Possible values are described in the “Links All levels
Flags” section under Common Output Fields Description.
Frequency (10-Gigabit Ethernet DWDM interfaces only) Displays the frequency All levels
associated with the configured wavelength, in terahertz (THz).
Schedulers (Gigabit Ethernet intelligent queuing 2 [IQ2] interfaces only) Number of extensive
CoS schedulers configured.
Hold-times Current interface hold-time up and hold-time down, in milliseconds (ms). detail extensive
Last flapped Date, time, and how long ago the interface went from down to up. The detail extensive none
format is Last flapped: year-month-day hour:minute:second:timezone
(hour:minute:second ago). For example, Last flapped: 2002-04-26 10:52:40
PDT (04:33:20 ago).
Input Rate Input rate in bits per second (bps) and packets per second (pps). The value None
in this field also includes the Layer 2 overhead bytes for ingress traffic on
Ethernet interfaces if you enable accounting of Layer 2 overhead at the
PIC level or the logical interface level.
629
Output Rate Output rate in bps and pps. The value in this field also includes the Layer None
2 overhead bytes for egress traffic on Ethernet interfaces if you enable
accounting of Layer 2 overhead at the PIC level or the logical interface
level.
Statistics last Time when the statistics for the interface were last set to zero. detail extensive
cleared
Egress account Layer 2 overhead in bytes that is accounted in the interface statistics for detail extensive
overhead egress traffic.
Ingress account Layer 2 overhead in bytes that is accounted in the interface statistics for detail extensive
overhead ingress traffic.
Traffic statistics Number and rate of bytes and packets received and transmitted on the detail extensive
physical interface.
For Gigabit Ethernet IQ PICs, the input byte counts vary by interface type.
For more information, see Table 31 under the show interfaces command.
630
Input errors Input errors on the interface. The following paragraphs explain the extensive
counters whose meaning might not be obvious:
Output errors Output errors on the interface. The following paragraphs explain the extensive
counters whose meaning might not be obvious:
Egress queues Total number of egress queues supported on the specified interface. detail extensive
NOTE: In DPCs that are not of the enhanced type, such as DPC 40x 1GE
R, DPCE 20x 1GE + 2x 10GE R, or DPCE 40x 1GE R, you might notice a
discrepancy in the output of the show interfaces command because
incoming packets might be counted in the Egress queues section of the
output. This problem occurs on non-enhanced DPCs because the egress
queue statistics are polled from IMQ (Inbound Message Queuing) block
of the I-chip. The IMQ block does not differentiate between ingress and
egress WAN traffic; as a result, the combined statistics are displayed in
the egress queue counters on the Routing Engine. In a simple VPLS
scenario, if there is no MAC entry in DMAC table (by sending unidirectional
traffic), traffic is flooded and the input traffic is accounted in IMQ. For
bidirectional traffic (MAC entry in DMAC table), if the outgoing interface
is on the same I-chip then both ingress and egress statistics are counted
in a combined way. If the outgoing interface is on a different I-chip or
FPC, then only egress statistics are accounted in IMQ. This behavior is
expected with non-enhanced DPCs
Queue counters CoS queue number and its associated user-configured forwarding class detail extensive
(Egress) name.
Ingress queues Total number of ingress queues supported on the specified interface. extensive
Displayed on IQ2 interfaces.
Queue counters CoS queue number and its associated user-configured forwarding class extensive
(Ingress) name. Displayed on IQ2 interfaces.
Active alarms and Ethernet-specific defects that can prevent the interface from passing detail extensive none
Active defects packets. When a defect persists for a certain amount of time, it is
promoted to an alarm. Based on the router configuration, an alarm can
ring the red or yellow alarm bell on the router, or turn on the red or yellow
alarm LED on the craft interface. These fields can contain the value None
or Link.
Interface transmit (On MX Series devices) Status of the interface-transmit-statistics detail extensive
statistics configuration: Enabled or Disabled.
OTN FEC statistics The forward error correction (FEC) counters provide the following detail extensive
statistics:
PCS statistics (10-Gigabit Ethernet interfaces) Displays Physical Coding Sublayer (PCS) detail extensive
fault conditions from the WAN PHY or the LAN PHY device.
• Bit errors—Number of seconds during which at least one bit error rate
(BER) occurred while the PCS receiver is operating in normal mode.
• Errored blocks—Number of seconds when at least one errored block
occurred while the PCS receiver is operating in normal mode.
634
Link Degrade Shows the link degrade status of the physical link and the estimated bit detail extensive
error rates (BERs). This field is available only for the PICs supporting the
physical link monitoring feature.
OTN Received APS/PCC0: 0x02, APS/PCC1: 0x11, APS/PCC2: 0x47, APS/PCC3: 0x58 extensive
Overhead Bytes Payload Type: 0x08
OTN Transmitted APS/PCC0: 0x00, APS/PCC1: 0x00, APS/PCC2: 0x00, APS/PCC3: 0x00 extensive
Overhead Bytes Payload Type: 0x08
638
Filter statistics Receive and Transmit statistics reported by the PIC's MAC address filter extensive
subsystem. The filtering is done by the content-addressable memory
(CAM) on the PIC. The filter examines a packet's source and destination
MAC addresses to determine whether the packet may enter the system
or be rejected.
PMA PHY (10-Gigabit Ethernet interfaces, WAN PHY mode) SONET error extensive
information:
WIS section (10-Gigabit Ethernet interfaces, WAN PHY mode) SONET error extensive
information:
WIS line (10-Gigabit Ethernet interfaces, WAN PHY mode) Active alarms and extensive
defects, plus counts of specific SONET errors with detailed information:
WIS path (10-Gigabit Ethernet interfaces, WAN PHY mode) Active alarms and extensive
defects, plus counts of specific SONET errors with detailed information:
Received path trace, (10-Gigabit Ethernet interfaces, WAN PHY mode) SONET/SDH interfaces extensive
Transmitted path allow path trace bytes to be sent inband across the SONET/SDH link.
trace Juniper Networks and other router manufacturers use these bytes to help
diagnose misconfigurations and network errors by setting the transmitted
path trace message so that it contains the system hostname and name of
the physical interface. The received path trace value is the message
received from the router at the other end of the fiber. The transmitted
path trace value is the message that this router transmits.
Packet Forwarding Information about the configuration of the Packet Forwarding Engine: extensive
Engine configuration
• Destination slot—FPC slot number.
CoS information Information about the CoS queue for the physical interface. extensive
Logical Interface
Index Index number of the logical interface, which reflects its initialization detail extensive none
sequence.
SNMP ifIndex SNMP interface index number for the logical interface. detail extensive none
Generation Unique number for use by Juniper Networks technical support only. detail extensive
644
Flags Information about the logical interface. Possible values are described in All levels
the “Logical Interface Flags” section under Common Output Fields
Description.
VLAN-Tag Rewrite profile applied to incoming or outgoing frames on the outer (Out) brief detail extensive
VLAN tag or for both the outer and inner (In) VLAN tags. none
• push—An outer VLAN tag is pushed in front of the existing VLAN tag.
• pop—The outer VLAN tag of the incoming frame is removed.
• swap—The outer VLAN tag of the incoming frame is overwritten with
the user-specified VLAN tag information.
• push—An outer VLAN tag is pushed in front of the existing VLAN tag.
• push-push—Two VLAN tags are pushed in from the incoming frame.
• swap-push—The outer VLAN tag of the incoming frame is replaced by
a user-specified VLAN tag value. A user-specified outer VLAN tag is
pushed in front. The outer tag becomes an inner tag in the final frame.
• swap-swap—Both the inner and the outer VLAN tags of the incoming
frame are replaced by the user-specified VLAN tag value.
• pop-swap—The outer VLAN tag of the incoming frame is removed, and
the inner VLAN tag of the incoming frame is replaced by the
user-specified VLAN tag value. The inner tag becomes the outer tag in
the final frame.
• pop-pop—Both the outer and inner VLAN tags of the incoming frame
are removed.
Demux IP demultiplexing (demux) value that appears if this interface is used as detail extensive none
the demux underlying interface. The output is one of the following:
ACI VLAN Information displayed for agent circuit identifier (ACI) interface set brief detail extensive
configured with the agent-circuit-id autoconfiguration stanza. none
NOTE: The ACI VLAN field is replaced with the Line Identity field when
an ALI interface set is configured with the line-identity autoconfiguration
stanza.
Line Identity Information displayed for access-line-identifier (ALI) interface sets detail
configured with the line-identity autoconfiguration stanza.
NOTE: The Line Identity field is replaced with the ACI VLAN field when
an ACI interface set is configured with the agent-circuit-id
autoconfiguration stanza.
Protocol Protocol family. Possible values are described in the “Protocol Field” detail extensive none
section under Common Output Fields Description.
MTU Maximum transmission unit size on the logical interface. detail extensive none
Neighbor Discovery NDP statistics for protocol inet6 under logical interface statistics. All levels
Protocol
(NDP)Queue • Max nh cache—Maximum interface neighbor discovery nexthop cache
size.
Statistics
• New hold nh limit—Maximum number of new unresolved nexthops.
• Curr nh cnt—Current number of resolved nexthops in the NDP queue.
• Curr new hold cnt—Current number of unresolved nexthops in the NDP
queue.
• NH drop cnt—Number of NDP requests not serviced.
646
Dynamic Profile Name of the dynamic profile that was used to create this interface detail extensive none
configured with a Point-to-Point Protocol over Ethernet (PPPoE) family.
Service Name Table Name of the service name table for the interface configured with a PPPoE detail extensive none
family.
Max Sessions Maximum number of PPPoE logical interfaces that can be activated on detail extensive none
the underlying interface.
Duplicate State of PPPoE duplicate protection: On or Off. When duplicate protection detail extensive none
Protection is configured for the underlying interface, a dynamic PPPoE logical
interface cannot be activated when an existing active logical interface is
present for the same PPPoE client.
Direct Connect State of the configuration to ignore DSL Forum VSAs: On or Off. When detail extensive none
configured, the router ignores any of these VSAs received from a directly
connected CPE device on the interface.
Maximum labels Maximum number of MPLS labels configured for the MPLS protocol family detail extensive none
on the logical interface.
Traffic statistics Number and rate of bytes and packets received and transmitted on the detail extensive
specified interface set.
IPv6 transit Number of IPv6 transit bytes and packets received and transmitted on extensive
statistics the logical interface if IPv6 statistics tracking is enabled.
Local statistics Number and rate of bytes and packets destined to the router. extensive
647
Transit statistics Number and rate of bytes and packets transiting the switch. extensive
Generation Unique number for use by Juniper Networks technical support only. detail extensive
Route Table Route table in which the logical interface address is located. For example, detail extensive none
0 refers to the routing table inet.0.
Flags Information about protocol family flags. Possible values are described in detail extensive
the “Family Flags” section under Common Output Fields Description.
Donor interface (Unnumbered Ethernet) Interface from which an unnumbered Ethernet detail extensive none
interface borrows an IPv4 address.
Preferred source (Unnumbered Ethernet) Secondary IPv4 address of the donor loopback detail extensive none
address interface that acts as the preferred source address for the unnumbered
Ethernet interface.
Input Filters Names of any input filters applied to this interface. If you specify a detail extensive
precedence value for any filter in a dynamic profile, filter precedence
values appear in parentheses next to all interfaces.
Output Filters Names of any output filters applied to this interface. If you specify a detail extensive
precedence value for any filter in a dynamic profile, filter precedence
values appear in parentheses next to all interfaces.
Mac-Validate Number of MAC address validation failures for packets and bytes. This detail extensive none
Failures field is displayed when MAC address validation is enabled for the logical
interface.
Addresses, Flags Information about the address flags. Possible values are described in the detail extensive none
“Addresses Flags” section under Common Output Fields Description.
648
protocol-family Protocol family configured on the logical interface. If the protocol is inet, brief
the IP address of the interface is also displayed.
Flags Information about the address flag. Possible values are described in the detail extensive none
“Addresses Flags” section under Common Output Fields Description.
Destination IP address of the remote side of the connection. detail extensive none
Generation Unique number for use by Juniper Networks technical support only. detail extensive
The following table describes the output fields for the show interfaces (10–Gigabit Ethernet) command.
Enabled State of the interface. Possible values are described in the “Enabled Field” All levels
section under Common Output Fields Description.
Interface index Index number of the physical interface, which reflects its initialization sequence. detail
extensive none
SNMP ifIndex SNMP index number for the physical interface. detail
extensive none
Generation Unique number for use by Juniper Networks technical support only. detail
extensive
Link-level type Encapsulation being used on the physical interface. All levels
MTU Maximum transmission unit size on the physical interface. All levels
Loopback Loopback status: Enabled or Disabled. If loopback is enabled, type of loopback: All levels
Local or Remote.
649
LAN-PHY mode 10-Gigabit Ethernet interface operating in Local Area Network Physical Layer All levels
Device (LAN PHY) mode. LAN PHY allows 10-Gigabit Ethernet wide area links
to use existing Ethernet applications.
WAN-PHY mode 10-Gigabit Ethernet interface operating in Wide Area Network Physical Layer All levels
Device (WAN PHY) mode. WAN PHY allows 10-Gigabit Ethernet wide area
links to use fiber-optic cables and other devices intended for SONET/SDH.
Unidirectional Unidirectional link mode status for 10-Gigabit Ethernet interface: Enabled or All levels
Disabled for parent interface; Rx-only or Tx-only for child interfaces.
Auto-negotiation (Gigabit Ethernet interfaces) Autonegotiation status: Enabled or Disabled. All levels
Device flags Information about the physical device. Possible values are described in the All levels
“Device Flags” section under Common Output Fields Description.
Interface flags Information about the interface. Possible values are described in the “Interface All levels
Flags” section under Common Output Fields Description.
Link flags Information about the link. Possible values are described in the “Links Flags” All levels
section under Common Output Fields Description.
Frequency (10-Gigabit Ethernet DWDM interfaces only) Displays the frequency associated All levels
with the configured wavelength, in terahertz (THz).
Schedulers (Gigabit Ethernet intelligent queuing 2 (IQ2) interfaces only) Number of CoS extensive
schedulers configured.
Last flapped Date, time, and how long ago the interface went from down to up. The format detail
is Last flapped: year-month-day hour:minute:second:timezone (hour:minute:second extensive none
ago). For example, Last flapped: 2002-04-26 10:52:40 PDT (04:33:20 ago).
Input Rate Input rate in bits per second (bps) and packets per second (pps). The value in None specified
this field also includes the Layer 2 overhead bytes for ingress traffic on Ethernet
interfaces if you enable accounting of Layer 2 overhead at the PIC level or the
logical interface level.
Output Rate Output rate in bps and pps. The value in this field also includes the Layer 2 None specified
overhead bytes for egress traffic on Ethernet interfaces if you enable accounting
of Layer 2 overhead at the PIC level or the logical interface level.
Statistics last Time when the statistics for the interface were last set to zero. detail
cleared extensive
Egress account Layer 2 overhead in bytes that is accounted in the interface statistics for egress detail
overhead traffic. extensive
Ingress account Layer 2 overhead in bytes that is accounted in the interface statistics for ingress detail
overhead traffic. extensive
Traffic statistics Number and rate of bytes and packets received and transmitted on the physical detail
interface. extensive
Input errors Input errors on the interface. The following paragraphs explain the counters extensive
whose meaning might not be obvious:
Output errors Output errors on the interface. The following paragraphs explain the counters extensive
whose meaning might not be obvious:
Egress queues Total number of egress queues supported on the specified interface. detail
extensive
NOTE: In DPCs that are not of the enhanced type, such as DPC 40x 1GE R,
DPCE 20x 1GE + 2x 10GE R, or DPCE 40x 1GE R, you might notice a
discrepancy in the output of the show interfaces command because incoming
packets might be counted in the Egress queues section of the output. This
problem occurs on non-enhanced DPCs because the egress queue statistics
are polled from IMQ (Inbound Message Queuing) block of the I-chip. The IMQ
block does not differentiate between ingress and egress WAN traffic; as a
result, the combined statistics are displayed in the egress queue counters on
the Routing Engine. In a simple VPLS scenorio, if there is no MAC entry in
DMAC table (by sending unidirectional traffic), traffic is flooded and the input
traffic is accounted in IMQ. For bidirectional traffic (MAC entry in DMAC table),
if the outgoing interface is on the same I-chip then both ingress and egress
statistics are counted in a combined way. If the outgoing interface is on a
different I-chip or FPC, then only egress statistics are accounted in IMQ. This
behavior is expected with non-enhanced DPCs
Queue counters CoS queue number and its associated user-configured forwarding class name. detail
(Egress) extensive
• Queued packets—Number of queued packets.
• Transmitted packets—Number of transmitted packets.
• Dropped packets—Number of packets dropped by the ASIC's RED mechanism.
Ingress queues Total number of ingress queues supported on the specified interface. Displayed extensive
on IQ2 interfaces.
Queue counters CoS queue number and its associated user-configured forwarding class name. extensive
(Ingress) Displayed on IQ2 interfaces.
Active alarms and Ethernet-specific defects that can prevent the interface from passing packets. detail
Active defects When a defect persists for a certain amount of time, it is promoted to an alarm. extensive none
Based on the routing device configuration, an alarm can ring the red or yellow
alarm bell on the routing device, or turn on the red or yellow alarm LED on the
craft interface. These fields can contain the value None or Link.
OTN Line Status of the line loopback, if configured for the DWDM OTN PIC. Its value detail
Loopback can be: enabled or disabled. extensive
OTN FEC The forward error correction (FEC) counters for the DWDM OTN PIC. detail
statistics extensive
• Corrected Errors—The count of corrected errors in the last second.
• Corrected Error Ratio—The corrected error ratio in the last 25 seconds. For
example, 1e-7 is 1 error per 10 million bits.
OTN FEC alarms OTN FEC excessive or degraded error alarms triggered on the interface. detail
extensive
• FEC Degrade—OTU FEC Degrade defect.
• FEC Excessive—OTU FEC Excessive Error defect.
Received DAPI Destination Access Port Interface (DAPI) from which the packets were received. detail
extensive
Received SAPI Source Access Port Interface (SAPI) from which the packets were received. detail
extensive
Transmitted DAPI Destination Access Port Interface (DAPI) to which the packets were transmitted. detail
extensive
Transmitted SAPI Source Access Port Interface (SAPI) to which the packets were transmitted. detail
extensive
PCS statistics (10-Gigabit Ethernet interfaces) Displays Physical Coding Sublayer (PCS) fault detail
conditions from the WAN PHY or the LAN PHY device. extensive
• Bit errors—The number of seconds during which at least one bit error rate
(BER) occurred while the PCS receiver is operating in normal mode.
• Errored blocks—The number of seconds when at least one errored block
occurred while the PCS receiver is operating in normal mode.
656
MAC statistics Receive and Transmit statistics reported by the PIC's MAC subsystem, including extensive
the following:
• Total octets and total packets—Total number of octets and packets. For
Gigabit Ethernet IQ PICs, the received octets count varies by interface type.
• Unicast packets, Broadcast packets, and Multicast packets—Number of
unicast, broadcast, and multicast packets.
• CRC/Align errors—Total number of packets received that had a length
(excluding framing bits, but including FCS octets) of between 64 and 1518
octets, inclusive, and had either a bad FCS with an integral number of octets
(FCS Error) or a bad FCS with a nonintegral number of octets (Alignment
Error).
• FIFO error—Number of FIFO errors that are reported by the ASIC on the
PIC. If this value is ever nonzero, the PIC or a cable is probably malfunctioning.
• MAC control frames—Number of MAC control frames.
• MAC pause frames—Number of MAC control frames with pause operational
code.
• Oversized frames—Number of frames that exceed 1518 octets.
• Jabber frames—Number of frames that were longer than 1518 octets
(excluding framing bits, but including FCS octets), and had either an FCS error
or an alignment error. This definition of jabber is different from the definition
in IEEE-802.3 section 8.2.1.5 (10BASE5) and section 10.3.1.4 (10BASE2).
These documents define jabber as the condition in which any packet exceeds
20 ms. The allowed range to detect jabber is from 20 ms to 150 ms.
• Fragment frames—Total number of packets that were less than 64 octets in
length (excluding framing bits, but including FCS octets), and had either an
FCS error or an alignment error. Fragment frames normally increment because
both runts (which are normal occurrences caused by collisions) and noise
hits are counted.
• VLAN tagged frames—Number of frames that are VLAN tagged. The system
uses the TPID of 0x8100 in the frame to determine whether a frame is tagged
or not.
• Code violations—Number of times an event caused the PHY to indicate “Data
reception error” or “invalid data symbol error.”
OTN Received APS/PCC0: 0x02, APS/PCC1: 0x11, APS/PCC2: 0x47, APS/PCC3: 0x58 Payload extensive
Overhead Bytes Type: 0x08
OTN Transmitted APS/PCC0: 0x00, APS/PCC1: 0x00, APS/PCC2: 0x00, APS/PCC3: 0x00 Payload extensive
Overhead Bytes Type: 0x08
657
Filter statistics Receive and Transmit statistics reported by the PIC's MAC address filter extensive
subsystem. The filtering is done by the content-addressable memory (CAM) on
the PIC. The filter examines a packet's source and destination MAC addresses
to determine whether the packet should enter the system or be rejected.
PMA PHY (10-Gigabit Ethernet interfaces, WAN PHY mode) SONET error information: extensive
WIS section (10-Gigabit Ethernet interfaces, WAN PHY mode) SONET error information: extensive
WIS line (10-Gigabit Ethernet interfaces, WAN PHY mode) Active alarms and defects, extensive
plus counts of specific SONET errors with detailed information.
WIS path (10-Gigabit Ethernet interfaces, WAN PHY mode) Active alarms and defects, extensive
plus counts of specific SONET errors with detailed information.
Received path (10-Gigabit Ethernet interfaces, WAN PHY mode) SONET/SDH interfaces allow extensive
trace, path trace bytes to be sent inband across the SONET/SDH link. Juniper
Transmitted path Networks and other router manufacturers use these bytes to help diagnose
trace misconfigurations and network errors by setting the transmitted path trace
message so that it contains the system hostname and name of the physical
interface. The received path trace value is the message received from the
routing device at the other end of the fiber. The transmitted path trace value
is the message that this routing device transmits.
661
Packet Information about the configuration of the Packet Forwarding Engine: extensive
Forwarding
Engine • Destination slot—FPC slot number.
configuration
CoS information Information about the CoS queue for the physical interface. extensive
Logical Interface
Index Index number of the logical interface, which reflects its initialization sequence. detail
extensive none
SNMP ifIndex SNMP interface index number for the logical interface. detail
extensive none
Generation Unique number for use by Juniper Networks technical support only. detail
extensive
Flags Information about the logical interface. Possible values are described in the All levels
“Logical Interface Flags” section under Common Output Fields Description.
662
VLAN-Tag Rewrite profile applied to incoming or outgoing frames on the outer (Out) VLAN brief detail
tag or for both the outer and inner (In) VLAN tags. extensive none
• push—An outer VLAN tag is pushed in front of the existing VLAN tag.
• pop—The outer VLAN tag of the incoming frame is removed.
• swap—The outer VLAN tag of the incoming frame is overwritten with the
user specified VLAN tag information.
• push—An outer VLAN tag is pushed in front of the existing VLAN tag.
• push-push—Two VLAN tags are pushed in from the incoming frame.
• swap-push—The outer VLAN tag of the incoming frame is replaced by a
user-specified VLAN tag value. A user-specified outer VLAN tag is pushed
in front. The outer tag becomes an inner tag in the final frame.
• swap-swap—Both the inner and the outer VLAN tags of the incoming frame
are replaced by the user specified VLAN tag value.
• pop-swap—The outer VLAN tag of the incoming frame is removed, and the
inner VLAN tag of the incoming frame is replaced by the user-specified VLAN
tag value. The inner tag becomes the outer tag in the final frame.
• pop-pop—Both the outer and inner VLAN tags of the incoming frame are
removed.
Demux: IP demultiplexing (demux) value that appears if this interface is used as the detail
demux underlying interface. The output is one of the following: extensive none
Protocol Protocol family. Possible values are described in the “Protocol Field” section detail
under Common Output Fields Description. extensive none
Maximum labels Maximum number of MPLS labels configured for the MPLS protocol family on detail
the logical interface. extensive none
663
Traffic statistics Number and rate of bytes and packets received and transmitted on the specified detail
interface set. extensive
IPv6 transit Number of IPv6 transit bytes and packets received and transmitted on the extensive
statistics logical interface if IPv6 statistics tracking is enabled.
Local statistics Number and rate of bytes and packets destined to the routing device. extensive
Transit statistics Number and rate of bytes and packets transiting the switch. extensive
NOTE: For Gigabit Ethernet intelligent queuing 2 (IQ2) interfaces, the logical
interface egress statistics might not accurately reflect the traffic on the wire
when output shaping is applied. Traffic management output shaping might drop
packets after they are tallied by the Output bytes and Output packets interface
counters. However, correct values display for both of these egress statistics
when per-unit scheduling is enabled for the Gigabit Ethernet IQ2 physical
interface, or when a single logical interface is actively using a shared scheduler.
Generation Unique number for use by Juniper Networks technical support only. detail
extensive
Route Table Route table in which the logical interface address is located. For example, 0 detail
refers to the routing table inet.0. extensive none
Flags Information about protocol family flags. Possible values are described in the detail
“Family Flags” section under Common Output Fields Description. extensive
Donor interface (Unnumbered Ethernet) Interface from which an unnumbered Ethernet interface detail
borrows an IPv4 address. extensive none
Preferred source (Unnumbered Ethernet) Secondary IPv4 address of the donor loopback interface detail
address that acts as the preferred source address for the unnumbered Ethernet interface. extensive none
Input Filters Names of any input filters applied to this interface. If you specify a precedence detail
value for any filter in a dynamic profile, filter precedence values appear in extensive
parenthesis next to all interfaces.
664
Output Filters Names of any output filters applied to this interface. If you specify a precedence detail
value for any filter in a dynamic profile, filter precedence values appear in extensive
parenthesis next to all interfaces.
Mac-Validate Number of MAC address validation failures for packets and bytes. This field is detail
Failures displayed when MAC address validation is enabled for the logical interface. extensive none
Addresses, Flags Information about the address flags. Possible values are described in the detail
“Addresses Flags” section under Common Output Fields Description. extensive none
protocol-family Protocol family configured on the logical interface. If the protocol is inet, the brief
IP address of the interface is also displayed.
Flags Information about address flag (possible values are described in the “Addresses detail
Flags” section under Common Output Fields Description. extensive none
Generation Unique number for use by Juniper Networks technical support only. detail
extensive
For Gigabit Ethernet IQ PICs, traffic and MAC statistics output varies. The following table describes the
traffic and MAC statistics for two sample interfaces, each of which is sending traffic in packets of 500
bytes (including 478 bytes for the Layer 3 packet, 18 bytes for the Layer 2 VLAN traffic header, and 4
bytes for cyclic redundancy check [CRC] information). The ge-0/3/0 interface is the inbound physical
interface, and the ge-0/0/0 interface is the outbound physical interface. On both interfaces, traffic is
carried on logical unit .50 (VLAN 50).
665
Table 39: Gigabit and 10 Gigabit Ethernet IQ PIC Traffic and MAC Statistics by Interface Type
Inbound physical interface show interfaces ge-0/3/0 Traffic statistics: The additional 4 bytes are
extensive for the CRC.
Input bytes: 496 bytes per
packet, representing the
Layer 2 packet
MAC statistics:
Outbound physical show interfaces ge-0/0/0 Traffic statistics: For input bytes, the
interface extensive additional 12 bytes include
Input bytes: 490 bytes per
6 bytes for the destination
packet, representing the
MAC address plus 4 bytes
Layer 3 packet + 12 bytes
for VLAN plus 2 bytes for
Table 40 on page 666 lists the output fields for the show interfaces command. Output fields are listed in
the approximate order in which they appear.
666
Physical Interface
Interface index Index number of the physical interface, which reflects its initialization detail extensive none
sequence.
SNMP ifIndex SNMP index number for the physical interface. detail extensive none
Link-level type Encapsulation being used on the physical interface. All levels
Generation Unique number for use by Juniper Networks technical support only. detail extensive
MTU Maximum transmission unit size on the physical interface. All levels
BPDU error Bridge protocol data unit (BPDU) error: Detected or None
Loopback Loopback status: Enabled or Disabled. If loopback is enabled, type of All levels
loopback: Local or Remote.
Auto-negotiation (Gigabit Ethernet interfaces) Autonegotiation status: Enabled or Disabled. All levels
Last flapped Date, time, and how long ago the interface went from down to up. The detail extensive none
format is Last flapped: year-month-day hour:minute:second:timezone
(hour:minute:second ago). For example, Last flapped: 2002-04-26 10:52:40
PDT (04:33:20 ago).
Input Rate Input rate in bits per second (bps) and packets per second (pps). None
Active alarms and Ethernet-specific defects that can prevent the interface from passing detail extensive none
Active defects packets. When a defect persists for a certain amount of time, it is
promoted to an alarm. These fields can contain the value None or Link.
Statistics last Time when the statistics for the interface were last set to zero. detail extensive
cleared
Traffic statistics Number and rate of bytes and packets received and transmitted on the detail extensive
physical interface.
Ingress queues Total number of ingress queues supported on the specified interface. extensive
Queue counters and CoS queue number and its associated user-configured forwarding class detail extensive
queue number name.
MAC statistics Receive and Transmit statistics reported by the PIC's MAC subsystem, extensive
including the following:
Filter statistics Receive and Transmit statistics reported by the PIC's MAC address filter extensive
subsystem. The filtering is done by the content-addressable memory
(CAM) on the PIC. The filter examines a packet's source and destination
MAC addresses to determine whether the packet should enter the system
or be rejected.
Packet Forwarding Information about the configuration of the Packet Forwarding Engine: extensive
Engine configuration
• Destination slot—FPC slot number.
CoS information Information about the CoS queue for the physical interface. extensive
Queue counters CoS queue number and its associated user-configured forwarding class detail extensive
(Egress) name.
Logical Interface
Index Index number of the logical interface, which reflects its initialization detail extensive none
sequence.
SNMP ifIndex SNMP interface index number for the logical interface. detail extensive none
Generation Unique number for use by Juniper Networks technical support only. detail extensive
Traffic statistics Number and rate of bytes and packets received and transmitted on the detail extensive
specified interface set.
Local statistics Number and rate of bytes and packets destined to the device. extensive
Transit statistics Number and rate of bytes and packets transiting the switch. extensive
MTU Maximum transmission unit size on the logical interface. detail extensive none
Generation Unique number for use by Juniper Networks technical support only. detail extensive
Route Table Route table in which the logical interface address is located. For example, detail extensive none
0 refers to the routing table inet.0.
Addresses, Flags Information about the address flags.. detail extensive none
Destination IP address of the remote side of the connection. detail extensive none
Generation Unique number for use by Juniper Networks technical support only. detail extensive
show interfaces extensive (Gigabit Ethernet on MX Series Routers showing interface transmit statistics
configuration)
user@host> show interfaces ge-2/1/2 extensive | match "output|interface"
Logical interface ge-2/1/2.0 (Index 331) (SNMP ifIndex 955) (Generation 146)
Output bytes : 195560312716 522726272 bps
Output packets: 4251311146 1420451 pps
Logical interface ge-5/2/0.0 (Index 71) (SNMP ifIndex 573) (Generation 135)
Flags: SNMP-Traps 0x4000 Encapsulation: ENET2
Egress account overhead: 100
Ingress account overhead: 90
Traffic statistics:
Input bytes : 271524
Output bytes : 37769598
Input packets: 3664
Output packets: 885790
IPv6 transit statistics:
Input bytes : 0
Output bytes : 16681118
Input packets: 0
Output packets: 362633
Local statistics:
Input bytes : 271524
Output bytes : 308560
Input packets: 3664
678
Logical interface ge-3/0/2.0 (Index 72) (SNMP ifIndex 69) (Generation 140)
Flags: SNMP-Traps 0x4000
VLAN-Tag [0x8100.512 0x8100.513 ] In(pop-swap 0x8100.530)
Out(swap-push 0x8100.512 0x8100.513)
Encapsulation: VLAN-CCC
Egress account overhead: 100
Ingress account overhead: 90
Traffic statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
680
Output packets: 0
Local statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Transit statistics:
Input bytes : 0 0 bps
Output bytes : 0 0 bps
Input packets: 0 0 pps
Output packets: 0 0 pps
Protocol ccc, MTU: 1522, Generation: 149, Route table: 0
Flags: Is-Primary
Direction : Input
CoS transmit queue Bandwidth Buffer Priority Limit
% bps % usec
0 best-effort 95 950000000 95 0 low none
Logical interface ge-7/1/3.0 (Index 70) (SNMP ifIndex 85) (Generation 150)
Flags: SNMP-Traps Encapsulation: ENET2
Traffic statistics:
Input bytes : 812400
Output bytes : 1349206
Input packets: 9429
Output packets: 9449
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Local statistics:
Input bytes : 812400
Output bytes : 1349206
Input packets: 9429
Output packets: 9449
Transit statistics:
Input bytes : 0 7440 bps
Output bytes : 0 7888 bps
Input packets: 0 10 pps
Output packets: 0 11 pps
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Protocol inet, MTU: 1500, Generation: 169, Route table: 0
Flags: Is-Primary, Mac-Validate-Strict
Mac-Validate Failures: Packets: 0, Bytes: 0
Addresses, Flags: Is-Preferred Is-Primary
Input Filters: F1-ge-3/0/1.0-in, F3-ge-3/0/1.0-in
Output Filters: F2-ge-3/0/1.0-out (53)
Destination: 203.0.113/24, Local: 203.0.113.2, Broadcast: 203.0.113.255,
Generation: 196
684
NOTE: For Gigabit Ethernet intelligent queuing 2 (IQ2) interfaces, the logical interface egress statistics
displayed in the show interfaces command output might not accurately reflect the traffic on the wire
when output shaping is applied. Traffic management output shaping might drop packets after they are
tallied by the interface counters. For detailed information, see the description of the logical interface
Transit statistics fields in Table 38 on page 627.
Logical interface ge-1/0/0.10 (Index 346) (SNMP ifIndex 554) (Generation 155)
Flags: Up SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.10 ] Encapsulation: ENET2
Line Identity:
Dynamic Profile: ali-set-profile
Circuit-id Remote-id Accept-no-ids
PPPoE:
Dynamic Profile: ali-vlan-pppoe-profile,
Service Name Table: None,
Max Sessions: 32000, Max Sessions VSA Ignore: Off,
Duplicate Protection: On, Short Cycle Protection: Off,
Direct Connect: Off,
AC Name: nbc
Input packets : 9
Output packets: 8
Protocol multiservice, MTU: Unlimited
% bps % usec
0 best-effort 95 950000000 95 0 low none
3 network-control 5 50000000 5 0 low none
Logical interface xe-5/0/0.0 (Index 71) (SNMP ifIndex 95) (Generation 195)
Flags: SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.100 ] Encapsulation: ENET2
Egress account overhead: 100
Ingress account overhead: 90
Traffic statistics:
Input bytes : 0
Output bytes : 46
Input packets: 0
Output packets: 1
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Local statistics:
Input bytes : 0
Output bytes : 46
Input packets: 0
Output packets: 1
Transit statistics:
Input bytes : 0 0 bps
Output bytes : 0 0 bps
Input packets: 0 0 pps
Output packets: 0 0 pps
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Protocol inet, MTU: 1500, Generation: 253, Route table: 0
Addresses, Flags: Is-Preferred Is-Primary
Destination: 192.0.2/24, Local: 192.0.2.1, Broadcast: 192.0.2.255,
Generation: 265
Protocol multiservice, MTU: Unlimited, Generation: 254, Route table: 0
Flags: None
Policer: Input: __default_arp_policer__
FIFO errors 0 0
MAC control frames 0 0
MAC pause frames 0 0
Oversized frames 0
Jabber frames 0
Fragment frames 0
VLAN tagged frames 0
Code violations 0
Filter statistics:
Input packet count 0
Input packet rejects 0
Input DA rejects 0
Input SA rejects 0
Output packet count 0
Output packet pad count 0
Output packet error count 0
CAM destination filters: 0, CAM source filters: 0
PMA PHY: Seconds Count State
PLL lock 0 0 OK
PHY light 63159 1 Light Missing
WIS section:
BIP-B1 0 0
SEF 434430 434438 Defect Active
LOS 434430 1 Defect Active
LOF 434430 1 Defect Active
ES-S 434430
SES-S 434430
SEFS-S 434430
WIS line:
BIP-B2 0 0
REI-L 0 0
RDI-L 0 0 OK
AIS-L 434430 1 Defect Active
BERR-SF 0 0 OK
BERR-SD 0 0 OK
ES-L 434430
SES-L 434430
UAS-L 434420
ES-LFE 0
SES-LFE 0
UAS-LFE 0
WIS path:
BIP-B3 0 0
REI-P 0 0
691
LOP-P 0 0 OK
AIS-P 434430 1 Defect Active
RDI-P 0 0 OK
UNEQ-P 0 0 OK
PLM-P 0 0 OK
ES-P 434430
SES-P 434430
UAS-P 434420
ES-PFE 0
SES-PFE 0
UAS-PFE 0
Received path trace:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Transmitted path trace: orissa so-1/0/0
6f 72 69 73 73 61 20 73 6f 2d 31 2f 30 2f 30 00 orissa so-1/0/0.
Packet Forwarding Engine configuration:
Destination slot: 1
CoS information:
CoS transmit queue Bandwidth Buffer Priority Limit
% bps % bytes
0 best-effort 95 950000000 95 0 low none
3 network-control 5 50000000 5 0 low none
Unicast packets 0 0
Broadcast packets 0 0
Multicast packets 0 0
CRC/Align errors 0 0
FIFO errors 0 0
MAC control frames 0 0
MAC pause frames 0 0
Oversized frames 0
Jabber frames 0
Fragment frames 0
VLAN tagged frames 0
Code violations 0
OTN alarms : None
OTN defects : None
OTN FEC Mode : GFEC
OTN Rate : Fixed Stuff Bytes 11.0957Gbps
OTN Line Loopback : Enabled
OTN FEC statistics :
Corrected Errors 0
Corrected Error Ratio ( 0 sec average) 0e-0
OTN FEC alarms: Seconds Count State
FEC Degrade 0 0 OK
FEC Excessive 0 0 OK
OTN OC: Seconds Count State
LOS 2 1 OK
LOF 67164 2 Defect Active
LOM 67164 71 Defect Active
Wavelength Lock 0 0 OK
OTN OTU:
AIS 0 0 OK
BDI 65919 4814 Defect Active
IAE 67158 1 Defect Active
TTIM 7 1 OK
SF 67164 2 Defect Active
SD 67164 3 Defect Active
TCA-ES 0 0 OK
TCA-SES 0 0 OK
TCA-UAS 80 40 OK
TCA-BBE 0 0 OK
BIP 0 0 OK
BBE 0 0 OK
ES 0 0 OK
SES 0 0 OK
UAS 587 0 OK
694
Received DAPI:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Received SAPI:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Transmitted DAPI:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Transmitted SAPI:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
OTN Received Overhead Bytes:
APS/PCC0: 0x02, APS/PCC1: 0x42, APS/PCC2: 0xa2, APS/PCC3: 0x48
Payload Type: 0x03
OTN Transmitted Overhead Bytes:
APS/PCC0: 0x00, APS/PCC1: 0x00, APS/PCC2: 0x00, APS/PCC3: 0x00
Payload Type: 0x03
Filter statistics:
Input packet count 0
Input packet rejects 0
Input DA rejects 0
Input SA rejects 0
Output packet count 0
Output packet pad count 0
Output packet error count 0
CAM destination filters: 0, CAM source filters: 0
Packet Forwarding Engine configuration:
Destination slot: 7
CoS information:
Direction : Output
CoS transmit queue Bandwidth Buffer Priority
Limit
% bps % usec
0 best-effort 95 9500000000 95 0 low
none
3 network-control 5 500000000 5 0 low
none
...
show interfaces extensive (10-Gigabit Ethernet, LAN PHY Mode, Unidirectional Mode)
user@host> show interfaces xe-7/0/0 extensive
show interfaces extensive (10-Gigabit Ethernet, LAN PHY Mode, Unidirectional Mode, Transmit-Only)
user@host> show interfaces xe-7/0/0–tx extensive
...
Filter statistics:
Output packet count 328810554250
Output packet pad count 0
Output packet error count 0
...
Logical interface xe-7/0/0-tx.0 (Index 73) (SNMP ifIndex 138) (Generation 139)
Flags: SNMP-Traps Encapsulation: ENET2
Egress account overhead: 100
Ingress account overhead: 90
Traffic statistics:
Input bytes : 0
Output bytes : 322891152287160
Input packets: 0
Output packets: 328809727380
IPv6 transit statistics:
696
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Local statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Transit statistics:
Input bytes : 0 0 bps
Output bytes : 322891152287160 9627472888 bps
Input packets: 0 0 pps
Output packets: 328809727380 1225492 pps
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Protocol inet, MTU: 1500, Generation: 147, Route table: 0
Addresses, Flags: Is-Preferred Is-Primary
Destination: 10.11.12/24, Local: 10.11.12.13, Broadcast: 10.11.12.255,
Generation: 141
Protocol multiservice, MTU: Unlimited, Generation: 148, Route table: 0
Flags: None
Policer: Input: __default_arp_policer__
show interfaces extensive (10-Gigabit Ethernet, LAN PHY Mode, Unidirectional Mode, Receive-Only)
user@host> show interfaces xe-7/0/0–rx extensive
...
Filter statistics:
Input packet count 328775015056
Input packet rejects 1
Input DA rejects 0
...
Logical interface xe-7/0/0-rx.0 (Index 72) (SNMP ifIndex 120) (Generation 138)
Flags: SNMP-Traps Encapsulation: ENET2
Traffic statistics:
Input bytes : 322857456303482
Output bytes : 0
Input packets: 328775413751
Output packets: 0
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Local statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Transit statistics:
Input bytes : 322857456303482 9627496104 bps
Output bytes : 0 0 bps
Input packets: 328775413751 1225495 pps
Output packets: 0 0 pps
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Protocol inet, MTU: 1500, Generation: 145, Route table: 0
Addresses, Flags: Is-Preferred Is-Primary
Destination: 192.0.2/24, Local: 192.0.2.1, Broadcast: 192.0.2.255,
698
Generation: 139
Protocol multiservice, MTU: Unlimited, Generation: 146, Route table: 0
Flags: None
Policer: Input: __default_arp_policer__
Sample Output
Sample Output SRX Gigabit Ethernet
user@host> show interfaces ge-0/0/1
Logical interface ge-0/0/1.0 (Index 71) (SNMP ifIndex 514) (Generation 136)
Flags: Device-Down SNMP-Traps 0x0 Encapsulation: ENET2
701
Traffic statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Local statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Transit statistics:
Input bytes : 0 0 bps
Output bytes : 0 0 bps
Input packets: 0 0 pps
Output packets: 0 0 pps
Security: Zone: public
Flow Statistics :
Flow Input statistics :
Self packets : 0
ICMP packets : 0
VPN packets : 0
Multicast packets : 0
Bytes permitted by policy : 0
Connections established : 0
Flow Output statistics:
Multicast packets : 0
Bytes permitted by policy : 0
Flow error statistics (Packets dropped due to):
Address spoofing: 0
Authentication failed: 0
Incoming NAT errors: 0
Invalid zone received packet: 0
Multiple user authentications: 0
Multiple incoming NAT: 0
No parent for a gate: 0
No one interested in self packets: 0
No minor session: 0
No more sessions: 0
No NAT gate: 0
No route present: 0
No SA for incoming SPI: 0
No tunnel found: 0
No session for a gate: 0
No zone or NULL zone binding 0
702
Policy denied: 0
Security association not active: 0
TCP sequence number out of window: 0
Syn-attack protection: 0
User authentication errors: 0
Protocol inet, MTU: 1500, Generation: 150, Route table: 0
Flags: Sendbcast-pkt-to-re
Addresses, Flags: Dest-route-down Is-Preferred Is-Primary
Destination: 1.1.1/24, Local: 1.1.1.1, Broadcast: 1.1.1.255, Generation:
150
Logical interface st0.0 (Index 71) (SNMP ifIndex 609) (Generation 136)
Flags: Up Point-To-Point SNMP-Traps Encapsulation: Secure-Tunnel
Traffic statistics:
Input bytes : 528152756774
Output bytes : 575950643520
Input packets: 11481581669
Output packets: 12520666095
Local statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Transit statistics:
Input bytes : 0 121859888 bps
Output bytes : 0 128104112 bps
Input packets: 0 331141 pps
Output packets: 0 348108 pps
Security: Zone: untrust
Allowed host-inbound traffic : any-service bfd bgp dvmrp igmp ldp msdp nhrp
ospf ospf3 pgm pim rip ripng router-discovery rsvp
sap vrrp
Flow Statistics :
Flow Input statistics :
Self packets : 0
ICMP packets : 0
VPN packets : 0
Multicast packets : 0
Bytes permitted by policy : 525984295844
Connections established : 7
703
Logical interface ge-0/0/1.0 (Index 71) (SNMP ifIndex 514) (Generation 136)
Flags: Device-Down SNMP-Traps 0x0 Encapsulation: ENET2
Traffic statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Local statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Transit statistics:
Input bytes : 0 0 bps
Output bytes : 0 0 bps
Input packets: 0 0 pps
Output packets: 0 0 pps
Security: Zone: public
706
Flow Statistics :
Flow Input statistics :
Self packets : 0
ICMP packets : 0
VPN packets : 0
Multicast packets : 0
Bytes permitted by policy : 0
Connections established : 0
Flow Output statistics:
Multicast packets : 0
Bytes permitted by policy : 0
Flow error statistics (Packets dropped due to):
Address spoofing: 0
Authentication failed: 0
Incoming NAT errors: 0
Invalid zone received packet: 0
Multiple user authentications: 0
Multiple incoming NAT: 0
No parent for a gate: 0
No one interested in self packets: 0
No minor session: 0
No more sessions: 0
No NAT gate: 0
No route present: 0
No SA for incoming SPI: 0
No tunnel found: 0
No session for a gate: 0
No zone or NULL zone binding 0
Policy denied: 0
Security association not active: 0
TCP sequence number out of window: 0
Syn-attack protection: 0
User authentication errors: 0
Protocol inet, MTU: 1500, Generation: 150, Route table: 0
Flags: Sendbcast-pkt-to-re
Addresses, Flags: Dest-route-down Is-Preferred Is-Primary
Destination: 1.1.1/24, Local: 1.1.1.1, Broadcast: 1.1.1.255,
Generation: 150
ge-0/0/2 up up
e-0/0/3 up up
ge-0/0/4 up up
ge-15/0/0 up up SMB-OSPF_Area100
ge-15/0/1 up up GSR-13#3
04:30-04:45:
ES-L: 0, SES-L: 0, UAS-L: 0
04:15-04:30:
ES-L: 0, SES-L: 0, UAS-L: 0
04:00-04:15:
...
vt-0/3/0 up up
at-1/0/0 up up
at-1/0/0.0 up up inet
iso
at-1/1/0 up down
at-1/1/0.0 up down inet
iso
....
No minor session: 0
No more sessions: 0
No NAT gate: 0
No route present: 0
No SA for incoming SPI: 0
No tunnel found: 0
No session for a gate: 0
No zone or NULL zone binding 0
Policy denied: 0
Security association not active: 0
TCP sequence number out of window: 0
Syn-attack protection: 0
User authentication errors: 0
Protocol inet, MTU: 1500
Flags: None
Addresses, Flags: Is-Preferred Is-Primary
Destination: 203.0.113.1/24, Local: 203.0.113.2, Broadcast: 2.2.2.255
so-2/1/0 up down
...
The following truncated example shows the CoS queue sizes for queues 0, 1, and 3. Queue 1 has a queue
buffer size (guaranteed allocated memory) of 9192 bytes.
Medium-high : 0 0 bps
High : 0 0 bps
Queue Buffer Usage:
Reserved buffer : 118750000 bytes
Queue-depth bytes :
Current : 0
..
..
Queue: 1, Forwarding classes: class1
..
..
Queue Buffer Usage:
Reserved buffer : 9192 bytes
Queue-depth bytes :
Current : 0
..
..
Queue: 3, Forwarding classes: class3
Queued:
..
..
Queue Buffer Usage:
Reserved buffer : 6250000 bytes
Queue-depth bytes :
Current : 0
..
..
Interface : rlsq0
State : On primary
Last change : 00:45:47
Primary : lsq-0/2/0
Secondary : lsq-1/2/0
Current status : both up
Mode : hot-standby
Interface : rlsq0:0
State : On primary
Last change : 00:45:46
Primary : lsq-0/2/0:0
Secondary : lsq-1/2/0:0
Current status : both up
Mode : warm-standby
so-5/0/3.0
Index: 15, Refcount: 2, State: Up <Broadcast PointToPoint Multicast> Change:<>
Metric: 0, Up/down transitions: 0, Full-duplex
Link layer: HDLC serial line Encapsulation: PPP Bandwidth: 155Mbps
ISO address (null)
State: <Broadcast PointToPoint Multicast> Change: <>
Preference: 0 (120 down), Metric: 0, MTU: 4470 bytes
so-5/0/2.0
Index: 14, Refcount: 7, State: <Up Broadcast PointToPoint Multicast> Change:<>
Metric: 0, Up/down transitions: 0, Full-duplex
Link layer: HDLC serial line Encapsulation: PPP Bandwidth: 155Mbps
MPLS address (null)
State: <Up Broadcast PointToPoint Multicast> Change: <>
Preference: 0 (120 down), Metric: 0, MTU: 4458 bytes
ISO address (null)
State: <Up Broadcast PointToPoint Multicast> Change: <>
Preference: 0 (120 down), Metric: 0, MTU: 4470 bytes
INET address 192.168.2.120
State: <Up Broadcast PointToPoint Multicast Localup> Change: <>
Preference: 0 (120 down), Metric: 0, MTU: 4470 bytes
Local address: 192.168.2.120
Destination: 192.168.2.110/32
INET address (null)
State: <Up Broadcast PointToPoint Multicast> Change: <>
Preference: 0 (120 down), Metric: 0, MTU: 4470 bytes
...
( 0) ( 0)
silver 116113 9753492
( 939) ( 631616)
OTU-BBE 0 800 No No
OTU-ES 0 135 No No
OTU-SES 0 90 No No
OTU-UAS 427 90 No No
Far End Suspect Flag:True Reason:Unknown
PM COUNT THRESHOLD TCA-ENABLED TCA-RAISED
OTU-BBE 0 800 No No
726
OTU-ES 0 135 No No
OTU-SES 0 90 No No
OTU-UAS 0 90 No No
Near End Suspect Flag:False Reason:None
PM COUNT THRESHOLD TCA-ENABLED TCA-RAISED
ODU-BBE 0 800 No No
ODU-ES 0 135 No No
ODU-SES 0 90 No No
ODU-UAS 427 90 No No
Far End Suspect Flag:True Reason:Unknown
PM COUNT THRESHOLD TCA-ENABLED TCA-RAISED
ODU-BBE 0 800 No No
ODU-ES 0 135 No No
ODU-SES 0 90 No No
ODU-UAS 0 90 No No
FEC Suspect Flag:False Reason:None
PM COUNT THRESHOLD TCA-ENABLED TCA-RAISED
FEC-CorrectedErr 2008544300 0 NA NA
FEC-UncorrectedWords 0 0 NA NA
BER Suspect Flag:False Reason:None
PM MIN MAX AVG THRESHOLD TCA-ENABLED
TCA-RAISED
BER 3.6e-5 5.8e-5 3.6e-5 10.0e-3 No
Yes
Physical interface: et-0/1/0, SNMP ifIndex 515
14:45-current
Suspect Flag:True Reason:Object Disabled
PM CURRENT MIN MAX AVG THRESHOLD
TCA-ENABLED TCA-RAISED
(MIN)
(MAX) (MIN) (MAX) (MIN) (MAX)
Lane chromatic dispersion 0 0 0 0 0
0 NA NA NA NA
Lane differential group delay 0 0 0 0 0
0 NA NA NA NA
q Value 120 120 120 120 0
0 NA NA NA NA
SNR 28 28 29 28 0
0 NA NA NA NA
Tx output power(0.01dBm) -5000 -5000 -5000 -5000 -300
-100 No No No No
727
Release Information
Command introduced before Junos OS Release 7.4.
Description
(M120 routers, M320 routers, and MX Series routers only). Display status information about the PPPoE
interface.
Options
pp0.logical—Display standard status information about the PPPoE interface.
snmp-index snmp-index—(Optional) Display information for the specified SNMP index of the interface.
Output Fields
Table 41 on page 729 lists the output fields for the show interfaces (PPPoE) command. Output fields are
listed in the approximate order in which they appear.
729
Physical Interface
Enabled State of the interface. Possible values are described in the “Enabled Field” All levels
section under Common Output Fields Description.
Interface index Physical interface index number, which reflects its initialization sequence. detail extensive none
SNMP ifIndex SNMP index number for the physical interface. detail extensive none
Generation Unique number for use by Juniper Networks technical support only. detail extensive
Device flags Information about the physical device. Possible values are described in All levels
the “Device Flags” section under Common Output Fields Description.
Interface flags Information about the interface. Possible values are described in the All levels
“Interface Flags” section under Common Output Fields Description.
Link type Physical interface link type: full duplex or half duplex. All levels
Link flags Information about the interface. Possible values are described in the “Link All levels
Flags” section under Common Output Fields Description.
Input rate Input rate in bits per second (bps) and packets per second (pps). None specified
Hold-times Current interface hold-time up and hold-time down, in milliseconds. detail extensive
730
Statistics last Time when the statistics for the interface were last set to zero. detail extensive
cleared
Traffic statistics Number and rate of bytes and packets received and transmitted on the detail extensive
physical interface.
IPv6 transit Number of IPv6 transit bytes and packets received and transmitted on detail extensive
statistics the physical interface if IPv6 statistics tracking is enabled.
NOTE: These fields include dropped traffic and exception traffic, as those
fields are not separately defined.
Output errors Output errors on the interface. The following paragraphs explain the extensive
counters whose meaning might not be obvious:
• Carrier transitions —Number of times the interface has gone from down
to up. This number does not normally increment quickly, increasing
only when the cable is unplugged, the far-end system is powered down
and then up, or another problem occurs. If the number of carrier
transitions increments quickly (perhaps once every 10 seconds), then
the cable, the far-end system, or the PIM is malfunctioning.
• Errors—Sum of the outgoing frame aborts and FCS errors.
• Drops—Number of packets dropped by the output queue of the I/O
Manager ASIC. If the interface is saturated, this number increments
once for every packet that is dropped by the ASIC's RED mechanism.
• MTU errors—Number of packets whose size exceeded the MTU of the
interface.
• Resource errors—Sum of B chip Tx drops and IXP Tx net transmit drops.
Logical Interface
Index Logical interface index number (which reflects its initialization sequence). detail extensive none
SNMP ifIndex Logical interface SNMP interface index number. detail extensive none
732
Generation Unique number for use by Juniper Networks technical support only. detail extensive
Flags Information about the logical interface. Possible values are described in All levels
the “Logical Interface Flags” section under Common Output Fields
Description.
Link Name of the physical interfaces for member links in an aggregated Ethernet All levels
bundle for a PPPoE over aggregated Ethernet configuration. PPPoE traffic
goes out on these interfaces.
Traffic statistics Total number of bytes and packets received and transmitted on the logical detail extensive
interface. These statistics are the sum of the local and transit statistics.
When a burst of traffic is received, the value in the output packet rate
field might briefly exceed the peak cell rate. This counter usually takes
less than 1 second to stabilize.
733
IPv6 transit Number of IPv6 transit bytes and packets received and transmitted on detail extensive
statistics the logical interface if IPv6 statistics tracking is enabled.
NOTE: The packet and byte counts in these fields include traffic that is
dropped and does not leave the router.
Local statistics Statistics for traffic received from and transmitted to the Routing Engine. detail extensive
When a burst of traffic is received, the value in the output packet rate
field might briefly exceed the peak cell rate. This counter usually takes
less than 1 second to stabilize.
Transit statistics Statistics for traffic transiting the router. When a burst of traffic is detail extensive
received, the value in the output packet rate field might briefly exceed
the peak cell rate. This counter usually takes less than 1 second to stabilize.
NOTE: The packet and byte counts in these fields include traffic that is
dropped and does not leave the router.
Keepalive (PPP and HDLC) Configured settings for keepalives. detail extensive
settings
• interval seconds—The time in seconds between successive keepalive
requests. The range is 10 seconds through 32,767 seconds, with a
default of 10 seconds.
• down-countnumber—The number of keepalive packets a destination
must fail to receive before the network takes a link down. The range is
1 through 255, with a default of 3.
• up-count number—The number of keepalive packets a destination must
receive to change a link’s status from down to up. The range is 1 through
255, with a default of 1.
734
Keepalive (PPP and HDLC) Information about keepalive packets. detail extensive
statistics
• Input—Number of keepalive packets received by PPP.
• (last seen 00:00:00 ago)—Time the last keepalive packet was received,
in the format hh:mm:ss.
Input packets Number of packets received on the logical interface. None specified
Output packets Number of packets transmitted on the logical interface. None specified
LCP state (PPP) Link Control Protocol state. none detail extensive
NCP state (PPP) Network Control Protocol state. detail extensive none
CHAP state (PPP) Displays the state of the Challenge Handshake Authentication none detail extensive
Protocol (CHAP) during its transaction.
Protocol Protocol family configured on the logical interface. detail extensive none
protocol-family Protocol family configured on the logical interface. If the protocol is inet, brief
the IP address of the interface is also displayed.
Generation Unique number for use by Juniper Networks technical support only. detail extensive
Route table Routing table in which the logical interface address is located. For example, detail extensive none
0 refers to the routing table inet.0.
Flags Information about the protocol family flags. Possible values are described detail extensive none
in the “Family Flags” section under Common Output Fields Description.
Addresses, Flags Information about the addresses configured for the protocol family. detail extensive none
Possible values are described in the “Addresses Flags” section under
Common Output Fields Description.
Destination IP address of the remote side of the connection. detail extensive none
Sample Output
show interfaces (PPPoE)
user@host> show interfaces pp0
ge-1/0/1.32767
Input packets : 6
Output packets: 6
LCP state: Opened
NCP state: inet: Opened, inet6: Not-configured, iso: Not-configured, mpls:
Not-configured
CHAP state: Closed
PAP state: Success
Protocol inet, MTU: 1500
Flags: Sendbcast-pkt-to-re
Addresses, Flags: Is-Primary
Local: 203.0.113.1
Logical interface pp0.0 (Index 69) (SNMP ifIndex 96) (Generation 194)
Flags: Point-To-Point SNMP-Traps 0x4000 Encapsulation: PPPoE
PPPoE:
State: SessionUp, Session ID: 26,
Session AC name: None, AC MAC address: 00:00:5e:00:53:12,
Service name: None, Configured AC name: None,
Auto-reconnect timeout: Never, Idle timeout: Never,
Underlying interface: ge-3/0/1.0 (Index 67)
Traffic statistics:
Input bytes : 252
Output bytes : 296
Input packets: 7
Output packets: 8
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
740
Input packets: 0
Output packets: 0
Local statistics:
Input bytes : 252
Output bytes : 296
Input packets: 7
Output packets: 8
Transit statistics:
Input bytes : 0 0 bps
Output bytes : 0 0 bps
Input packets: 0 0 pps
Output packets: 0 0 pps
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Keepalive settings: Interval 10 seconds, Up-count 1, Down-count 3
Keepalive statistics:
Input : 1 (last seen 00:00:00 ago)
Output: 1 (last sent 00:00:03 ago)
LCP state: Opened
NCP state: inet: Opened, inet6: Not-configured, iso: Not-configured, mpls:
Not-configured
CHAP state: Closed
PAP state: Closed
Protocol inet, MTU: 1492, Generation: 171, Route table: 0
Flags: None
Addresses, Flags: Is-Preferred Is-Primary
Destination: 203.0.113.2, Local: 203.0.113.1, Broadcast: Unspecified,
Generation: 206
741
Release Information
Command introduced in Junos OS Release 9.0.
Description
(MX Series and M Series routers only) Display status information about the specified demux interface.
Options
none—Display standard information about the specified demux interface.
snmp-index snmp-index—(Optional) Display information for the specified SNMP index of the interface.
RELATED DOCUMENTATION
Output Fields
742
Table 42 on page 742 lists the output fields for the show interfaces demux0 (Demux Interfaces) command.
Output fields are listed in the approximate order in which they appear.
Physical Interface
Interface index Index number of the physical interface, which reflects its initialization brief detail
sequence. extensive none
Enabled State of the interface. Possible values are described in the “Enabled Field” brief detail
section under Common Output Fields Description. extensive none
Physical link Status of the physical link (Up or Down). detail extensive
none
Interface index Index number of the physical interface, which reflects its initialization detail extensive
sequence. none
Targeting Status of aggregated Ethernet links that are configured with targeted extensive
summary distribution (primary or backup)
Bandwidth Bandwidth allocated to the aggregated Ethernet links that are configured extensive
with targeted distribution.
SNMP ifIndex SNMP index number for the physical interface. detail extensive
none
Generation Unique number for use by Juniper Networks technical support only. detail extensive
Type Type of interface. Software-Pseudo indicates a standard software interface brief detail
with no associated hardware device. extensive none
Link-level type Encapsulation being used on the physical interface. brief detail
extensive
743
Table 42: show interfaces demux0 (Demux Interfaces) Output Fields (continued)
MTU Maximum transmission unit size on the physical interface. brief detail
extensive
Clocking Reference clock source: Internal (1) or External (2). brief detail
extensive
Device flags Information about the physical device. Possible values are described in brief detail
the “Device Flags” section under Common Output Fields Description. extensive none
Interface flags Information about the interface. Possible values are described in the brief detail
“Interface Flags” section under Common Output Fields Description. extensive none
Link flags Information about the link. Possible values are described in the “Link Flags” detail extensive
section under Common Output Fields Description. none
Hold-times Current interface hold-time up and hold-time down, in milliseconds. detail extensive
Last flapped Date, time, and how long ago the interface went from down to up. The detail extensive
format is Last flapped: year-month-day hour:minute:second:timezone none
(hour:minute:second ago). For example, Last flapped: 2002-04-26 10:52:40
PDT (04:33:20 ago).
Statistics last Time when the statistics for the interface were last set to zero. detail extensive
cleared
744
Table 42: show interfaces demux0 (Demux Interfaces) Output Fields (continued)
Traffic statistics Number and rate of bytes and packets received and transmitted on the detail extensive
physical interface.
Input errors Input errors on the interface whose definitions are as follows: extensive
Input Rate Input rate in bits per second (bps) and packets per second (pps). none
745
Table 42: show interfaces demux0 (Demux Interfaces) Output Fields (continued)
Output errors Output errors on the interface. The following paragraphs explain the extensive
counters whose meaning might not be obvious:
Logical Interface
Index Index number of the logical interface, which reflects its initialization detail extensive
sequence. none
SNMP ifIndex SNMP interface index number for the logical interface. detail extensive
none
Generation Unique number for use by Juniper Networks technical support only. detail
Flags Information about the logical interface. Possible values are described in brief detail
the “Logical Interface Flags” section under Common Output Fields extensive none
Description.
ACI VLAN: Name of the dynamic profile that defines the agent circuit identifier (ACI) brief detail
Dynamic Profile interface set. If configured, the ACI interface set enables the underlying extensive none
demux interface to create dynamic VLAN subscriber interfaces based on
ACI information.
746
Table 42: show interfaces demux0 (Demux Interfaces) Output Fields (continued)
Traffic statistics Number and rate of bytes and packets received and transmitted on the detail extensive
specified interface set.
NOTE: The packet and byte counts in these fields include traffic that
is dropped and does not leave the router.
Local statistics Number of transit bytes and packets received and transmitted on the local detail extensive
interface.
Table 42: show interfaces demux0 (Demux Interfaces) Output Fields (continued)
Transit statistics Number and rate of bytes and packets transiting the switch. detail extensive
NOTE: The packet and byte counts in these fields include traffic that is
dropped and does not leave the router.
IPv6 Transit Number of IPv6 transit bytes and packets received and transmitted on detail extensive
statistics the logical interface if IPv6 statistics tracking is enabled.
NOTE: The packet and byte counts in these fields include traffic that is
dropped and does not leave the router.
Protocol Protocol family. Possible values are described in the “Protocol Field” detail extensive
section under Common Output Fields Description. none
MTU Maximum transmission unit size on the logical interface. detail extensive
none
Maximum labels Maximum number of MPLS labels configured for the MPLS protocol family detail extensive
on the logical interface. none
Generation Unique number for use by Juniper Networks technical support only. detail extensive
Route table Route table in which the logical interface address is located. For example, detail extensive
0 refers to the routing table inet.0.
Flags Information about protocol family flags. Possible values are described in detail extensive
the “Family Flags” section under Common Output Fields Description. none
748
Table 42: show interfaces demux0 (Demux Interfaces) Output Fields (continued)
Mac-Validate Number of MAC address validation failures for packets and bytes. This detail extensive
Failures field is displayed when MAC address validation is enabled for the logical none
interface.
Addresses, Flags Information about the address flags. Possible values are described in the detail extensive
“Addresses Flags” section under Common Output Fields Description. none
Generation Unique number for use by Juniper Networks technical support only. detail extensive
Link Name of the physical interfaces for member links in an aggregated Ethernet detail extensive
bundle for a PPPoE over aggregated Ethernet configuration. PPPoE traffic none
goes out on these interfaces.
Dynamic-profile Name of the PPPoE dynamic profile assigned to the underlying interface. detail extensive
none
Service Name Name of the PPPoE service name table assigned to the PPPoE underlying detail extensive
Table interface. none
Max Sessions Maximum number of dynamic PPPoE logical interfaces that the router detail extensive
can activate on the underlying interface. none
Duplicate State of duplicate protection: On or Off. Duplicate protection prevents detail extensive
Protection the activation of another dynamic PPPoE logical interface on the same none
underlying interface when a dynamic PPPoE logical interface for a client
with the same MAC address is already active on that interface.
Direct Connect State of the configuration to ignore DSL Forum VSAs: On or Off. When detail extensive
configured, the router ignores any of these VSAs received from a directly none
connected CPE device on the interface.
749
Table 42: show interfaces demux0 (Demux Interfaces) Output Fields (continued)
Sample Output
show interfaces demux0 (Demux)
user@host> show interfaces demux0
Logical interface demux0.0 (Index 87) (SNMP ifIndex 84) (Generation 312)
Flags: SNMP-Traps 0x4000 Encapsulation: ENET2
Demux:
Underlying interface: ge-2/0/1.0 (Index 74)
Family Inet Source prefixes, total 1
Prefix: 203.0.113/24
Traffic statistics:
Input bytes : 0
Output bytes : 1554
Input packets: 0
Output packets: 37
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Local statistics:
Input bytes : 0
Output bytes : 1554
Input packets: 0
Output packets: 37
Transit statistics:
Input bytes : 0 0 bps
Output bytes : 0 0 bps
Input packets: 0 0 pps
Output packets: 0 0 pps
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Protocol inet, MTU: 1500, Generation: 395, Route table: 0
Flags: Is-Primary, Mac-Validate-Strict
Mac-Validate Failures: Packets: 0, Bytes: 0
Addresses, Flags: Is-Preferred Is-Primary
Destination: 203.0.113/24, Local: 203.0.113.13, Broadcast: 203.0.113.255,
Generation: 434
show interfaces demux0 extensive (Targeted Distribution for Aggregated Ethernet Links)
user@host> show interfaces demux0.1073741824 extensive
ENET2
Demux: Source Family Inet
ACI VLAN:
Dynamic Profile: aci-vlan-set-profile
Demux:
Underlying interface: ge-1/0/0 (Index 138)
Input packets : 18
Output packets: 16
Protocol inet, MTU: 1500
Flags: Sendbcast-pkt-to-re, Unnumbered
Donor interface: lo0.0 (Index 322)
Preferred source address: 203.0.113.202
Addresses, Flags: Primary Is-Default Is-Primary
Local: 203.0.113.119
Protocol pppoe
Dynamic Profile: aci-vlan-pppoe-profile,
Service Name Table: None,
Max Sessions: 32000, Max Sessions VSA Ignore: Off,
Duplicate Protection: On, Short Cycle Protection: Off,
Direct Connect: Off,
AC Name: nbc
753
Release Information
Command introduced before Junos OS Release 7.4.
both-ingress-egress, egress, and ingress options introduced in Junos OS Release 7.6.
Command introduced in Junos OS Release 9.0 for EX Series.
Command introduced in Junos OS Release 11.1 for the QFX Series.
l2-statistics option introduced in Junos OS Release 12.1.
Command introduced in Junos OS Release 14.1X53-D20 for the OCX Series.
buffer-occupancy statement introduced in Junos OS Release 19.1R1 for QFX5000 Series switches.
Description
Display class-of-service (CoS) queue information for physical interfaces.
Options
none—Show detailed CoS queue statistics for all physical interfaces.
aggregate—(Optional) Display the aggregated queuing statistics of all logical interfaces that have
traffic-control profiles configured. (Not on the QFX Series.)
both-ingress-egress—(Optional) On Gigabit Ethernet Intelligent Queuing 2 (IQ2) PICs, display both ingress
and egress queue statistics. (Not on the QFX Series.)
forwarding-class forwarding-class—(Optional) Forwarding class name for this queue. Shows detailed CoS
statistics for the queue associated with the specified forwarding class.
ingress—(Optional) On Gigabit Ethernet IQ2 PICs, display ingress queue statistics. (Not on the QFX Series.)
interface-name—(Optional) Show detailed CoS queue statistics for the specified interface.
l2-statistics—(Optional) Display Layer 2 statistics for MLPPP, FRF.15, and FRF.16 bundles
754
buffer-occupancy—Displays the peak buffer occupancy for each queue while buffer-monitor-enable is
enabled at the [edit chassis fpc slot-number traffic-manager] hierarchy level.
remaining-traffic—(Optional) Display the remaining-traffic queue statistics of all logical interfaces that
have traffic-control profiles configured.
Transmitted packets and transmitted byte counts are displayed for the Layer 2 level with the addition
of encapsulation overheads applied for fragmentation, as shown in Table 43 on page 754. Others
counters, such as packets and bytes queued (input) and drop counters, are displayed at the Layer 3
level. In the case of link fragmentation and interleaving (LFI) for which fragmentation is not applied,
corresponding Layer 2 overheads are added, as shown in Table 43 on page 754.
Bytes Bytes
MLPPP (Long) 13 12 8
MLPPP (short) 11 10 8
MLFR (FRF15) 12 10 8
MFR (FRF16) 10 8 -
MCMLPPP(Long) 13 12 -
MCMLPPP(Short) 11 10 -
Fragments 2 .. n :
Fragments 2 ...n :
Fragments 2 ...n :
Fragmentaion header : 2 bytes
Framerelay header : 2 bytes
HDLC flag and FCS : 4 bytes
756
MLFR (FRF15):
=============
Framerelay header : 2 bytes
Control,NLPID : 2 bytes
HDLC flag and FCS : 4 bytes
• A 1000-byte packet is sent to a mlppp bundle without any fragmentation. At the Layer 2 level, bytes
transmitted is 1013 in 1 packet. This overhead is for MLPPP long sequence encap.
• A 1000-byte packet is sent to a mlppp bundle with a fragment threshold of 250byte. At the Layer
2 level, bytes transmitted is 1061 bytes in 5 packets.
• A 1000-byte LFI packet is sent to an mlppp bundle. At the Layer 2 level, bytes transmitted is 1008
in 1 packet.
remaining-traffic—(Optional) Display the queuing statistics of all logical interfaces that do not have
traffic-control profiles configured. (Not on the QFX Series.)
Additional Information
For rate-limited interfaces hosted on Modular Interface Cards (MICs), Modular Port Concentrators (MPCs),
or Enhanced Queuing DPCs, rate-limit packet-drop operations occur before packets are queued for
transmission scheduling. For such interfaces, the statistics for queued traffic do not include the packets
that have already been dropped due to rate limiting, and consequently the displayed statistics for queued
traffic are the same as the displayed statistics for transmitted traffic.
NOTE: For rate-limited interfaces hosted on other types of hardware, rate-limit packet-drop
operations occur after packets are queued for transmission scheduling. For these other interface
types, the statistics for queued traffic include the packets that are later dropped due to rate
limiting, and consequently the displayed statistics for queued traffic equals the sum of the
statistics for transmitted and rate-limited traffic.
On M Series routers (except for the M320 and M120 routers), this command is valid only for a PIC installed
on an enhanced Flexible PIC Concentrator (FPC).
757
Queue statistics for aggregated interfaces are supported on the M Series and T Series routers only. Statistics
for an aggregated interface are the summation of the queue statistics of the child links of that aggregated
interface. You can view the statistics for a child interface by using the show interfaces statistics command
for that child interface.
When you configure tricolor marking on a 10-port 1-Gigabit Ethernet PIC, for queues 6 and 7 only, the
output does not display the number of queued bytes and packets, or the number of bytes and packets
dropped because of RED. If you do not configure tricolor marking on the interface, these statistics are
available for all queues.
For the 4-port Channelized OC12 IQE PIC and 1-port Channelized OC48 IQE PIC, the Packet Forwarding
Engine Chassis Queues field represents traffic bound for a particular physical interface on the PIC. For all
other PICs, the Packet Forwarding Engine Chassis Queues field represents the total traffic bound for the
PIC.
For Gigabit Ethernet IQ2 PICs, the show interfaces queue command output does not display the number
of tail-dropped packets. This limitation does not apply to Packet Forwarding Engine chassis queues.
When fragmentation occurs on the egress interface, the first set of packet counters shows the
postfragmentation values. The second set of packet counters (under the Packet Forwarding Engine Chassis
Queues field) shows the prefragmentation values.
The behavior of the egress queues for the Routing Engine-Generated Traffic is not same as the configured
queue for MLPPP and MFR configurations.
For related CoS operational mode commands, see the CLI Explorer.
Release Description
18.3R1 Starting with Junos OS 18.3R1, the Tail-dropped packets counter is supported on PTX
Series Packet Transport Routers.
16.1 Starting with Junos OS Release 16.1, Last-packet enqueued output field is introduced.
RELATED DOCUMENTATION
Configuring CoS Traffic Classification for Ingress Queuing on Oversubscribed Ports on EX8200 Line Cards
(CLI Procedure)
ATM Interfaces User Guide for Routing Devices
Layer 2 Bridging, Address Learning, and Forwarding User Guide
Output Fields
Table 44 on page 758 lists the output fields for the show interfaces queue command. Output fields are
listed in the approximate order in which they appear.
Enabled State of the interface. Possible values are described in the “Enabled Field” section under
Common Output Fields Description.
Interface index Physical interface's index number, which reflects its initialization sequence.
Forwarding classes Total number of forwarding classes supported on the specified interface.
supported
759
Forwarding classes in Total number of forwarding classes in use on the specified interface.
use
Ingress queues On Gigabit Ethernet IQ2 PICs only, total number of ingress queues supported on the specified
supported interface.
Ingress queues in use On Gigabit Ethernet IQ2 PICs only, total number of ingress queues in use on the specified
interface.
Output queues Total number of output queues supported on the specified interface.
supported
Output queues in use Total number of output queues in use on the specified interface.
Egress queues Total number of egress queues supported on the specified interface.
supported
Egress queues in use Total number of egress queues in use on the specified interface.
Queue counters CoS queue number and its associated user-configured forwarding class name. Displayed on
(Ingress) IQ2 interfaces.
Burst size (Logical interfaces on IQ PICs only) Maximum number of bytes up to which the logical interface
can burst. The burst size is based on the shaping rate applied to the interface.
The following output fields are applicable to both interface component and Packet Forwarding component in the
show interfaces queue command:
NOTE: For Gigabit Ethernet IQ2 interfaces, the Queued Packets count is calculated by the
Junos OS interpreting one frame buffer as one packet. If the queued packets are very large
or very small, the calculation might not be completely accurate for transit traffic. The count
is completely accurate for traffic terminated on the router.
For rate-limited interfaces hosted on MICs or MPCs only, this statistic does not include traffic
dropped due to rate limiting. For more information, see “Additional Information” on page 756.
NOTE: This field is not supported on QFX5100, QFX5110, QFX5200, and QFX5210 switches
due to hardware limitations.
Queued Bytes Number of bytes queued to this queue. The byte counts vary by interface hardware. For more
information, see Table 45 on page 763.
For rate-limited interfaces hosted on MICs or MPCs only, this statistic does not include traffic
dropped due to rate limiting. For more information, see “Additional Information” on page 756.
NOTE: This field is not supported on QFX5100, QFX5110, QFX5200, and QFX5210 switches
due to hardware limitations.
Transmitted Packets Number of packets transmitted by this queue. When fragmentation occurs on the egress
interface, the first set of packet counters shows the postfragmentation values. The second
set of packet counters (displayed under the Packet Forwarding Engine Chassis Queues field)
shows the prefragmentation values.
NOTE: For Layer 2 statistics, see “Overhead for Layer 2 Statistics” on page 754
Transmitted Bytes Number of bytes transmitted by this queue. The byte counts vary by interface hardware. For
more information, see Table 45 on page 763.
NOTE: On MX Series routers, this number can be inaccurate when you issue the command
for a physical interface repeatedly and in quick succession, because the statistics for the child
nodes are collected infrequently. Wait ten seconds between successive iterations to avoid
this situation.
NOTE: For Layer 2 statistics, see “Overhead for Layer 2 Statistics” on page 754
761
NOTE: Starting with Junos OS 18.3R1, the Tail-dropped packets counter is supported on
PTX Series Packet Transport Routers.
For rate-limited interfaces hosted on MICs, MPCs, and Enhanced Queuing DPCs only, this
statistic is not included in the queued traffic statistics. For more information, see “Additional
Information” on page 756.
NOTE: The RL-dropped packets counter is not supported on the PTX Series Packet Transport
Routers, and is omitted from the output.
For rate-limited interfaces hosted on MICs, MPCs, and Enhanced Queuing DPCs only, this
statistic is not included in the queued traffic statistics. For more information, see “Additional
Information” on page 756.
NOTE: Due to accounting space limitations on certain Type 3 FPCs (which are supported in
M320 and T640 routers), this field does not always display the correct value for queue 6 or
queue 7 for interfaces on 10-port 1-Gigabit Ethernet PICs.
762
RED-dropped bytes Number of bytes dropped because of RED. The byte counts vary by interface hardware. For
more information, see Table 45 on page 763.
• (M Series and T Series routers only) On M320 and M120 routers and the T Series routers,
only the total number of dropped bytes is displayed. On all other M Series routers, the
output classifies dropped bytes into the following categories:
• Low, non-TCP—Number of low-loss priority non-TCP bytes dropped because of RED.
• Low, TCP—Number of low-loss priority TCP bytes dropped because of RED.
• High, non-TCP—Number of high-loss priority non-TCP bytes dropped because of RED.
• High, TCP—Number of high-loss priority TCP bytes dropped because of RED.
NOTE: Due to accounting space limitations on certain Type 3 FPCs (which are supported in
M320 and T640 routers), this field does not always display the correct value for queue 6 or
queue 7 for interfaces on 10-port 1-Gigabit Ethernet PICs.
Queue-depth bytes Displays queue-depth average, current, peak, and maximum values for RTP queues. Because
queue-depth values cannot be aggregated, displays the values for RTP queues regardless of
whether aggregate, remaining-traffic, or neither option is selected.
Peak (QFX5000 Series switches only) Diplays the peak buffer occupancy for the queue while
buffer-monitor-enable is enabled at the [edit chassis fpc slot-number traffic-manager] hierarchy
level.
Last-packet Starting with Junos OS Release 16.1, Last-packet enqueued output field is introduced. If
enqueued packet-timestamp is enabled for an FPC, shows the day, date, time, and year in the format
day-of-the-week month day-date hh:mm:ss yyyy when a packet was enqueued in the CoS queue.
When the timestamp is aggregated across all active Packet Forwarding Engines, the latest
timestamp for each CoS queue is reported.
Byte counts vary by interface hardware. Table 45 on page 763 shows how the byte counts on the outbound
interfaces vary depending on the interface hardware. Table 45 on page 763 is based on the assumption
that outbound interfaces are sending IP traffic with 478 bytes per packet.
763
Interface Output
Hardware Level Byte Count Includes Comments
Gigabit Interface Queued: 490 bytes per packet, representing 478 bytes The 12 additional bytes
Ethernet IQ of Layer 3 packet + 12 bytes include 6 bytes for the
and IQE PICs destination MAC address +
Transmitted: 490 bytes per packet, representing 478
4 bytes for the VLAN +
bytes of Layer 3 packet + 12 bytes
2 bytes for the Ethernet
Interface Output
Hardware Level Byte Count Includes Comments
Non-IQ PIC Interface T Series, TX Series, T1600, and MX Series routers: The Layer 2 overhead is 14
bytes for non-VLAN traffic
• Queued: 478 bytes of Layer 3 packet. and 18 bytes for VLAN
• Transmitted: 478 bytes of Layer 3 packet. traffic.
T4000 routers with Type 5 FPCs :
M Series routers:
Interface Output
Hardware Level Byte Count Includes Comments
IQ and IQE Interface Queued: 482 bytes per packet, representing 478 bytes The additional 4 bytes are
PICs with a of Layer 3 packet + 4 bytes for the Layer 2
SONET/SDH Point-to-Point Protocol
Transmitted: 482 bytes per packet, representing 478
interface (PPP) header.
bytes of Layer 3 packet + 4 bytes
Packet Queued: 478 bytes per packet, representing 478 bytes For transmitted packets, the
forwarding of Layer 3 packet additional 8 bytes includes
component 4 bytes for the PPP header
Transmitted: 486 bytes per packet, representing 478
and 4 bytes for a cookie.
bytes of Layer 3 packet + 8 bytes
Non-IQ PIC Interface T Series, TX Series, T1600, and MX Series routers: For transmitted packets, the
with a additional 5 bytes includes
SONET/SDH • Queued: 478 bytes of Layer 3 packet. 4 bytes for the PPP header
interface • Transmitted: 478 bytes of Layer 3 packet. and 1 byte for the packet
M Series routers: loss priority (PLP).
Interface Output
Hardware Level Byte Count Includes Comments
1-port Interface Queued: 478 bytes of Layer 3 packet + the full Layer 2 The Layer 2 overhead is 18
10-Gigabit overhead including CRC. bytes for non-VLAN traffic
Ethernet IQ2 and 22 bytes for VLAN
Transmitted: 478 bytes of Layer 3 packet + the full Layer
and IQ2–E traffic.
2 overhead including CRC.
PICs
8-port 1G IQ2
and IQ2-E
PICs
Sample Output
show interfaces queue (Rate-Limited Interface on a Gigabit Ethernet MIC in an MPC)
The following example shows queue information for the rate-limited interface ge-4/2/0 on a Gigabit
Ethernet MIC in an MPC. For rate-limited queues for interfaces hosted on MICs or MPCs, rate-limit packet
drops occur prior to packet output queuing. In the command output, the nonzero statistics displayed in
the RL-dropped packets and RL-dropped bytes fields quantify the traffic dropped to rate-limit queue 0
output to 10 percent of 1 gigabyte (100 megabits) per second. Because the RL-dropped traffic is not
included in the Queued statistics, the statistics displayed for queued traffic are the same as the statistics
for transmitted traffic.
The following example shows that the aggregated Ethernet interface, ae1, has traffic on queues af1 and
af12:
Queued:
Packets : 1725947945 372178 pps
Bytes : 220921336960 381110432 bps
Transmitted:
Packets : 1725947945 372178 pps
Bytes : 220921336960 381110432 bps
Tail-dropped packets : 0 0 pps
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queue: 2, Forwarding classes: ef1
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : 0 0 pps
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queue: 3, Forwarding classes: nc
Queued:
Packets : 571 0 pps
Bytes : 49318 336 bps
Transmitted:
Packets : 571 0 pps
Bytes : 49318 336 bps
Tail-dropped packets : 0 0 pps
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RED-dropped packets : 0 0 pps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queue: 2, Forwarding classes: assured-forwarding
Queued:
Packets : 4836136 3912 pps
Bytes : 333402032 2139056 bps
Transmitted:
Packets : 3600866 1459 pps
Bytes : 244858888 793696 bps
Tail-dropped packets : Not Available
RED-dropped packets : 1225034 2450 pps
Low : 1225034 2450 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 83302312 1333072 bps
Low : 83302312 1333072 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queue: 3, Forwarding classes: network-control
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RED-dropped packets : 0 0 pps
774
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queue: 2, Forwarding classes: assured-forwarding
Queued:
Packets : 4846580 3934 pps
Bytes : 222942680 1447768 bps
Transmitted:
Packets : 4846580 3934 pps
Bytes : 222942680 1447768 bps
Tail-dropped packets : 0 0 pps
RED-dropped packets : 0 0 pps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queue: 3, Forwarding classes: network-control
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : 0 0 pps
RED-dropped packets : 0 0 pps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : 0 0 pps
RED-dropped packets : 0 0 pps
Low, non-TCP : 0 0 pps
Low, TCP : 0 0 pps
High, non-TCP : 0 0 pps
High, TCP : 0 0 pps
RED-dropped bytes : 0 0 bps
Low, non-TCP : 0 0 bps
Low, TCP : 0 0 bps
High, non-TCP : 0 0 bps
High, TCP : 0 0 bps
Queue: 3, Forwarding classes: network-control
Queued:
Packets : 94386 12 pps
Bytes : 13756799 9568 bps
Transmitted:
Packets : 94386 12 pps
Bytes : 13756799 9568 bps
Tail-dropped packets : 0 0 pps
RED-dropped packets : 0 0 pps
Low, non-TCP : 0 0 pps
Low, TCP : 0 0 pps
High, non-TCP : 0 0 pps
High, TCP : 0 0 pps
RED-dropped bytes : 0 0 bps
Low, non-TCP : 0 0 bps
Low, TCP : 0 0 bps
High, non-TCP : 0 0 bps
High, TCP : 0 0 bps
Queued:
Packets : Not Available
Bytes : 0 0 bps
Transmitted:
Packets : 3 0 pps
Bytes : 126 0 bps
Tail-dropped packets : Not Available
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queue: 1, Forwarding classes: expedited-forwarding
Queued:
Packets : Not Available
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queue: 2, Forwarding classes: assured-forwarding
Queued:
Packets : Not Available
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queue: 3, Forwarding classes: network-control
Queued:
Packets : Not Available
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Packet Forwarding Engine Chassis Queues:
Queues: 4 supported, 4 in use
Queue: 0, Forwarding classes: best-effort
Queued:
Packets : 80564692 0 pps
782
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Packet Forwarding Engine Chassis Queues:
Queues: 4 supported, 4 in use
Queue: 0, Forwarding classes: best-effort
Queued:
Packets : 80564692 0 pps
Bytes : 3383717100 0 bps
Transmitted:
Packets : 80564692 0 pps
Bytes : 3383717100 0 bps
Tail-dropped packets : 0 0 pps
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queue: 1, Forwarding classes: expedited-forwarding
Queued:
Packets : 80564685 0 pps
Bytes : 3383716770 0 bps
Transmitted:
Packets : 80564685 0 pps
Bytes : 3383716770 0 bps
Tail-dropped packets : 0 0 pps
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queue: 2, Forwarding classes: assured-forwarding
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : 0 0 pps
RED-dropped packets : 0 0 pps
RED-dropped bytes : 0 0 bps
Queue: 3, Forwarding classes: network-control
Queued:
Packets : 9538 0 pps
Bytes : 3819840 0 bps
Transmitted:
Packets : 9538 0 pps
Bytes : 3819840 0 bps
Tail-dropped packets : 0 0 pps
786
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queue: 2, Forwarding classes: assured-forwarding
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RED-dropped packets : 0 0 pps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queue: 3, Forwarding classes: network-control
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RED-dropped packets : 0 0 pps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Forwarding classes: 16 supported, 4 in use
Egress queues: 4 supported, 4 in use
Queue: 0, Forwarding classes: best-effort
Queued:
788
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queue: 3, Forwarding classes: network-control
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
RED-dropped packets : 0 0 pps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
show interfaces queue (Channelized OC12 IQE Type 3 PIC in SONET Mode)
Queued:
Transmitted:
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
791
Packets : 0 0 pps
Bytes : 0 0 bps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
Packets : 60 0 pps
Transmitted:
Packets : 60 0 pps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
793
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
794
High : 0 0 bps
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
Packets : 0 0 pps
795
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
796
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
Transmitted:
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
798
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
799
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
Transmitted:
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
800
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
801
Bytes : 0 0 bps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Low : 0 0 pps
802
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
Total-dropped packets: 0 0 pps
Total-dropped bytes : 0 0 bps
Queue: 7, Forwarding classes: network-control
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
Total-dropped packets: 0 0 pps
Total-dropped bytes : 0 0 bps
Queue: 8, Forwarding classes: mcast
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : Not Available
Total-dropped packets: 0 0 pps
Total-dropped bytes : 0 0 bps
Queued:
Packets : 55576 1206 pps
Bytes : 29622008 5145472 bps
Transmitted:
Packets : 55576 1206 pps
Bytes : 29622008 5145472 bps
Tail-dropped packets : 0 0 pps
RL-dropped packets : 0 0 pps
RL-dropped bytes : 0 0 bps
RED-dropped packets : 0 0 pps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queue: 1, Forwarding classes: ef
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : 0 0 pps
RL-dropped packets : 0 0 pps
RL-dropped bytes : 0 0 bps
RED-dropped packets : 0 0 pps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queue: 2, Forwarding classes: af
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
807
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : 0 0 pps
RL-dropped packets : 0 0 pps
RL-dropped bytes : 0 0 bps
RED-dropped packets : 0 0 pps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queue: 3, Forwarding classes: nc
Queued:
Packets : 22231 482 pps
Bytes : 11849123 2057600 bps
Transmitted:
Packets : 22231 482 pps
Bytes : 11849123 2057600 bps
Tail-dropped packets : 0 0 pps
RL-dropped packets : 0 0 pps
RL-dropped bytes : 0 0 bps
RED-dropped packets : 0 0 pps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queue-depth bytes :
Average : 0
Current : 0
Peak : 0
Maximum : 32768
Queue: 2, Forwarding classes: assured-forwarding
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : 0 0 pps
RL-dropped packets : 0 0 pps
RL-dropped bytes : 0 0 bps
RED-dropped packets : 0 0 pps
Low : 0 0 pps
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queue-depth bytes :
Average : 0
Current : 0
Peak : 0
Maximum : 32768
Queue: 3, Forwarding classes: network-control
Queued:
Packets : 0 0 pps
Bytes : 0 0 bps
Transmitted:
Packets : 0 0 pps
Bytes : 0 0 bps
Tail-dropped packets : 0 0 pps
RL-dropped packets : 0 0 pps
RL-dropped bytes : 0 0 bps
RED-dropped packets : 0 0 pps
Low : 0 0 pps
810
Medium-low : 0 0 pps
Medium-high : 0 0 pps
High : 0 0 pps
RED-dropped bytes : 0 0 bps
Low : 0 0 bps
Medium-low : 0 0 bps
Medium-high : 0 0 bps
High : 0 0 bps
Queue-depth bytes :
Average : 0
Current : 0
Peak : 0
Maximum : 6258688
Bytes : 0
Tail-dropped packets : 0
show interfaces queue xe-6/0/39 (Line Card with Oversubscribed Ports in an EX8200 Switch)
user@switch> show interfaces queue xe-6/0/39
Packets : 0
Bytes : 0
Tail-dropped packets : 0
Queue: 5, Forwarding classes: expedited-forwarding
Queued:
Transmitted:
Packets : 0
Bytes : 0
Tail-dropped packets : 0
Queue: 6, Forwarding classes: mcast-af
Queued:
Transmitted:
Packets : 0
Bytes : 0
Tail-dropped packets : 0
Queue: 7, Forwarding classes: network-control
Queued:
Transmitted:
Packets : 46714
Bytes : 6901326
Tail-dropped packets : 0
High : 0
RED-dropped bytes : 0
Low : 0
High : 0
Queue: 2, Forwarding classes: mcast-be
Queued:
Transmitted:
Packets : 0
Bytes : 0
Tail-dropped packets : 0
RED-dropped packets : 0
Low : 0
High : 0
RED-dropped bytes : 0
Low : 0
High : 0
Queue: 4, Forwarding classes: mcast-ef
Queued:
Transmitted:
Packets : 0
Bytes : 0
Tail-dropped packets : 0
RED-dropped packets : 0
Low : 0
High : 0
RED-dropped bytes : 0
Low : 0
High : 0
Queue: 5, Forwarding classes: expedited-forwarding
Queued:
Transmitted:
Packets : 0
Bytes : 0
Tail-dropped packets : 0
RED-dropped packets : 0
Low : 0
High : 0
RED-dropped bytes : 0
Low : 0
High : 0
Queue: 6, Forwarding classes: mcast-af
Queued:
Transmitted:
Packets : 0
814
Bytes : 0
Tail-dropped packets : 0
RED-dropped packets : 0
Low : 0
High : 0
RED-dropped bytes : 0
Low : 0
High : 0
Queue: 7, Forwarding classes: network-control
Queued:
Transmitted:
Packets : 97990
Bytes : 14987506
Tail-dropped packets : 0
RED-dropped packets : 0
Low : 0
High : 0
RED-dropped bytes : 0
Low : 0
High : 0
Peak : 416
Queue: 8, Forwarding classes: mcast
Queue-depth bytes :
Peak : 0
816
show subscribers
Syntax
show subscribers
<detail | extensive | terse>
<aci-interface-set-name aci-interface-set-name>
<address address>
<agent-circuit-identifier agent-circuit-identifier>
<agent-remote-identifier agent-remote-identifier>
<aggregation-interface-set-name interface-set-name>
<client-type client-type>
<count>
<id session-id <accounting-statistics>>
<interface interface <accounting-statistics>>
<logical-system logical-system>
<mac-address mac-address>
<physical-interface physical-interface-name>
<profile-name profile-name>
<routing-instance routing-instance>
<stacked-vlan-id stacked-vlan-id>
<subscriber-state subscriber-state>
<user-name user-name>
<vci vci-identifier>
<vpi vpi-identifier>
<vlan-id vlan-id>
Release Information
Command introduced in Junos OS Release 9.3.
Command introduced in Junos OS Release 9.3 for EX Series switches.
client-type, mac-address, subscriber-state, and extensive options introduced in Junos OS Release 10.2.
count option usage with other options introduced in Junos OS Release 10.2.
Command introduced in Junos OS Release 11.1 for the QFX Series.
Options aci-interface-set-name and agent-circuit-identifier introduced in Junos OS Release 12.2.
The physical-interface and user-name options introduced in Junos OS Release 12.3.
Options vci and vpi introduced in Junos OS Release 12.3R3 and supported in later 12.3Rx releases.
Options vci and vpi supported in Junos OS Release 13.2 and later releases. (Not supported in Junos OS
Release 13.1.)
Command introduced in Junos OS Release 14.1X53-D20 for the OCX Series.
Enhanced subscriber management supported in Junos OS Release 15.1R3 on MX Series routers.
accounting-statistics option added in Junos OS Release 15.1R3 and 17.4R1 on MX Series routers.
aggregation-interface-set-name option added in Junos OS Release 18.4R1 on MX Series routers.
Description
817
Options
detail | extensive | terse—(Optional) Display the specified level of output.
aci-interface-set-name—(Optional) Display all dynamic subscriber sessions that use the specified agent
circuit identifier (ACI) interface set. Use the ACI interface set name generated by the router, such as
aci-1003-ge-1/0/0.4001, and not the actual ACI value found in the DHCP or PPPoE control packets.
address—(Optional) Display subscribers whose IP address matches the specified address. You must specify
the IPv4 or IPv6 address prefix without a netmask (for example, 192.0.2.0). If you specify the IP address
as a prefix with a netmask (for example, 192.0.2.0/32), the router displays a message that the IP address
is invalid, and rejects the command.
agent-circuit-identifier—(Optional) Display all dynamic subscriber sessions whose ACI value matches the
specified string. You can specify either the complete ACI string or a substring. To specify a substring,
you must enter characters that form the beginning of the string, followed by an asterisk (*) as a wildcard
to substitute for the remainder of the string. The wildcard can be used only at the end of the specified
substring; for example:
Starting in Junos OS Release 14.1R1 You must specify the complete ACI string; you cannot specify
a wildcard.
Starting in Junos OS Release 15.1R7, 16.1R7, 16.2R3, You can specify a substring, but you must include the wildcard
17.1R3, 17.2R3, 17.3R3, 17.4R2, 18.1R2, 18.2R1 character at the end of the substring.
agent-remote-identifier—(Optional) Display all dynamic subscriber sessions whose ARI value matches the
specified string. You must specify the complete ACI string; you cannot specify a wildcard.
client-type—(Optional) Display subscribers whose client type matches one of the following client types:
count—(Optional) Display the count of total subscribers and active subscribers for any specified option.
You can use the count option alone or with the address, client-type, interface, logical-system,
mac-address, profile-name, routing-instance, stacked-vlan-id, subscriber-state, or vlan-id options.
id session-id—(Optional) Display a specific subscriber session whose session ID matches the specified
subscriber ID. You can display subscriber IDs by using the show subscribers extensive or the show
subscribers interface extensive commands.
interface accounting-statistics—(Optional) Display subscriber accounting statistics for the specified interface.
Requires the actual-transmit-statistics statement to be configured in the dynamic profile for the
dynamic logical interface.
logical-system—(Optional) Display subscribers whose logical system matches the specified logical system.
mac-address—(Optional) Display subscribers whose MAC address matches the specified MAC address.
physical-interface-name—(M120, M320, and MX Series routers only) (Optional) Display subscribers whose
physical interface matches the specified physical interface.
profile-name—(Optional) Display subscribers whose dynamic profile matches the specified profile name.
routing-instance—(Optional) Display subscribers whose routing instance matches the specified routing
instance.
819
stacked-vlan-id—(Optional) Display subscribers whose stacked VLAN ID matches the specified stacked
VLAN ID.
subscriber-state—(Optional) Display subscribers whose subscriber state matches the specified subscriber
state (ACTIVE, CONFIGURED, INIT, TERMINATED, or TERMINATING).
user-name—(M120, M320, and MX Series routers only) (Optional) Display subscribers whose username
matches the specified subscriber name.
vci-identifier—(MX Series routers with MPCs and ATM MICs with SFP only) (Optional) Display active ATM
subscribers whose ATM virtual circuit identifier (VCI) matches the specified VCI identifier. The range
of values is 0 through 255.
vpi-identifier—(MX Series routers with MPCs and ATM MICs with SFP only) (Optional) Display active ATM
subscribers whose ATM virtual path identifier (VPI) matches the specified VPI identifier. The range of
values is 0 through 65,535.
vlan-id—(Optional) Display subscribers whose VLAN ID matches the specified VLAN ID, regardless of
whether the subscriber uses a single-tagged or double-tagged VLAN. For subscribers using a
double-tagged VLAN, this option displays subscribers where the inner VLAN tag matches the specified
VLAN ID. To display only subscribers where the specified value matches only double-tagged VLANs,
use the stacked-vlan-id stacked-vlan-id option to match the outer VLAN tag.
NOTE: Because of display limitations, logical system and routing instance output values are
truncated when necessary.
RELATED DOCUMENTATION
show subscribers (Single Session DHCP Dual Stack detail) on page 832
show subscribers (LNS on MX Series Routers) on page 832
show subscribers (L2TP Switched Tunnels) on page 833
show subscribers aggregation-interface-set-name on page 833
show subscribers client-type dhcp detail on page 833
show subscribers client-type dhcp detail (DHCPv6) on page 834
show subscribers client-type dhcp extensive on page 835
show subscribers client-type fixed-wireless-access on page 835
show subscribers client-type fixed-wireless-access detail (Detail) on page 836
show subscribers client-type vlan-oob detail on page 836
show subscribers count on page 837
show subscribers address detail (IPv6) on page 837
show subscribers detail (IPv4) on page 838
show subscribers detail (IPv6) on page 838
show subscribers detail (pseudowire Interface for GRE Tunnel) on page 839
show subscribers detail (IPv6 Static Demux Interface) on page 839
show subscribers detail (L2TP LNS Subscribers on MX Series Routers) on page 840
show subscribers detail (L2TP Switched Tunnels) on page 840
show subscribers detail (Tunneled Subscriber) on page 841
show subscribers detail (IPv4 and IPv6 Dual Stack) on page 841
show subscribers detail (ACI Interface Set Session) on page 842
show subscribers detail (PPPoE Subscriber Session with ACI Interface Set) on page 843
show subscribers extensive on page 843
show subscribers extensive (Aggregation Node Interface Set and DSL Forum Attributes) on page 844
show subscribers extensive (Passive Optical Network Circuit Interface Set) on page 845
show subscribers extensive (DNS Addresses from Access Profile or Global Configuration) on page 846
show subscribers extensive (DNS Addresses from RADIUS) on page 847
show subscribers extensive (IPv4 DNS Addresses from RADIUS, IPv6 from Access Profile or Global
Configuration) on page 847
show subscribers extensive (RPF Check Fail Filter) on page 848
show subscribers extensive (L2TP LNS Subscribers on MX Series Routers) on page 848
show subscribers extensive (IPv4 and IPv6 Dual Stack) on page 849
show subscribers extensive (ADF Rules ) on page 850
show subscribers extensive (Effective Shaping-Rate) on page 851
show subscribers extensive (PPPoE Subscriber Access Line Rates on page 851
show subscribers extensive (Subscriber Session Using PCEF Profile) on page 853
show subscribers aci-interface-set-name detail (Subscriber Sessions Using Specified ACI Interface
Set) on page 854
show subscribers agent-circuit-identifier detail (Subscriber Sessions Using Specified ACI
Substring) on page 855
show subscribers id accounting-statistics on page 856
show subscribers interface accounting-statistics on page 856
show subscribers interface extensive on page 857
821
Output Fields
Table 46 on page 821 lists the output fields for the show subscribers command. Output fields are listed in
the approximate order in which they appear.
Interface Interface associated with the subscriber. The router or switch displays subscribers whose
interface matches or begins with the specified interface.
IP Address/VLAN ID Subscriber IP address or VLAN ID associated with the subscriber in the form tpid.vlan-id
LS:RI Logical system and routing instance associated with the subscriber.
Type Subscriber client type (DHCP, FWA, GRE, L2TP, PPP, PPPoE, STATIC-INTERFACE, VLAN).
(MX Series) This field displays 255.255.255.255 by default. For tunneled or terminated PPP
subscribers only, this field displays the actual value of Framed-IP-Netmask when the
SDB_FRAMED_PROTOCOL attribute in the session database is equal to
AUTHD_FRAMED_PROTOCOL_PPP. This occurs in the use case where the LNS generates
access-internal routes when it receives Framed-IP-Netmask from RADIUS during authorization.
When it receives Framed-Pool from RADIUS, the pool mask is ignored and the default /32
mask is used.
Domain name server IP addresses for the DNS server, displayed in order of configuration.
inet
This field is displayed with the extensive option only when the addresses are derived from
the access profile or the global access configuration.
Domain name server IPv6 addresses for the DNS server, displayed in order of configuration.
inet6
This field is displayed with the extensive option only when the addresses are derived from
the access profile or the global access configuration.
IPv6 Prefix Subscriber IPv6 prefix. If you are using DHCPv6 prefix delegation, this is the delegated prefix.
IPv6 Address Pool Subscriber IPv6 address pool. The IPv6 address pool is used to allocate IPv6 prefixes to the
DHCPv6 clients.
IPv6 Network Prefix Length of the network portion of the IPv6 address.
Length
Interface (Enhanced subscriber management for MX Series routers) Name of the enhanced subscriber
management logical interface, in the form demux0.nnnn (for example, demux0.3221225472),
to which access-internal and framed subscriber routes are mapped.
Interface Set Internally generated name of the dynamic ACI or ALI interface set used by the subscriber
session. The prefix of the name indicates the string received in DHCP or PPPoE control packets
on which the interface set is based. For ALI interface sets, the prefix indicates that the value
is configured as a trusted option to identify the subscriber line.
The name of the interface set uses one of the following prefixes:
• aci—ACI; for example, aci-1033-demux0.3221225524. This is the only prefix allowed for
ACI interface sets.
• ari—ARI; for example, ari-1033-demux0.3221225524.
• aci+ari—Both the ACI and ARI; for example, aci+ari-1033-demux0.3221225524.
• noids—Neither the ACI nor the ARI were received; for example,
noids-1033-demux0.3221225524.
NOTE: ACI interface sets are configured with the agent-circuit-identifier autoconfiguration
stanza. ALI interface sets are configured with the line-identity autoconfiguration stanza.
Besides dynamic ACI and ALI interface sets, this field can be an interface set based on a
substring of the ARI string. This occurs when the dynamic profile includes the predefined
variable $junos-pon-id-interface-set-name, and the profile is applied for a passive optical
network (PON). The ARI string is inserted by the optical line terminal (OLT). The final substring
in the string, unique for the PON, identifies individual subscriber circuits, and is used as the
name of the interface set.
Interface Set Type Interface type of the ACI interface set: Dynamic. This is the only ACI interface set type currently
supported.
Interface Set Session Identifier of the dynamic ACI interface set entry in the session database.
ID
Underlying Interface Name of the underlying interface for the subscriber session.
Dynamic Profile Version number of the dynamic profile used for the subscriber.
Version
State Current state of the subscriber session (Init, Configured, Active, Terminating, Tunneled).
825
L2TP State Current state of the L2TP session, Tunneled or Tunnel-switched. When the value is
Tunnel-switched, two entries are displayed for the subscriber; the first entry is at the LNS
interface on the LTS and the second entry is at the LAC interface on the LTS.
Tunnel switch Profile Name of the L2TP tunnel switch profile that initiates tunnel switching.
Name
Stacked VLAN Id Stacked VLAN ID associated with the subscriber in the form tpid.vlan-id.
Agent Circuit ID For the dhcp client type, option 82 agent circuit ID associated with the subscriber. The ID is
displayed as an ASCII string unless the value has nonprintable characters, in which case it is
displayed in hexadecimal format.
For the vlan-oob client type, the agent circuit ID or access-loop circuit identifier that identifies
the subscriber line based on the subscriber-facing DSLAM interface on which the subscriber
request originates.
Agent Remote ID For the dhcp client type, option 82 agent remote ID associated with the subscriber. The ID is
displayed as an ASCII string unless the value has nonprintable characters, in which case it is
displayed in hexadecimal format.
For the vlan-oob client type, the agent remote ID or access-loop remote identifier that identifies
the subscriber line based on the NAS-facing DSLAM interface on which the subscriber request
originates.
826
Accounting Statistics Actual transmitted subscriber accounting statistics by session ID or interface. Service accounting
statistics are not included. These statistics do not include overhead bytes or dropped packets;
they are the accurate statistics used by RADIUS. The statistics are counted when the
actual-transmit-statistics statement is included in the dynamic profile.
ATM VPI (MX Series routers with MPCs and ATM MICs with SFP only) ATM virtual path identifier (VPI)
on the subscriber’s physical interface.
ATM VCI (MX Series routers with MPCs and ATM MICs with SFP only) ATM virtual circuit identifier
(VCI) for each VPI configured on the subscriber interface.
Login Time Date and time at which the subscriber logged in.
DHCPV6 Options len = number of hex values in the message. The hex values specify the type, length, value
(TLV) for DHCPv6 options.
Server DHCP len = number of hex values in the message. The hex values specify the type, length, value
Options (TLV) for DHCP options.
Server DHCPV6 len = number of hex values in the message. The hex values specify the type, length, value
Options (TLV) for DHCPv6 options.
DHCPV6 Header len = number of hex values in the message. The hex values specify the type, length, value
(TLV) for DHCPv6 options.
Effective Actual downstream traffic shaping rate for the subscriber, in kilobits per second.
shaping-rate
827
Dynamic Values for variables that are passed into the dynamic profile from RADIUS.
configuration
Service activation Time at which the first family in this service became active.
time
IPv4 rpf-check Fail Name of the filter applied by the dynamic profile to IPv4 packets that fail the RPF check.
Filter Name
IPv6 rpf-check Fail Name of the filter applied by the dynamic profile to IPv6 packets that fail the RPF check.
Filter Name
DHCP Options len = number of hex values in the message. The hex values specify the type, length, value
(TLV) for DHCP options, as defined in RFC 2132.
Underlying Session For DHCPv6 subscribers on a PPPoE network, displays the session ID of the underlying PPPoE
ID interface.
Service Sessions Number of service sessions (that is, a service activated using RADIUS CoA) associated with
the subscribers.
Session Timeout Number of seconds of access provided to the subscriber before the session is automatically
(seconds) terminated.
828
Idle Timeout Number of seconds subscriber can be idle before the session is automatically terminated.
(seconds)
IPv6 Delegated Name of the pool used for DHCPv6 prefix delegation.
Address Pool
IPv6 Delegated Length of the prefix configured for the IPv6 delegated address pool.
Network Prefix
Length
IPv6 Interface Address assigned by the Framed-Ipv6-Prefix AAA attribute. This field is displayed only when
Address the predefined variable $junos-ipv6-address is used in the dynamic profile.
ADF IPv4 Input Filter Name assigned to the Ascend-Data-Filter (ADF) interface IPv4 input filter (client or service
Name session). The filter name is followed by the rules (in hexadecimal format) associated with the
ADF filter and the decoded rule in Junos OS filter style.
ADF IPv4 Output Name assigned to the Ascend-Data-Filter (ADF) interface IPv4 output filter (client or service
Filter Name session). The filter name is followed by the rules (in hexadecimal format) associated with the
ADF filter and the decoded rule in Junos OS filter style.
ADF IPv6 Input Filter Name assigned to the Ascend-Data-Filter (ADF) interface IPv6 input filter (client or service
Name session). The filter name is followed by the rules (in hexadecimal format) associated with the
ADF filter and the decoded rule in Junos OS filter style.
ADF IPv6 Output Name assigned to the Ascend-Data-Filter (ADF) interface IPv6 output filter (client or service
Filter Name session). The filter name is followed by the rules (in hexadecimal format) associated with the
ADF filter and the decoded rule in Junos OS filter style.
IPv4 Input Filter Name assigned to the IPv4 input filter (client or service session).
Name
IPv4 Output Filter Name assigned to the IPv4 output filter (client or service session).
Name
IPv6 Input Filter Name assigned to the IPv6 input filter (client or service session).
Name
829
IPv6 Output Filter Name assigned to the IPv6 output filter (client or service session).
Name
IFL Input Filter Name Name assigned to the logical interface input filter (client or service session).
IFL Output Filter Name assigned to the logical interface output filter (client or service session).
Name
DSL type PPPoE subscriber’s access line type reported by the PPPoE intermediate agent in a PADI or
PADO packet in the Vendor-Specific-Tags TLV in subattribute DSL-Type (0x0091). The DSL
type is one of the following types: ADSL, ADSL2, ADSL2+, OTHER, SDSL, VDSL, or VDSL2.
Frame/Cell Mode Mode type of the PPPoE subscriber’s access line determined by the PPPoE daemon based on
the received subattribute DSL-Type (0x0091):
• Cell—When the DSL line type is one of the following: ADSL, ADSL2, or ADSL2+.
• Frame—When the DSL line type is one of the following: OTHER, SDSL, VDSL, or VDSL2.
The value is stored in the subscriber session database.
Overhead accounting Number of bytes added to or subtracted from the actual downstream cell or frame overhead
bytes to account for the technology overhead of the DSL line type. The value is determined by the
PPPoE daemon based on the received subattribute DSL-Type (0x0091). The value is stored
in the subscriber session database.
Actual upstream data Unadjusted upstream data rate for the PPPoE subscriber’s access line reported by the PPPoE
rate intermediate agent in a PADI or PADO packet in the Vendor-Specific-Tags TLV in subattribute
Actual-Net-Data-Rate-Upstream (0x0081).
Actual downstream Unadjusted downstream data rate for the PPPoE subscriber’s access line reported by the
data rate PPPoE intermediate agent in a PADI or PADO packet in the Vendor-Specific-Tags TLV in
subattribute Actual-Net-Data-Rate-Downstream (0x0082).
Adjusted Adjusted downstream data rate for the PPPoE subscriber’s access line, calculated by the PPPoE
downstream data daemon and stored in the subscriber session database.
rate
Adjusted upstream Adjusted upstream data rate for the PPPoE subscriber’s access line, calculated by the PPPoE
data rate daemon and stored in the subscriber session database.
830
Local TEID-U Tunnel endpoint identifier on the BNG for the GTP-U user plane tunnel to the eNodeB. The
identifier is allocated by the BNG.
A fully qualified local TEID-C consists of this identifier and the GTPU Tunnel Local IP address
value.
Local TEID-C Tunnel endpoint identifier on the BNG for the GTP-C control plane tunnel to the MME. The
identifier is allocated by the BNG.
A fully qualified local TEID-C consists of this identifier and the GTPC Local IP address value.
Remote TEID-U Tunnel endpoint identifier on the eNodeB for the GTP-U user plane tunnel to the BNG. The
identifier is allocated by the eNodeB.
A fully qualified remote TEID-U consists of this identifier and the GTPU Tunnel Remote IP
address value.
Remote TEID-C Tunnel endpoint identifier on the MME for the GTP-C control plane tunnel to the BNG. The
identifier is allocated by the MME.
A fully qualified remote TEID-C consists of this identifier and the GTPC Remote IP address
value.
GTPU Tunnel IP address of the S1-U interface on the eNodeB for the GTP-U tunnel endpoint.
Remote IP address
A fully qualified remote TEID-U consists of this address and the Remote TEID-U value.
GTPU Tunnel Local IP address of the S1-U interface on the BNG for the GTP-U tunnel endpoint.
IP address
A fully qualified local TEID-U consists of this address and the Local TEID-U value
GTPC Remote IP IP address of the S11 interface on the MME for the GTP-C tunnel endpoint.
address
A fully qualified remote TEID-C consists of this address and the Remote TEID-C value.
GTPC Local IP IP address of the S11 interface on the BNG for the GTP-C tunnel endpoint.
address
A fully qualified local TEID-C consists of this address and the Local TEID-C value.
Access Point Name Access point name (APN) for the user equipment. The APN corresponds to the connection
and service parameters that the subscriber’s mobile device can use for connecting to the
carrier’s gateway to the Internet.
831
Sample Output
show subscribers (IPv4)
user@host> show subscribers
Type: DHCP
User Name: dual-stack-retail33
IP Address: 10.10.0.53
IPv6 Address: 2001:db8:3000:0:0:8003::2
IPv6 Prefix: 2001:db8:3ffe:0:4::/64
Logical System: default
Routing Instance: default
Interface: ae0.3221225472
Interface type: Static
Underlying Interface: ae0.3221225472
Dynamic Profile Name: dhcp-retail-18
MAC Address: 00:00:5E:00:53:02
State: Active
DHCP Relay IP Address: 10.10.0.1
Radius Accounting ID: 27
Session ID: 27
PFE Flow ID: 2
Stacked VLAN Id: 2000
VLAN Id: 1
Login Time: 2014-05-15 10:12:10 PDT
DHCP Options: len 60
00 08 00 02 00 00 00 01 00 0a 00 03 00 01 00 00 64 01 01 02
00 06 00 04 00 03 00 19 00 03 00 0c 00 00 00 00 00 00 00 00
00 00 00 00 00 19 00 0c 00 00 00 00 00 00 00 00 00 00 00 00
Type: DHCP
IP Address: 203.0.113.29
IP Netmask: 255.255.0.0
Logical System: default
Routing Instance: default
Interface: demux0.1073744127
Interface type: Dynamic
Dynamic Profile Name: dhcp-demux
MAC Address: 00:00:5e:00:53:98
State: Active
Radius Accounting ID: user :2304
Login Time: 2009-08-25 14:43:52 PDT
Type: DHCP
IP Address: 203.0.113.27
IP Netmask: 255.255.0.0
Logical System: default
Routing Instance: default
Interface: demux0.1073744383
834
Type: DHCP
User Name: DEFAULTUSER
IPv6 Address: 2001:db8::2
IPv6 Prefix: 2001:db8:1::/64
Logical System: default
Routing Instance: default
Interface: demux0.3221225602
Interface type: Static
Underlying Interface: demux0.3221225602
Dynamic Profile Name: client-profile
MAC Address: 00:00:5E:00:53:01
State: Active
Radius Accounting ID: 142
Session ID: 142
PFE Flow ID: 148
Stacked VLAN Id: 1
VLAN Id: 1
Login Time: 2018-03-29 12:27:38 EDT
DHCP Options: len 56
00 08 00 02 00 00 00 01 00 0e 00 01 00 01 22 4f d0 33 00 11
01 00 00 01 00 03 00 0c 00 00 00 0a 00 04 9d 40 00 07 62 00
00 19 00 0c 00 00 00 0b 00 04 9d 40 00 07 62 00
Server DHCPV6 Options: len 94
00 0a 00 06 11 22 33 44 55 66 00 11 00 09 00 00 0c 4c 00 02
00 01 aa 00 11 00 20 00 00 0a 4c 00 02 00 02 32 33 00 03 00
03 34 35 36 00 05 00 06 31 32 33 34 35 36 00 06 00 01 31 00
11 00 09 00 00 0b 4c 00 02 00 01 bb 00 11 00 12 00 00 0d e9
00 01 00 03 aa bb cc 00 02 00 03 dd ee cc
DHCPV6 Header: len 4
01 fc e4 96
835
Type: DHCP
User Name: user
IP Address: 192.0.2.4
IP Netmask: 255.0.0.0
IPv6 Address: 2001:db8:3::103
IPv6 Prefix: 2001:db8::/68
Domain name server inet6: 2001:db8:1 abcd::2
Logical System: default
Routing Instance: default
Interface: ge-0/0/0.0
Interface type: Static
Underlying Interface: ge-0/0/0.0
MAC Address: 00:00:5e:00:53:01
State: Configured
Radius Accounting ID: 10
Session ID: 10
PFE Flow ID: 2
VLAN Id: 100
Agent Circuit ID: ge-0/0/0:100
Agent Remote ID: ge-0/0/0:100
Login Time: 2017-05-23 12:52:22 IST
DHCPV6 Options: len 69
00 01 00 0e 00 01 00 01 59 23 e3 31 00 10 94 00 00 01 00 08
00 02 00 00 00 19 00 29 00 00 00 00 00 04 9d 40 00 07 62 00
00 1a 00 19 00 09 3a 80 00 27 8d 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00
Server DHCP Options: len 13
3a 04 00 00 00 ff 00 3b 04 00 00 0f 00
Server DHCPV6 Options: len 8
00 0a 00 04 ab cd ef ab
DHCPV6 Header: len 4
01 00 00 04
IP Address Pool: al_pool30
IPv6 Address Pool: ia_na_pool
IPv6 Delegated Address Pool: prefix_delegate_pool
Type: FWA
User Name: 505024101215074
IP Address: 192.0.2.10
IP Netmask: 255.255.0.0
Interface: ps1.3221225472
Interface type: Dynamic
Dynamic Profile Name: fwa-profile
State: Active
Radius Accounting ID: 1
Session ID: 1
PFE Flow ID: 11
Login Time: 2019-04-10 14:10:12 PDT
Local TEID-U: 1
Local TEID-C: 1
Remote TEID-U: 2000000
Remote TEID-C: 1000000
GTPU Tunnel Remote IP Address: 203.0.113.1.3
GTPU Tunnel Local IP Address: 203.0.113.2.5
GTPC Remote IP Address: 203.0.113.1.2
GTPC Local IP Address: 203.0.113.1.1
Access Point Name: user21
Type: VLAN-OOB
User Name: L2WS.line-aci-1.line-ari-1
Logical System: default
Routing Instance: ISP1
Interface: demux0.1073744127
837
Type: PPPoE
User Name: pppoeTerV6User1Svc
IP Address: 203.0.113.137
IP Netmask: 255.0.0.0
IPv6 User Prefix: 2001:db8:0:c88::/32
Logical System: default
Routing Instance: default
Interface: pp0.1073745151
Interface type: Dynamic
Underlying Interface: demux0.8201
Dynamic Profile Name: pppoe-client-profile
MAC Address: 00:00:5e:00:53:53
Session Timeout (seconds): 31622400
Idle Timeout (seconds): 86400
State: Active
Radius Accounting ID: example demux0.8201:6544
Session ID: 6544
Agent Circuit ID: ifl3720
838
Type: DHCP
IP Address: 203.0.113.29
IP Netmask: 255.255.0.0
Primary DNS Address: 192.0.2.0
Secondary DNS Address: 192.0.2.1
Primary WINS Address: 192.0.2.3
Secondary WINS Address: 192.0.2.4
Logical System: default
Routing Instance: default
Interface: demux0.1073744127
Interface type: Dynamic
Dynamic Profile Name: dhcp-demux-prof
MAC Address: 00:00:5e:00:53:98
State: Active
Radius Accounting ID: example :2304
Idle Timeout (seconds): 600
Login Time: 2009-08-25 14:43:52 PDT
DHCP Options: len 52
35 01 01 39 02 02 40 3d 07 01 00 10 94 00 00 08 33 04 00 00
00 3c 0c 15 63 6c 69 65 6e 74 5f 50 6f 72 74 20 2f 2f 36 2f
33 2d 37 2d 30 37 05 01 06 0f 21 2c
Service Sessions: 2
Type: DHCP
User Name: pd-user1
IPv6 Prefix: 2001:db8:ffff:1::/32
Logical System: default
Routing Instance: default
Interface: ge-3/1/3.2
Interface type: Static
MAC Address: 00:00:5e:00:53:03
839
State: Active
Radius Accounting ID: 1
Session ID: 1
Login Time: 2011-08-25 12:12:26 PDT
DHCP Options: len 42
00 08 00 02 00 00 00 01 00 0a 00 03 00 01 00 51 ff ff 00 03
00 06 00 02 00 19 00 19 00 0c 00 00 00 00 00 00 00 00 00 00
00 00
demux0.3221225487 1 default:default
Type: STATIC-INTERFACE
User Name: user@example.com
IPv6 Prefix: 2001:db8:3:4:5:6:7:aa/32
Logical System: default
Routing Instance: default
Interface: demux0.1
Interface type: Static
Dynamic Profile Name: junos-default-profile
State: Active
Radius Accounting ID: 185
Login Time: 2010-05-18 14:33:56 EDT
840
Type: L2TP
User Name: user@example.com
IP Address: 203.0.113.58
IP Netmask: 255.255.0.0
Logical System: default
Routing Instance: default
Interface: si-5/2/0.1073749824
Interface type: Dynamic
Dynamic Profile Name: dyn-lns-profile2
Dynamic Profile Version: 1
State: Active
Radius Accounting ID: 8001
Session ID: 8001
Login Time: 2011-04-25 20:27:50 IST
Type: L2TP
User Name: user@example.com
Logical System: default
Routing Instance: default
Interface: si-2/1/0.1073741842
Interface type: Dynamic
Dynamic Profile Name: dyn-lts-profile
State: Active
L2TP State: Tunnel-switched
Tunnel switch Profile Name: ce-lts-profile
Local IP Address: 203.0.113.51
Remote IP Address: 192.0.2.0
Radius Accounting ID: 21
Session ID: 21
Login Time: 2013-01-18 03:01:11 PST
Type: L2TP
User Name: user@example.com
Logical System: default
Routing Instance: default
Interface: si-2/1/0.1073741843
Interface type: Dynamic
841
Type: PPPoE
User Name: user1@example.com
Logical System: default
Routing Instance: default
Interface: pp0.1
State: Active, Tunneled
Radius Accounting ID: 512
Type: VLAN
Logical System: default
Routing Instance: default
Interface: demux0.1073741824
Interface type: Dynamic
Dynamic Profile Name: svlanProfile
State: Active
Session ID: 1
Stacked VLAN Id: 0x8100.1001
VLAN Id: 0x8100.1
Login Time: 2011-11-30 00:18:04 PST
Type: PPPoE
User Name: dualstackuser1@example1.com
IP Address: 203.0.113.13
IPv6 Prefix: 2001:db8:1::/32
IPv6 User Prefix: 2001:db8:1:1::/32
Logical System: default
842
Type: DHCP
IPv6 Prefix: 2001:db8:1::/32
Logical System: default
Routing Instance: ASP-1
Interface: pp0.1073741825
Interface type: Static
MAC Address: 00:00:5e:00:53:02
State: Active
Radius Accounting ID: test :3
Session ID: 3
Underlying Session ID: 2
Login Time: 2011-11-30 00:18:35 PST
DHCP Options: len 42
00 08 00 02 0b b8 00 01 00 0a 00 03 00 01 00 00 64 03 01 02
00 06 00 02 00 19 00 19 00 0c 00 00 00 00 00 00 00 00 00 00
00 00
Type: VLAN
Logical System: default
Routing Instance: default
Interface: ge-1/0/0
Interface Set: aci-1001-ge-1/0/0.2800
Interface Set Session ID: 0
Underlying Interface: ge-1/0/0.2800
Dynamic Profile Name: aci-vlan-set-profile-2
Dynamic Profile Version: 1
State: Active
Session ID: 1
843
show subscribers detail (PPPoE Subscriber Session with ACI Interface Set)
user@host> show subscribers detail
Type: PPPoE
User Name: ppphint2
IP Address: 203.0.113.15
Logical System: default
Routing Instance: default
Interface: pp0.1073741825
Interface type: Dynamic
Interface Set: aci-1001-demux0.1073741824
Interface Set Type: Dynamic
Interface Set Session ID: 2
Underlying Interface: demux0.1073741824
Dynamic Profile Name: aci-vlan-pppoe-profile
Dynamic Profile Version: 1
MAC Address: 00:00:5e:00:53:02
State: Active
Radius Accounting ID: 3
Session ID: 3
Agent Circuit ID: aci-ppp-dhcp-dvlan-50
Login Time: 2012-03-07 13:46:53 PST
Type: DHCP
User Name: pd-user1
IPv6 Prefix: 2001:db8:ffff:1::/32
Logical System: default
Routing Instance: default
Interface: ge-3/1/3.2
Interface type: Static
MAC Address: 00:00:5e:00:53:03
State: Active
Radius Accounting ID: 1
Session ID: 1
Login Time: 2011-08-25 12:12:26 PDT
844
show subscribers extensive (Aggregation Node Interface Set and DSL Forum Attributes)
user@host> show subscribers extensive
Type: VLAN-OOB
User Name: ancp
Logical System: default
Routing Instance: isp1-subscriber
Interface: ge-1/0/0.3221225472
Interface type: Dynamic
Interface Set: FRA-DPU-C-100
Underlying Interface: ge-1/0/0
Core IFL Name: ge-1/0/4.0
Dynamic Profile Name: Prof_L2BSA
State: Active
Radius Accounting ID: 1
Session ID: 1
PFE Flow ID: 13
VLAN Id: 50
VLAN Map Id: 20
Inner VLAN Map Id: 1
Inner VLAN Tag Protocol Id: 0x88a8
Agent Circuit ID: circuit 201
Agent Remote ID: remote-id
Aggregation Interface-set Name: FRA-DPU-C-100
Login Time: 2018-05-29 08:43:42 EDT
Accounting interval: 72000
Dynamic configuration:
junos-cos-scheduler-map: 100m
junos-inner-vlan-tag-protocol-id: 0x88a8
junos-vlan-map-id: 20
Type: PPPoE
IP Address: 192.85.128.1
IP Netmask: 255.255.255.255
Logical System: default
Routing Instance: default
845
Interface: pp0.3221225474
Interface type: Dynamic
Interface Set: ge-1/0/0
Underlying Interface: demux0.3221225473
Dynamic Profile Name: pppoe-client-profile-with-cos
MAC Address: 00:10:94:00:00:03
State: Active
Radius Accounting ID: 3
Session ID: 3
PFE Flow ID: 16
Stacked VLAN Id: 50
VLAN Id: 7
Agent Circuit ID: circuit 201
Agent Remote ID: remote-id
Aggregation Interface-set Name: FRA-DPU-C-100
Login Time: 2018-05-29 08:43:45 EDT
IP Address Pool: pool-1
Accounting interval: 72000
DSL type: G.fast
Frame/cell mode: Frame
Overhead accounting bytes: 10
Actual upstream data rate: 100000 kbps
Actual downstream data rate: 200000 kbps
Calculated downstream data rate: 180000 kbps
Calculated upstream data rate: 90000 kbps
Adjusted upstream data rate: 80000 kbps
Adjusted downstream data rate: 160000 kbps
DSL Line Attributes
Agent Circuit ID: circuit 201
Agent Remote ID: remote-id
Actual upstream data rate: 100000
Actual downstream data rate: 200000
DSL type: G.fast
Access Aggregation Circuit ID: #FRA-DPU-C-100
Attribute type: 0xAA, Attribute length: 4
198 51 100 78
Type: DHCP
IP Address: 192.0.2.136
IP Netmask: 255.255.0.0
846
show subscribers extensive (DNS Addresses from Access Profile or Global Configuration)
user@host> show subscribers extensive
Type: DHCP
User Name: test-user@example-com
IP Address: 192.0.2.119
IP Netmask: 255.255.255.255
Domain name server inet: 198.51.100.1 198.51.100.2
IPv6 Address: 2001:db8::1:11
Domain name server inet6: 2001:db8:5001::12 2001:db8:3001::12
Logical System: default
Routing Instance: default
Interface: ge-2/0/3.0
Interface type: Static
Underlying Interface: ge-2/0/3.0
MAC Address: 00:00:5E:00:53:00
State: Active
Radius Accounting ID: 5
Session ID: 5
Login Time: 2017-01-31 11:16:21 IST
847
Type: DHCP
User Name: test-user@example-com
IP Address: 192.0.2.119
IP Netmask: 255.255.255.255
Primary DNS Address: 198.51.100.1
Secondary DNS Address: 198.51.100.2
IPv6 Address: 2001:db8::1:11
IPv6 Primary DNS Address: 2001:db8:5001::12
IPv6 Secondary DNS Address: 2001:db8:3001::12
Logical System: default
Routing Instance: default
Interface: ge-2/0/3.0
Interface type: Static
Underlying Interface: ge-2/0/3.0
MAC Address: 00:00:5E:00:53:00
State: Active
Radius Accounting ID: 5
Session ID: 5
Login Time: 2017-01-31 11:16:21 IST
DHCP Options: len 53
35 01 01 39 02 02 40 3d 07 01 00 10 94 00 00 03 33 04 00 00
00 3c 0c 16 63 6c 69 65 6e 74 5f 50 6f 72 74 20 2f 2f 35 2f
31 32 2d 30 2d 30 37 05 01 06 0f 21 2c
IP Address Pool: v4-pool
show subscribers extensive (IPv4 DNS Addresses from RADIUS, IPv6 from Access Profile or Global
Configuration)
user@host> show subscribers extensive
Type: DHCP
User Name: test-user@example-com
IP Address: 192.0.2.119
848
IP Netmask: 255.255.255.255
Primary DNS Address: 198.51.100.1
Secondary DNS Address: 198.51.100.2
IPv6 Address: 2001:db8::1:11
Domain name server inet6: 2001:db8:5001::12 2001:db8:3001::12
Logical System: default
Routing Instance: default
Interface: ge-2/0/3.0
Interface type: Static
Underlying Interface: ge-2/0/3.0
MAC Address: 00:00:5E:00:53:00
State: Active
Radius Accounting ID: 5
Session ID: 5
Login Time: 2017-01-31 11:16:21 IST
DHCP Options: len 53
35 01 01 39 02 02 40 3d 07 01 00 10 94 00 00 03 33 04 00 00
00 3c 0c 16 63 6c 69 65 6e 74 5f 50 6f 72 74 20 2f 2f 35 2f
31 32 2d 30 2d 30 37 05 01 06 0f 21 2c
IP Address Pool: v4-pool
...
Type: VLAN
Logical System: default
Routing Instance: default
Interface: ae0.1073741824
Interface type: Dynamic
Dynamic Profile Name: vlan-prof
State: Active
Session ID: 9
VLAN Id: 100
Login Time: 2011-08-26 08:17:00 PDT
IPv4 rpf-check Fail Filter Name: rpf-allow-dhcp
IPv6 rpf-check Fail Filter Name: rpf-allow-dhcpv6
...
Type: L2TP
User Name: user@example.com
IP Address: 203.0.113.58
IP Netmask: 255.255.0.0
Logical System: default
Routing Instance: default
Interface: si-5/2/0.1073749824
Interface type: Dynamic
Dynamic Profile Name: dyn-lns-profile2
Dynamic Profile Version: 1
State: Active
Radius Accounting ID: 8001
Session ID: 8001
Login Time: 2011-04-25 20:27:50 IST
IPv4 Input Filter Name: classify-si-5/2/0.1073749824-in
IPv4 Output Filter Name: classify-si-5/2/0.1073749824-out
Type: VLAN
Logical System: default
Routing Instance: default
Interface: demux0.1073741824
Interface type: Dynamic
Dynamic Profile Name: svlanProfile
State: Active
Session ID: 1
Stacked VLAN Id: 0x8100.1001
VLAN Id: 0x8100.1
Login Time: 2011-11-30 00:18:04 PST
Type: PPPoE
User Name: dualstackuser1@example1.com
IP Address: 203.0.113.13
IPv6 Prefix: 2001:db8:1::/32
IPv6 User Prefix: 2001:db8:1:1::/32
Logical System: default
Routing Instance: ASP-1
Interface: pp0.1073741825
Interface type: Dynamic
Dynamic Profile Name: dualStack-Profile1
MAC Address: 00:00:5e:00:53:02
850
State: Active
Radius Accounting ID: 2
Session ID: 2
Login Time: 2011-11-30 00:18:05 PST
IPv6 Delegated Network Prefix Length: 48
IPv6 Interface Address: 2001:db8:2016:1:1::1/64
IPv6 Framed Interface Id: 1:1:2:2
IPv4 Input Filter Name: FILTER-IN-pp0.1073741825-in
IPv4 Output Filter Name: FILTER-OUT-pp0.1073741825-out
IPv6 Input Filter Name: FILTER-IN6-pp0.1073741825-in
IPv6 Output Filter Name: FILTER-OUT6-pp0.1073741825-out
Type: DHCP
IPv6 Prefix: 2001:db8:1::/32
Logical System: default
Routing Instance: ASP-1
Interface: pp0.1073741825
Interface type: Static
MAC Address: 00:00:5e:00:53:02
State: Active
Radius Accounting ID: test :3
Session ID: 3
Underlying Session ID: 2
Login Time: 2011-11-30 00:18:35 PST
DHCP Options: len 42
00 08 00 02 0b b8 00 01 00 0a 00 03 00 01 00 00 64 03 01 02
00 06 00 02 00 19 00 19 00 0c 00 00 00 00 00 00 00 00 00 00
00 00
IPv6 Delegated Network Prefix Length: 48
...
Service Session ID: 12
Service Session Name: SERVICE-PROFILE
State: Active
Family: inet
ADF IPv4 Input Filter Name: __junos_adf_12-demux0.3221225474-inet-in
Rule 0: 010101000b0101020b020200201811
from {
source-address 203.0.113.232;
851
destination-address 198.51.100.0/24;
protocol 17;
}
then {
accept;
}
Type: VLAN
Logical System: default
Routing Instance: default
Interface: demux0.1073741837
Interface type: Dynamic
Interface Set: ifset-1
Underlying Interface: ae1
Dynamic Profile Name: svlan-dhcp-test
State: Active
Session ID: 1
Stacked VLAN Id: 0x8100.201
VLAN Id: 0x8100.201
Login Time: 2011-11-30 00:18:04 PST
Effective shaping-rate: 31000000k
...
Type: PPPoE
IP Address: 198.51.100.1
IP Netmask: 255.255.255.255
Logical System: default
Routing Instance: default
Interface: pp0.3221225475
Interface type: Dynamic
Underlying Interface: demux0.3221225474
Dynamic Profile Name: pppoe-client-profile-with-cos
MAC Address: 00:00:5e:00:53:02
State: Active
Radius Accounting ID: 4
852
Session ID: 4
PFE Flow ID: 14
Stacked VLAN Id: 40
VLAN Id: 1
Agent Circuit ID: circuit0
Agent Remote ID: remote0
Login Time: 2017-04-06 15:52:32 PDT
Type: VLAN
Logical System: default
Routing Instance: default
Interface: demux0.3221225517
Interface type: Dynamic
Underlying Interface: ge-1/0/3
Dynamic Profile Name: svlan-dhcp
State: Active
Session ID: 59
PFE Flow ID: 71
Stacked VLAN Id: 0x8100.1
VLAN Id: 0x8100.2
Login Time: 2017-03-28 08:23:08 PDT
Type: DHCP
User Name: pcefuser
IP Address: 192.0.2.26
IP Netmask: 255.0.0.0
Logical System: default
Routing Instance: default
Interface: demux0.3221225518
Interface type: Dynamic
Underlying Interface: demux0.3221225517
Dynamic Profile Name: dhcp-client-prof
MAC Address: 00:00:5e:00:53:01
State: Active
Radius Accounting ID: 60
Session ID: 60
PFE Flow ID: 73
Stacked VLAN Id: 1
VLAN Id: 2
854
show subscribers aci-interface-set-name detail (Subscriber Sessions Using Specified ACI Interface Set)
user@host> show subscribers aci-interface-set-name aci-1003-ge-1/0/0.4001 detail
Type: VLAN
Logical System: default
Routing Instance: default
Interface: ge-1/0/0.
Underlying Interface: ge-1/0/0.4001
Dynamic Profile Name: aci-vlan-set-profile
Dynamic Profile Version: 1
State: Active
855
Session ID: 13
Agent Circuit ID: aci-ppp-vlan-10
Login Time: 2012-03-12 10:41:56 PDT
Type: PPPoE
User Name: ppphint2
IP Address: 203.0.113.17
Logical System: default
Routing Instance: default
Interface: pp0.1073741834
Interface type: Dynamic
Interface Set: aci-1003-ge-1/0/0.4001
Interface Set Type: Dynamic
Interface Set Session ID: 13
Underlying Interface: ge-1/0/0.4001
Dynamic Profile Name: aci-vlan-pppoe-profile
Dynamic Profile Version: 1
MAC Address:
State: Active
Radius Accounting ID: 14
Session ID: 14
Agent Circuit ID: aci-ppp-vlan-10
Login Time: 2012-03-12 10:41:57 PDT
show subscribers agent-circuit-identifier detail (Subscriber Sessions Using Specified ACI Substring)
user@host> show subscribers agent-circuit-identifier aci-ppp-vlan detail
Type: VLAN
Logical System: default
Routing Instance: default
Interface: ge-1/0/0.
Underlying Interface: ge-1/0/0.4001
Dynamic Profile Name: aci-vlan-set-profile
Dynamic Profile Version: 1
State: Active
Session ID: 13
Agent Circuit ID: aci-ppp-vlan-10
Login Time: 2012-03-12 10:41:56 PDT
Type: PPPoE
User Name: ppphint2
IP Address: 203.0.113.17
Logical System: default
856
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Type: VLAN
User Name: user@test.example.com
Logical System: default
Routing Instance: testnet
Interface: demux0.1073741826
Interface type: Dynamic
Dynamic Profile Name: profile-vdemux-relay-23qos
MAC Address: 00:00:5e:00:53:04
State: Active
Radius Accounting ID: 12
Session ID: 12
858
Type: DHCP
User Name: user@test.example.com
IP Address: 192.0.2.0
IP Netmask: 255.255.255.0
Logical System: default
Routing Instance: testnet
Interface: demux0.1073741826
Interface type: Static
MAC Address: 00:00:5e:00:53:04
State: Active
Radius Accounting ID: 21
Session ID: 21
Login Time: 2011-10-20 16:24:33 EST
Service Sessions: 2
Type: VLAN
Interface: ge-1/2/0.1073741824
Interface type: Dynamic
Dynamic Profile Name: svlan-prof
State: Active
Stacked VLAN Id: 0x8100.101
VLAN Id: 0x8100.100
Login Time: 2009-03-27 11:57:19 PDT
Type: VLAN
Interface: ge-1/2/0.1073741824
Interface type: Dynamic
Dynamic Profile Name: svlan-prof
State: Active
Stacked VLAN Id: 0x8100.101
VLAN Id: 0x8100.100
Login Time: 2009-03-27 11:57:19 PDT
show subscribers stacked-vlan-id vlan-id interface detail (Combined Output for a Specific Interface)
user@host> show subscribers stacked-vlan-id 101 vlan-id 100 interface ge-1/2/0.* detail
Type: VLAN
Interface: ge-1/2/0.1073741824
Interface type: Dynamic
Dynamic Profile Name: svlan-prof
State: Active
Stacked VLAN Id: 0x8100.101
860
Type: DHCP
User Name: larry1
IP Address: 203.0.113.37
IP Netmask: 255.255.0.0
Logical System: default
Routing Instance: default
Interface: ge-1/0/0.1
Interface type: Static
Dynamic Profile Name: foo
MAC Address: 00:00:5e:00:53:01
State: Active
Radius Accounting ID: 1
Session ID: 1
Login Time: 2011-11-07 08:25:59 PST
DHCP Options: len 52
35 01 01 39 02 02 40 3d 07 01 00 10 94 00 00 01 33 04 00 00
00 3c 0c 15 63 6c 69 65 6e 74 5f 50 6f 72 74 20 2f 2f 32 2f
37 2d 30 2d 30 37 05 01 06 0f 21 2c
Type: VLAN
Interface: ge-1/0/0.1073741824
Interface type: Dynamic
Dynamic Profile Name: vlan-prof-tpid
861
State: Active
VLAN Id: 100
Login Time: 2009-03-11 06:48:54 PDT
Type: VLAN
Interface: ge-1/2/0.1073741825
Interface type: Dynamic
Dynamic Profile Name: vlan-prof-tpid
State: Active
VLAN Id: 100
Login Time: 2009-03-11 06:48:54 PDT
Type: PPPoE
User Name: testuser
IP Address: 203.0.113.2
IP Netmask: 255.255.0.0
Logical System: default
Routing Instance: default
Interface: pp0.0
Interface type: Static
MAC Address: 00:00:5e:00:53:02
State: Active
Radius Accounting ID: 2
Session ID: 2
ATM VPI: 40
ATM VCI: 50
Login Time: 2012-12-03 07:49:26 PST
IP Address Pool: pool_1
IPv6 Framed Interface Id: 200:65ff:fe23:102
Type: DHCP
User Name: simple_filters_service
IP Address: 203.0.113.111
IP Netmask: 255.0.0.0
Logical System: default
862