Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

ping mpls segment routing spring-te

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
ping mpls segment-routing spring-te
<egress-ip (active | color |  count | detail | exp | instance | logical-system | secondary | segment-list | size | skip-fec-validation  | source | sweep | tunnel-source) >
<label-stack ( detail | egress | labels | logical-system | nexthop-address | nexthop-interface ) >
<source-routing-path ( active | color | count | detail | egress-ip | exp | instance | logical-system | secondary | segment-list | size | skip-fec-validation | source | sweep | tunnel-source>

Description

Check the operability of MPLS segment routing label-switched path (LSP) connections added by segment routing traffic-engineered (SPRING-TE) protocol. Type Ctrl+c to interrupt a ping mpls segment routing spring-te command.

Options

egress-ip

Specify to ping to or install IP address to use when sending probes.

active

Specify to use the forwarding path or nexthops from the RIB table.

color

Specify the color identifier for the tunnel end-point.

  • Range: 1 through 4294967295

count count

(Optional) Number of ping requests to send. If count is not specified, five ping requests are sent.

  • Range: 1 through 1000000

  • Default: 5

detail

(Optional) Display detailed output.

exp exp

(Optional) Specify the class of service to use when sending probes.

  • Range: 0 through 7

instance routing-instance-name

(Optional) Allows you to ping a combination of the routing instance and forwarding equivalence class (FEC) associated with an LSP.

logical-system logical-system-name

(Optional) Specify the name of the logical system.

secondary

Specify to use configured secondary segment list for the given segment routing path.

segment-list

Specify the segment list to use when sending probes.

size bytes

(Optional) Size of the LSP ping request packet (88 through 65468 bytes). Packets are 4-byte aligned. For example, If you enter a size of 89, 90, 91, or 92, the router or switch uses a size value of 92 bytes. If you enter a packet size that is smaller than the minimum size, an error message is displayed reminding you of the 88-byte minimum.

skip-fec-validation

Specify to skip forwarding equivalence class (FEC) validation or use NIL FEC.

source source-address

(Optional) IP address of the outgoing interface. This address is sent in the IP source address field of the ping request. If this option is not specified, the default address is usually the loopback interface (lo.0).

sweep

(Optional) Automatically determine the size of the maximum transmission unit (MTU).

tunnel-source

Specify the source protocol used to create tunnel.

label-stack

Specify label stack for ping packets. This option works only if you do a minimum configuration of source-packet-routing at the [edit protocols] hierarchy level.

detail

(Optional) Display detailed output.

egress

Specify the egress IP address.

labels

Specify the labels in label stack.

  • Range: 16 through 1048575

logical-system logical-system-name

(Optional) Specify the name of the logical system.

nexthop-address address

Specify the nexthop IP address for the ping packet.

nexthop-interface interface

Specify the outgoing interface for the ping packet.

source-routing-path

Specify ping source path routing to use when sending probes.

active

Specify to use the forwarding path or nexthops from the RIB table.

color

Specify the color identifier for the tunnel end-point.

  • Range: 1 through 4294967295

count count

(Optional) Number of ping requests to send. If count is not specified, five ping requests are sent.

  • Range: 1 through 1000000

  • Default: 5

detail

(Optional) Display detailed output.

egress-ip

exp exp

(Optional) Specify the class of service to use when sending probes.

  • Range: 0 through 7

instance routing-instance-name

(Optional) Allows you to ping a combination of the routing instance and forwarding equivalence class (FEC) associated with an LSP.

logical-system logical-system-name

(Optional) Specify the name of the logical system.

secondary

Specify to use configured secondary segment list for the given segment routing path.

segment-list

Specify the segment list to use when sending probes.

size bytes

(Optional) Size of the LSP ping request packet (88 through 65468 bytes). Packets are 4-byte aligned. For example, If you enter a size of 89, 90, 91, or 92, the router or switch uses a size value of 92 bytes. If you enter a packet size that is smaller than the minimum size, an error message is displayed reminding you of the 88-byte minimum.

skip-fec-validation

Specify to skip forwarding equivalence class (FEC) validation or use NIL FEC.

source source-address

(Optional) IP address of the outgoing interface. This address is sent in the IP source address field of the ping request. If this option is not specified, the default address is usually the loopback interface (lo.0).

sweep

(Optional) Automatically determine the size of the maximum transmission unit (MTU).

tunnel-source

Specify the source protocol used to create tunnel.

Additional Information

Note:

With segment-list option, valid tunnel-source (source protocol used to create tunnel) is only static.

Note:

segment-list option is not present when tunnel-source is BGP SR-TE since BGP SR-TE does not have named segment list.

Note:

With source-routing-path name, valid tunnel-source are PCEP and static.

Note:

With tunnel-source as PCEP, secondary option is not valid as PCEP always sends one primary LSP.

Note:

FEC validation is performed for ping mpls segment-routing spring-te by default.

Note:

FEC validation is supported when segment-routing traffic-engineering (SR-TE) tunnel has IGP labels (OSPF and IS-IS) only. For all the other labels (for example, static, LDP, RSVP, etc.), you can use skip-fec-validation option.

Note:

For a combination of egress-ip and color options, valid tunnel-source are static and BGP SR-TE.

Note:

ping mpls segment-routing spring-te command with label-stack option is supported in operational mode only. It is not supported in configuration mode.

Note:

Parallel SID, binding SID, LDP over SR-TE is not supported.

Note:

ping mpls segment-routing spring-te command with label-stack option adds explicit null label at the bottom of the label stack for interoperability. You can include NIL FEC for label “0” or “router alert label” per OAM standard.

Required Privilege Level

network

Output Fields

When you enter this command, you are provided feedback on the status of your request. An exclamation point (!) indicates that an echo reply was received. A period (.) indicates that an echo reply was not received within the timeout period. An x indicates that an echo reply was received with an error code. Packets with error codes are not counted in the received packets count. They are accounted for separately.

Sample Output

ping mpls segment-routing spring-te

content_copy zoom_out_map
user@host> ping mpls segment-routing spring-te
Possible completions:
  source-routing-path Source Path routing to use when sending probes        
  egress-ip                  To/Install IP address to use when sending probes
  label-stack                Label stack for traceroute packets

ping mpls segment-routing spring-te (label-stack)

content_copy zoom_out_map
user@host>ping mpls segment-routing spring-te label-stack labels [10153 10152] nexthop-address 23.0.1.2 nexthop-interface ge-0/0/0.0 egress 5.5.5.5 detail

Request for seq 1, to interface 333, labels <0, 10153, 10152>, packet size 88 
Reply for seq 1, return code: Egress-ok, time: 4.009 ms
        Local transmit time: 2020-02-06 12:02:52 IST 530.885 ms
        Remote receive time: 2020-02-06 12:02:52 IST 534.894 ms
Request for seq 2, to interface 333, labels <0, 10153, 10152>, packet size 88 
Reply for seq 2, return code: Egress-ok, time: 4.117 ms
        Local transmit time: 2020-02-06 12:02:53 IST 530.870 ms
        Remote receive time: 2020-02-06 12:02:53 IST 534.987 ms
Request for seq 3, to interface 333, labels <0, 10153, 10152>, packet size 88 
Reply for seq 3, return code: Egress-ok, time: 4.121 ms
        Local transmit time: 2020-02-06 12:02:54 IST 530.915 ms
        Remote receive time: 2020-02-06 12:02:54 IST 535.036 ms
Request for seq 4, to interface 333, labels <0, 10153, 10152>, packet size 88 
Reply for seq 4, return code: Egress-ok, time: 3.979 ms
        Local transmit time: 2020-02-06 12:02:55 IST 531.869 ms
        Remote receive time: 2020-02-06 12:02:55 IST 535.848 ms
Request for seq 5, to interface 333, labels <0, 10153, 10152>, packet size 88 
Reply for seq 5, return code: Egress-ok, time: 3.707 ms
        Local transmit time: 2020-02-06 12:02:56 IST 530.960 ms
        Remote receive time: 2020-02-06 12:02:56 IST 534.667 ms

--- lsping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss

ping mpls segment-routing spring-te (source-routing-path) (No FEC validation)

content_copy zoom_out_map
user@host>ping mpls segment-routing spring-te source-routing-path path_1 egress-ip 5.5.5.5 color 6 skip-fec-validation detail 

Request for seq 1, to interface 334, labels <900005, 900041>, packet size 76 
Reply for seq 1, return code: Egress-ok, time: -1207.605 ms
        Local transmit time: 2019-04-02 09:29:55 IST 548.038 ms
        Remote receive time: 2019-04-02 09:29:54 IST 340.433 ms
Request for seq 2, to interface 334, labels <900005, 900041>, packet size 76 
Reply for seq 2, return code: Egress-ok, time: -1161.555 ms
        Local transmit time: 2019-04-02 09:29:56 IST 544.832 ms
        Remote receive time: 2019-04-02 09:29:55 IST 383.277 ms
Request for seq 3, to interface 334, labels <900005, 900041>, packet size 76 
Reply for seq 3, return code: Egress-ok, time: -1206.463 ms
        Local transmit time: 2019-04-02 09:29:57 IST 542.845 ms
        Remote receive time: 2019-04-02 09:29:56 IST 336.382 ms
Request for seq 4, to interface 334, labels <900005, 900041>, packet size 76 
Reply for seq 4, return code: Egress-ok, time: -1223.260 ms
        Local transmit time: 2019-04-02 09:29:58 IST 543.824 ms
        Remote receive time: 2019-04-02 09:29:57 IST 320.564 ms
Request for seq 5, to interface 334, labels <900005, 900041>, packet size 76 
Reply for seq 5, return code: Egress-ok, time: -1025.098 ms
        Local transmit time: 2019-04-02 09:29:59 IST 548.127 ms
        Remote receive time: 2019-04-02 09:29:58 IST 523.029 ms

--- lsping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss

ping mpls segment-routing spring-te (source-routing-path) (FEC validation)

content_copy zoom_out_map
user@host>ping mpls segment-routing spring-te source-routing-path path_1 detail

Request for seq 1, to interface 342, labels <800007, 800006, 800005>, packet size 80 
Reply for seq 1, return code: Egress-ok, time: 1223.132 ms
        Local transmit time: 2019-05-15 13:19:55 IST 233.274 ms
        Remote receive time: 2019-05-15 13:19:56 IST 456.406 ms
Request for seq 2, to interface 342, labels <800007, 800006, 800005>, packet size 80 
Reply for seq 2, return code: Egress-ok, time: 1240.785 ms
        Local transmit time: 2019-05-15 13:19:56 IST 238.590 ms
        Remote receive time: 2019-05-15 13:19:57 IST 479.375 ms
Request for seq 3, to interface 342, labels <800007, 800006, 800005>, packet size 80 
Reply for seq 3, return code: Egress-ok, time: 1247.976 ms
        Local transmit time: 2019-05-15 13:19:57 IST 240.568 ms
        Remote receive time: 2019-05-15 13:19:58 IST 488.544 ms
Request for seq 4, to interface 342, labels <800007, 800006, 800005>, packet size 80 
Reply for seq 4, return code: Egress-ok, time: 1408.181 ms
        Local transmit time: 2019-05-15 13:19:58 IST 234.108 ms
        Remote receive time: 2019-05-15 13:19:59 IST 642.289 ms
Request for seq 5, to interface 342, labels <800007, 800006, 800005>, packet size 80 
Reply for seq 5, return code: Egress-ok, time: 1237.968 ms
        Local transmit time: 2019-05-15 13:19:59 IST 234.587 ms
        Remote receive time: 2019-05-15 13:20:00 IST 472.555 ms

--- lsping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss

ping mpls segment-routing spring-te (egress-ip) (No FEC validation)

content_copy zoom_out_map
user@host>ping mpls segment-routing spring-te egress-ip 5.5.5.5 color 6 skip-fec-validation detail

Request for seq 1, to interface 334, labels <900005, 900041>, packet size 76 
Reply for seq 1, return code: Egress-ok, time: -1224.444 ms
        Local transmit time: 2019-04-02 09:43:35 IST 618.804 ms
        Remote receive time: 2019-04-02 09:43:34 IST 394.360 ms
Request for seq 2, to interface 334, labels <900005, 900041>, packet size 76 
Reply for seq 2, return code: Egress-ok, time: -1222.231 ms
        Local transmit time: 2019-04-02 09:43:36 IST 617.763 ms
        Remote receive time: 2019-04-02 09:43:35 IST 395.532 ms
Request for seq 3, to interface 334, labels <900005, 900041>, packet size 76 
Reply for seq 3, return code: Egress-ok, time: -1091.469 ms
        Local transmit time: 2019-04-02 09:43:37 IST 617.897 ms
        Remote receive time: 2019-04-02 09:43:36 IST 526.428 ms
Request for seq 4, to interface 334, labels <900005, 900041>, packet size 76 
Reply for seq 4, return code: Egress-ok, time: -1212.647 ms
        Local transmit time: 2019-04-02 09:43:38 IST 617.791 ms
        Remote receive time: 2019-04-02 09:43:37 IST 405.144 ms
Request for seq 5, to interface 334, labels <900005, 900041>, packet size 76 
Reply for seq 5, return code: Egress-ok, time: -1199.348 ms
        Local transmit time: 2019-04-02 09:43:39 IST 617.984 ms
        Remote receive time: 2019-04-02 09:43:38 IST 418.636 ms

--- lsping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss

ping mpls segment-routing spring-te (egress-ip) (FEC validation)

content_copy zoom_out_map
user@host>ping mpls segment-routing spring-te egress-ip 81.7.7.7 color 5 tunnel-source static detail 
Request for seq 1, to interface 342, labels <800007, 800006, 800005>, packet size 80 
Reply for seq 1, return code: Egress-ok, time: 1223.339 ms
        Local transmit time: 2019-05-15 13:29:21 IST 108.718 ms
        Remote receive time: 2019-05-15 13:29:22 IST 332.057 ms
Request for seq 2, to interface 342, labels <800007, 800006, 800005>, packet size 80 
Reply for seq 2, return code: Egress-ok, time: 1237.089 ms
        Local transmit time: 2019-05-15 13:29:22 IST 113.581 ms
        Remote receive time: 2019-05-15 13:29:23 IST 350.670 ms
Request for seq 3, to interface 342, labels <800007, 800006, 800005>, packet size 80 
Reply for seq 3, return code: Egress-ok, time: 1224.890 ms
        Local transmit time: 2019-05-15 13:29:23 IST 111.563 ms
        Remote receive time: 2019-05-15 13:29:24 IST 336.453 ms
Request for seq 4, to interface 342, labels <800007, 800006, 800005>, packet size 80 
Reply for seq 4, return code: Egress-ok, time: 1228.785 ms

        Local transmit time: 2019-05-15 13:29:24 IST 108.765 ms
        Remote receive time: 2019-05-15 13:29:25 IST 337.550 ms
Request for seq 5, to interface 342, labels <800007, 800006, 800005>, packet size 80 
Reply for seq 5, return code: Egress-ok, time: 1224.228 ms
        Local transmit time: 2019-05-15 13:29:25 IST 107.678 ms
        Remote receive time: 2019-05-15 13:29:26 IST 331.906 ms

--- lsping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss

Release Information

Command introduced in Junos OS Release 20.2R1.

footer-navigation