Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


traffic-class (loss-delay)


Hierarchy Level


Configure traffic class specific options.

Specify the traffic classes for which loss measurement has to be performed. This parameter takes one of the tc-all|tc-0|tc-1|tc-2|tc-3|tc-4|tc-5|tc-6|tc-7|tc-none traffic-class values. For each traffic class, you can configure the respective parameters.

To enable traffic-class parameters, configure the traffic-class-statistics configuration statement under the [edit protocol mpls statistic] hierarchy level.


average-sample-size sample size

(Optional) Specify the number of samples used for calculating the average of various metrics.

  • Default: 5

  • Range: 1 through 30

loss-threshold loss threshold value

Specify the threshold value that will be used with loss-threshold-window to calculate loss within specified window size.

  • Range: 1 through 4294967295

loss-threshold-window number of samples for loss threshold

Specify the number of samples used for loss threshold calculation.

  • Range: 1 through 30

measurement-quantity bytes|packets

(Optional) Specify whether packet or byte loss is being measured at the querier.

  • Default: packets

padding-size size

(Optional) Specify the delay-measurement message length, which is used to calculate the delay experienced by messages of different sizes.

  • Default: 0

  • Range: 1 through 1500

query-interval milliseconds

Specify the minimum transmit interval, which signifies how often the loss measurement message is generated from the querier.

  • Default: 10 seconds

  • Range: 1000 through 4294967295 milliseconds

rtt-delay-threshold rtt threshold value

Specify the round-trip delay threshold value.

  • Range: 1 through 4294967295 microseconds

twcd-delay-threshold twcd threshold value

Specify the two-way channel delay threshold value.

  • Range: 1 through 4294967295 microseconds

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 15.1.