Related Documentation
- ACX, M, T Series
- atm-options
- M, MX, SRX, T Series
- mpls
- pop-all-labels
- required-depth
Removing MPLS Labels from Incoming Packets
The Junos OS can forward only IPv4 packets to a Monitoring Services PIC. IPv4 packets with MPLS labels cannot be forwarded to a Monitoring Services PIC. By default, if packets with MPLS labels are forwarded to the Monitoring Services PIC, they are discarded. To monitor packets with MPLS labels, you must remove the MPLS labels as the packets arrive on the interface.
You can remove up to two MPLS labels from an incoming packet by including the pop-all-labels statement at the [edit interfaces interface-name atm-options mpls] hierarchy level:
![]() | Note: On T Series devices, the pop-all-labels command can remove up to five MPLS labels from incoming packets. |
By default, the pop-all-labels statement takes effect for incoming packets with one or two labels. You can specify the number of MPLS labels an incoming packet must have for the pop-all-labels statement to take effect by including the required-depth statement at the [edit interfaces interface-name atm-options mpls pop-all-labels] hierarchy level:
The required depth can be 1, 2, or [ 1 2 ]. If you include the required-depth 1 statement, the pop-all-labels statement takes effect for incoming packets with one label only. If you include the required-depth 2 statement, the pop-all-labels statement takes effect for incoming packets with two labels only. If you include the required-depth [ 1 2 ] statement, the pop-all-labels statement takes effect for incoming packets with one or two labels. A required depth of [ 1 2 ] is equivalent to the default behavior of the pop-all-labels statement.
When you remove MPLS labels from incoming packets, note the following:
- The pop-all-labels statement has no effect on IP packets with three or more MPLS labels.
- When you enable MPLS label removal, you must configure all ports on a PIC with the same label popping mode and required depth.
- You use the pop-all-labels statement to enable passive monitoring applications, not active monitoring.
- You cannot apply MPLS filters or accounting to the MPLS labels because the labels are removed as soon as the packet arrives on the interface.
The following ATM encapsulation types are not supported on interfaces with MPLS label removal:
- atm-ccc-cell-relay
- atm-ccc-vc-mux
- atm-mlppp-llc
- atm-tcc-snap
- atm-tcc-vc-mux
- ether-over-atm-llc
- ether-vpls-over-atm-llc
Related Documentation
- ACX, M, T Series
- atm-options
- M, MX, SRX, T Series
- mpls
- pop-all-labels
- required-depth
Published: 2012-12-05
Related Documentation
- ACX, M, T Series
- atm-options
- M, MX, SRX, T Series
- mpls
- pop-all-labels
- required-depth