1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
|
Internet Engineering Task Force (IETF) J. Luo, Ed.
Request for Comments: 7743 ZTE
Updates: 4379 L. Jin, Ed.
Category: Standards Track
ISSN: 2070-1721 T. Nadeau, Ed.
Brocade
G. Swallow, Ed.
Cisco
January 2016
Relayed Echo Reply Mechanism for Label Switched Path (LSP) Ping
Abstract
In some inter-AS (Autonomous System) and inter-area deployment
scenarios for RFC 4379 ("Label Switched Path (LSP) Ping and
Traceroute"), a replying Label Switching Router (LSR) may not have
the available route to an initiator, and the Echo Reply message sent
to the initiator would be discarded, resulting in false negatives or
a complete failure of operation of the LSP Ping and Traceroute. This
document describes extensions to the LSP Ping mechanism to enable the
replying LSR to have the capability to relay the Echo Response by a
set of routable intermediate nodes to the initiator. This document
updates RFC 4379.
Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in Section 2 of RFC 5741.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
http://www.rfc-editor.org/info/rfc7743.
Luo, et al. Standards Track [Page 1]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
Copyright Notice
Copyright (c) 2016 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Table of Contents
1. Introduction ....................................................3
1.1. Conventions Used in This Document ..........................3
2. Motivation ......................................................3
3. Extensions ......................................................5
3.1. Relayed Echo Reply Message .................................5
3.2. Relay Node Address Stack ...................................6
3.3. MTU Exceeded Return Code ...................................8
4. Procedures ......................................................8
4.1. Sending an Echo Request ....................................9
4.2. Receiving an Echo Request ..................................9
4.3. Originating a Relayed Echo Reply ..........................10
4.4. Relaying a Relayed Echo Reply .............................11
4.5. Sending an Echo Reply .....................................11
4.6. Sending Subsequent Echo Requests ..........................12
4.7. Impact on Traceroute ......................................12
5. LSP Ping Relayed Echo Reply Example ............................13
6. Security Considerations ........................................14
7. Backward Compatibility .........................................15
8. IANA Considerations ............................................15
8.1. MPLS Relayed Echo Reply ...................................15
8.2. Relay Node Address Stack TLV ..............................16
8.3. MTU Exceeded Return Code ..................................16
9. References .....................................................16
9.1. Normative References ......................................16
9.2. Informative References ....................................17
Acknowledgements ..................................................17
Contributors ......................................................17
Authors' Addresses ................................................18
Luo, et al. Standards Track [Page 2]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
1. Introduction
This document describes extensions to the Label Switched Path (LSP)
Ping specified in [RFC4379] by adding a Relayed Echo Reply mechanism
that could be used to report data-plane failures for inter-AS
(Autonomous System) and inter-area LSPs. Without these extensions,
the ping functionality provided by [RFC4379] would fail in many
deployed inter-AS scenarios, since the replying Label Switching
Router (LSR) in one AS may not have an available route to the
initiator in the other AS. The mechanism in this document defines a
new Message Type referred to as the "Relayed Echo Reply message" and
a new TLV referred to as the "Relay Node Address Stack TLV".
This document updates [RFC4379]; it includes updates to the Echo
Request sending procedure in Section 4.3 of [RFC4379], the Echo
Request receiving procedure in Section 4.4 of [RFC4379], the Echo
Reply sending procedure in Section 4.5 of [RFC4379], and the Echo
Reply receiving procedure in Section 4.6 of [RFC4379].
1.1. Conventions Used in This Document
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [RFC2119].
2. Motivation
LSP Ping [RFC4379] defines a mechanism to detect data-plane failures
and localize faults. The mechanism specifies that the Echo Reply
should be sent back to the initiator using a UDP packet with the
IPv4/IPv6 destination address set to an address of the LSR that
originated the Echo Request. This works in administrative domains
where IP-address reachability is allowed among LSRs and every LSR is
able to route back to the originating LSR. However, in practice,
this is often not the case due to intra-provider routing policy,
route hiding, and network address translation at Autonomous System
Border Routers (ASBRs). In fact, it is almost always the case that
in inter-AS scenarios, the only node in one AS to which direct
routing is allowed from the other AS is the ASBR, and routing
information from within one AS is not distributed into another AS.
Figure 1 demonstrates a case where an LSP is set up between PE1 and
PE2. If PE1's IP address is not distributed to AS2, a traceroute
from PE1 directed towards PE2 can result in a failure because an LSR
in AS2 may not be able to send the Echo Reply message. For example,
P2 cannot forward packets back to PE1 given that it is a routable IP
address in AS1 but not routable in AS2. In this case, PE1 would
Luo, et al. Standards Track [Page 3]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
detect a path break, as the Echo Reply messages would not be
received. Then, localization of the actual fault would not be
possible.
Note that throughout the document, "routable address" means that it
is possible to route an IP packet to this address using the normal
information exchanged by the IGP and BGP (or EGP) operating in the
AS.
+-------+ +-------+ +------+ +------+ +------+ +------+
| | | | | | | | | | | |
| PE1 +---+ P1 +---+ ASBR1+---+ ASBR2+---+ P2 +---+ PE2 |
| | | | | | | | | | | |
+-------+ +-------+ +------+ +------+ +------+ +------+
<---------------AS1-------------><---------------AS2------------>
<---------------------------- LSP ------------------------------>
Figure 1: Simple Inter-AS LSP Configuration
A second example that illustrates how [RFC4379] would be insufficient
would be the inter-area situation in a seamless MPLS architecture
[MPLSARCH] as shown below in Figure 2. In this example, LSRs in the
core network would not have an IP-reachable route to any of the
access nodes (ANs). When tracing an LSP from one AN to the remote
AN, the LSR1/LSR2 node cannot send the Echo Reply either, like the P2
node in the inter-AS scenario in Figure 1.
+-------+ +-------+ +------+ +------+
| | | | | | | |
+--+ AGN11 +---+ AGN21 +---+ ABR1 +---+ LSR1 +--> to AGN
/ | | /| | | | | |
+----+/ +-------+\/ +-------+ +------+ /+------+
| AN | /\ \/
+----+\ +-------+ \+-------+ +------+/\ +------+
\ | | | | | | \| |
+--+ AGN12 +---+ AGN22 +---+ ABR2 +---+ LSR2 +--> to AGN
| | | | | | | |
+-------+ +-------+ +------+ +------+
static route IS-IS L1 LDP IS-IS L2 LDP
<-Access-><--Aggregation Domain--><---------Core--------->
AGN: aggregation node
Figure 2: Seamless MPLS Architecture
Luo, et al. Standards Track [Page 4]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
This document describes extensions to the LSP Ping mechanism to
facilitate a response from the replying LSR by defining a mechanism
that uses a relay node (e.g., ASBR) to relay the message back to the
initiator. Every designated or learned relay node must be reachable
to the next relay node or to the initiator. Using a recursive
approach, a relay node could relay the message to the next relay node
until the initiator is reached.
The LSP Ping relay mechanism in this document is defined for unicast.
How to apply the LSP Ping relay mechanism in multicast is out of
scope.
3. Extensions
[RFC4379] defines two Message Types: Echo Request and Echo Reply.
This document defines a new Message Type: Relayed Echo Reply. The
Relayed Echo Reply message is used in place of the Echo Reply message
when an LSR is replying LSR to a relay node.
A new TLV named the "Relay Node Address Stack TLV" is defined in this
document to carry the IP addresses of the relay nodes for the
replying LSR.
In addition, the Maximum Transmission Unit (MTU) Exceeded Return Code
is defined to indicate to the initiator that one or more TLVs will
not be returned due to the MTU size.
It should be noted that this document focuses only on detecting the
LSP that is set up using a uniform IP address family type. That is,
all hops between the source and destination node use the same address
family type for their LSP Ping control planes. This does not
preclude nodes that support both IPv6 and IPv4 addresses
simultaneously, but the entire path must be addressable using only
one address family type. Support for mixed IPv4-only and IPv6-only
is beyond the scope of this document.
3.1. Relayed Echo Reply Message
The Relayed Echo Reply message is a UDP packet, and the UDP payload
has the same format with Echo Request/Reply message. A new Message
Type is requested from IANA.
New Message Type:
Value Meaning
----- -------
5 MPLS Relayed Echo Reply
Luo, et al. Standards Track [Page 5]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
The use of TCP and UDP port number 3503 is described in [RFC4379] and
has been allocated by IANA for LSP Ping messages. The Relayed Echo
Reply message will use the same port number.
3.2. Relay Node Address Stack
The Relay Node Address Stack TLV is an optional TLV. It MUST be
carried in the Echo Request, Echo Reply, and Relayed Echo Reply
messages if the Echo Reply relayed mechanism described in this
document is required. Figure 3 illustrates the TLV format.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Initiator Source Port | Reply Add Type| Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Address of Replying Router (0, 4, or 16 octets) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Destination Address Offset | Number of Relayed Addresses |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
~ Stack of Relayed Addresses ~
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 3: Relay Node Address Stack TLV
- Type: Value is 32768. The value has been assigned by IANA from
the 32768-49161 range as suggested by [RFC4379], Section 3.
- Length: The length of the value field in octets.
- Initiator Source Port: The source UDP port that the initiator uses
in the Echo Request message, and the port that is expected to
receive the Echo Reply message.
- Reply Address Type: Address type of replying router. This value
also implies the length of the address field as shown below.
Type# Address Type Address Length
---- ------------ ------------
0 Null 0
1 IPv4 4
2 IPv6 16
Luo, et al. Standards Track [Page 6]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
- Reserved: This field is reserved and MUST be set to zero.
- Source Address of Replying Router: Source IP address of the
originator of Echo Reply or Relay Echo Reply message.
- Destination Address Offset: The offset in octets from the top-of-
stack to the destination address entry. Each entry size has been
listed in this section. Please also refer to Section 4.2 for more
detail of the operation.
- Number of Relayed Addresses: An integer indicating the number of
relayed addresses in the stack.
- Stack of Relayed Addresses: A list of relay node address entries.
This stack grows downward, with relay node addresses that are
further along the LSP appearing lower down in the stack. Please
refer to Section 4.2 for the relay node discovery mechanism.
The format of each relay node address entry is as below:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Address Type |K| Reserved | Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
~ Relayed Address (0, 4, or 16 octets) ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 4: Relay Node Address Entry
Type# Address Type Address Length Size of the Entry
---- ------------ ------------ -----------------
0 Null 0 4
1 IPv4 4 8
2 IPv6 16 20
Reserved: The two fields are reserved and MUST be set to zero.
K bit: If the K bit is set to 1, then this address stack entry MUST
NOT be stripped from the Relay Node Address Stack during the
processing described in Section 4.2. If the K bit is clear, the
entry might be stripped according to the processing described in
Section 4.2.
Having the K bit set in the relay node address entry causes that
entry to be preserved in the Relay Node Address Stack TLV for the
entire traceroute operation. A responder node MAY set the K bit to
ensure its relay node address entry remains as one of the relay nodes
Luo, et al. Standards Track [Page 7]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
in the Relay Node Address Stack TLV. The address with the K bit set
will always be a relay node address for the Relayed Echo Reply, see
Section 4.3.
Relayed Address: This field specifies the node address: either IPv4
or IPv6.
3.3. MTU Exceeded Return Code
This Return Code is defined to indicate that one or more TLVs were
omitted from the Echo Reply or Relayed Echo Reply message to avoid
exceeding the message's effective MTU size. These TLVs MAY be
included in an Errored TLV's Object with their lengths set to 0 and
no value. The return sub-code MUST be set to the value that
otherwise would have been sent. For more detail, please refer to
Section 4.2.
MTU Exceeded Return Code:
Value Meaning
----- -------
20 One or more TLVs not returned due to MTU size
This document updates step 7 in Section 4.4 of [RFC4379] to integrate
the processing of the MTU Exceeded Return Code by adding the
following text:
Before sending Echo Reply, the new packet size should be checked.
If Best-return-code is 3 ("Replying router is an egress for the
FEC at stack depth"), or 8 ("Label switched at stack-depth"), and
if the packet size exceeds MTU size, then Best-return-code is 20
("One or more TLVs not returned due to MTU size").
4. Procedures
To perform a ping operation, the initiator first discovers the relay
nodes. Once those nodes have been discovered, the initiator includes
the Relay Node Address Stack TLV into any Echo Request message. The
node can then ping as normal. Note that, in some cases, the repeated
lack of replies to Echo Request messages may be due to a route change
that has impacted the necessary stack of relay nodes. In this case,
the initiator may need to rediscover the relay nodes. The following
sections describe the procedures for sending and receiving Echo
Request messages with the Relay Node Address Stack TLV. These
procedures can be used in traceroute mode to discover the relay
nodes.
Luo, et al. Standards Track [Page 8]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
4.1. Sending an Echo Request
In addition to the procedures described in Section 4.3 of [RFC4379],
a Relay Node Address Stack TLV MUST be carried in the Echo Request
message if the relay functionality is required. The relay function
initiation is out of the scope of this document. One possible way to
do this is that the operator can explicitly add an option to the ping
command.
When the initiator sends the first Echo Request with a Relay Node
Address Stack TLV, the TLV MUST contain the initiator address as the
first entry of the stack of relayed addresses, the Destination
Address Offset set to this entry, and the source address of the
replying router set to null. The Initiator Source Port field MUST be
set to the source UDP port. Note that the first relay node address
in the stack will always be the initiator's address.
When sending a subsequent Echo Request message, refer to Section 4.6.
4.2. Receiving an Echo Request
The Type of the Relay Node Address Stack TLV (32768) falls within the
range defined in [RFC4379] as "optional TLVs" that can be silently
dropped if not recognized. An LSR that does not recognize the TLV
SHOULD ignore it.
In addition to the processes in Section 4.4 of [RFC4379], the
procedures of the Relay Node Address Stack TLV are defined here.
Upon receiving a Relay Node Address Stack TLV in an Echo Request
message, the receiver updates the "Source Address of Replying
Router". The address MUST be the same as the source IP address of
Relay Echo Reply (Section 4.3) or Echo Reply message (Section 4.5)
being sent.
Those address entries with the K bit set to 1 MUST be kept in the
stack. The receiver MUST check the addresses of the stack in
sequence from bottom to top to find the last address in the stack
with the K bit set (or the top of the stack if no K bit was found).
The receiver then checks the stack beginning with this entry,
proceeding towards the bottom to find the first routable address IP
address. The Destination Address Offset MUST be set to this entry,
which is also the resolved destination address. Address entries
below the first routable IP address MUST be deleted. At least one
address entry of the replying LSR MUST be added at the bottom of the
stack. A second address entry (or more) MAY also be added if
necessary, depending on implementation. The final address added MUST
be an address that is reachable through the interface that the Echo
Luo, et al. Standards Track [Page 9]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
Request message would have been forwarded to if its TTL had not
expired at this node. The updated Relay Node Address Stack TLV MUST
be carried in the response message.
If the replying LSR is configured to hide its routable address
information, the address entry added in the stack MUST be a NIL entry
with Address Type set to NULL.
If a node spans two addressing domains (with respect to this message)
where nodes on either side may not be able to reach nodes in the
other domain, then the final address added SHOULD set the K bit. One
example of spanning two address domains is the ASBR node.
K bit applies in the case of a NULL address, to serve as a warning to
the initiator that further Echo Request messages may not result in
receiving Echo Reply messages.
If the full reply message would exceed the MTU size, the Relay Node
Address Stack TLV SHOULD be included in the Echo Reply message (i.e.,
other optional TLVs are excluded).
4.3. Originating a Relayed Echo Reply
The destination address determined as described in Section 4.2 is
used as the next relay node address. If the resolved next relay node
address is not routable, then the sending of the Relayed Echo Reply
or Echo Reply will fail.
If the first IP address in the Relay Node Address Stack TLV is not
the next relay node address, the replying LSR SHOULD send a Relayed
Echo Reply message to the next relay node. The processing of Relayed
Echo Reply is the same with the procedure of the Echo Reply described
in Section 4.5 of [RFC4379], except the destination IP address and
the destination UDP port. The destination IP address of the Relayed
Echo Reply is set to the next relay node address from the Relay Node
Address Stack TLV, and both the source and destination UDP port are
set to 3503. The updated Relay Node Address Stack TLV described in
Section 4.2 MUST be carried in the Relayed Echo Reply message. The
Source Address of the Replying Router field is kept unmodified, and
the Source IP address field of the IP header is set to an address of
the sending node.
When the next relay node address is the first one in the address
list, please refer to Section 4.5.
Luo, et al. Standards Track [Page 10]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
4.4. Relaying a Relayed Echo Reply
Upon receiving a Relayed Echo Reply message with its own address as
the destination address in the IP header, the relay node MUST
determine the next relay node address as described in Section 4.2,
with the modification that the location of the received destination
address is used instead of the bottom of stack in the algorithm. The
Destination Address Offset in Relay Node Address Stack TLV will be
set to the next relay node address. Note that unlike in Section 4.2,
no changes are made to the Stack of Relayed Addresses.
If the next relay node address is not the first one in the address
list, i.e., another intermediate relay node, the relay node MUST send
a Relayed Echo Reply message to the determined upstream node with the
payload unchanged other than the Relay Node Address Stack TLV. The
TTL SHOULD be copied from the received Relay Echo Reply and
decremented by 1. The Source Address of the Replying Router field is
kept unmodified and the Source IP address field of the IP header is
set to an address of the sending node.
When the next relay node address is the first one in the address
list, please refer to Section 4.5.
4.5. Sending an Echo Reply
The Echo Reply is sent in two cases:
1. When the replying LSR receives an Echo Request, and the first IP
address in the Relay Node Address Stack TLV is the next relay
node address (Section 4.3), the replying LSR would send an Echo
Reply to the initiator. In addition to the procedure of the Echo
Reply described in Section 4.5 of [RFC4379], the updated Relay
Node Address Stack TLV described in Section 4.2 MUST be carried
in the Echo Reply.
If the receiver does not recognize the Relay Node Address Stack
TLV, as per Sections 3 and 4.5 of [RFC4379], it will send an Echo
Reply without including the TLV.
2. When the intermediate relay node receives a Relayed Echo Reply,
and the first IP address in the Relay Node Address Stack TLV is
the next relay node address (Section 4.4), the intermediate relay
node will send the Echo Reply to the initiator, and update the
Message Type field from type of "Relayed Echo Reply" to "Echo
Reply". The updated Relay Node Address Stack TLV described in
Section 4.4 MUST be carried in the Echo Reply. The destination
IP address of the Echo Reply is set to the first IP address in
Luo, et al. Standards Track [Page 11]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
the stack, and the destination UDP port will be copied from the
Initiator Source Port field of the Relay Node Address Stack TLV.
The source UDP port should be 3503. The TTL of the Echo Reply
SHOULD be copied from the received Relay Echo Reply and
decremented by 1. The Source Address of the Replying Router
field is kept unmodified, and the Source IP address field of the
IP header is set to an address of the sending node.
4.6. Sending Subsequent Echo Requests
During a traceroute operation, multiple Echo Request messages are
sent. Each time the TTL is increased, the initiator SHOULD copy the
Relay Node Address Stack TLV received in the previous Echo Reply to
the next Echo Request. The Relay Node Address Stack TLV MUST NOT be
modified except as follows. A NIL entry that does not have the K bit
set MAY be removed. A NIL entry with the K bit serves as a warning
that further Echo Request messages are likely not to result in a
reply. If, however, the initiator decides to continue a traceroute
operation, the NIL entry with the K bit set MUST be removed. The
Source Address of the Replying Router and Destination Address Offset
fields may be preserved or reset since these fields are ignored in
the received MPLS Echo Request.
4.7. Impact on Traceroute
The Source IP address in Echo Reply and Relay Echo Reply should be
the address of the node sending those packets, not the original
responding node. Then the traceroute address output module will
print the source IP address as below:
if (Relay Node Address Stack TLV exists) {
Print the Source Address of Replying Router in
Relay Node Address Stack TLV;
} else {
Print the source IP address of Echo Reply message;
}
Luo, et al. Standards Track [Page 12]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
5. LSP Ping Relayed Echo Reply Example
Considering the inter-AS scenario in Figure 5 below, AS1 and AS2 are
two independent address domains. In the example, an LSP has been
created between PE1 to PE2, but PE1 in AS1 is not reachable by P2 in
AS2.
+-------+ +-------+ +------+ +------+ +------+ +------+
| | | | | | | | | | | |
| PE1 +---+ P1 +---+ ASBR1+---+ ASBR2+---+ P2 +---+ PE2 |
| | | | | | | | | | | |
+-------+ +-------+ +------+ +------+ +------+ +------+
<---------------AS1-------------><---------------AS2------------>
<--------------------------- LSP ------------------------------->
Figure 5: Example Inter-AS LSP
When performing LSP traceroute on the LSP, the first Echo Request
sent by PE1 with outermost label TTL=1 contains the Relay Node
Address Stack TLV with PE1's address as the first relayed address.
After being processed by P1, P1's interface address facing ASBR1
without the K bit set will be added in the Relay Node Address Stack
TLV address list following PE1's address in the Echo Reply.
PE1 copies the Relay Node Address Stack TLV into the next Echo
Request when receiving the Echo Reply.
Upon receiving the Echo Request, ASBR1 checks the address list in the
Relay Node Address Stack TLV and determines that PE1's address is the
next relay address. Then it deletes P1's address, and adds its
interface address facing ASBR2 with the K bit set. As a result,
there will be PE1's address followed by ASBR1's interface address
facing ASBR2 in the Relay Node Address Stack TLV of the Echo Reply
sent by ASBR1.
PE1 then sends an Echo Request with outermost label TTL=3, containing
the Relay Node Address Stack TLV copied from the received Echo Reply
message. Upon receiving the Echo Request message, ASBR2 checks the
address list in the Relay Node Address Stack TLV and determines that
ASBR1's interface address is the next relay address in the stack TLV.
ASBR2 adds its interface address facing P2 with the K bit set. Then
ASBR2 sets the next relay address as the destination address of the
Relayed Echo Reply and sends the Relayed Echo Reply to ASBR1.
Luo, et al. Standards Track [Page 13]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
Upon receiving the Relayed Echo Reply from ASBR2, ASBR1 checks the
address list in the Relay Node Address Stack TLV and determines that
PE1's address is the next relay node. Then ASBR1 sends an Echo Reply
to PE1.
For the Echo Request with outermost label TTL=4, P2 checks the
address list in the Relay Node Address Stack TLV and determines that
ASBR2's interface address is the next relay address. Then P2 sends a
Relayed Echo Reply to ASBR2 with the Relay Node Address Stack TLV
containing four addresses: PE1's, ASBR1's interface address, ASBR2's
interface address, and P2's interface address facing PE2 in sequence.
Then, according to the process described in Section 4.4, ASBR2 sends
the Relayed Echo Reply to ASBR1. Upon receiving the Relayed Echo
Reply, ASBR1 sends an Echo Reply to PE1. And, as relayed by ASBR2
and ASBR1, the Echo Reply would finally be sent to the initiator PE1.
For the Echo Request with outermost label TTL=5, the Echo Reply would
relayed to PE1 by ASBR2 and ASBR1, similar to the case of TTL=4.
The Echo Reply from the replying node that has no IP reachable route
to the initiator is thus transmitted to the initiator by multiple
relay nodes.
6. Security Considerations
The Relayed Echo Reply mechanism for LSP Ping creates an increased
risk of DoS by putting the IP address of a target router in the Relay
Node Address Stack. These messages could then be used to attack the
control plane of an LSR by overwhelming it with these packets. A
rate limiter SHOULD be applied to the well-known UDP port on the
relay node as suggested in [RFC4379]. The node that acts as a relay
node SHOULD validate the relay reply against a set of valid source
addresses and discard packets from untrusted border router addresses.
An implementation SHOULD provide such filtering capabilities.
If an operator wants to obscure their nodes, it is RECOMMENDED that
they replace the replying node address that originated the Echo Reply
with the NIL address entry in the Relay Node Address Stack TLV.
A receiver of an MPLS Echo Request could verify that the first
address in the Relay Node Address Stack TLV is the same address as
the source IP address field of the received IP header.
Luo, et al. Standards Track [Page 14]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
The Relay Node Address Stack TLV has the path information of the LSP,
and such information may be maliciously used by any uncontrolled LSR/
LER. We have two ways to reduce the path information in the TLV:
o It is recommended to clear the K bit in the relay address entry
unless it must be set (e.g., as listed in Section 4.2).
o It is recommended to use the NIL address entry to hide node
information, if possible.
Other security considerations discussed in [RFC4379] are also
applicable to this document.
7. Backward Compatibility
When one of the nodes along the LSP does not support the mechanism
specified in this document, the node will ignore the Relay Node
Address Stack TLV as described in Section 4.2. Then the initiator
may not receive the Relay Node Address Stack TLV in Echo Reply
message from that node. In this case, an indication should be
reported to the operator, and the Relay Node Address Stack TLV in the
next Echo Request message should be copied from the previous Echo
Request, and continue the ping process. If the node described above
is located between the initiator and the first relay node, the ping
process could continue without interruption.
8. IANA Considerations
IANA has assigned one new Message Type, one new TLV, and one Return
Code.
8.1. MPLS Relayed Echo Reply
One new Message Type from the "Multi-Protocol Label Switching (MPLS)
Label Switched Paths (LSPs) Ping Parameters" registry in the "Message
Type" subregistry has been allocated:
Value Meaning
----- -------
5 MPLS Relayed Echo Reply
The value has been assigned from the "Standards Action" [RFC5226]
range (0-191) using the lowest free value within this range.
Luo, et al. Standards Track [Page 15]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
8.2. Relay Node Address Stack TLV
One new TLV from the "Multi-Protocol Label Switching (MPLS) Label
Switched Paths (LSPs) Ping Parameters" registry in the "TLVs"
subregistry has been allocated:
Type TLV Name
---- --------
32768 Relay Node Address Stack TLV
The value has been assigned from the "Standards Action" range
(32768-49161) as suggested by [RFC4379] Sections 3 and 7.2 using the
first free value within this range.
8.3. MTU Exceeded Return Code
The MTU Exceeded return code from the "Multi-Protocol Label Switching
(MPLS) Label Switched Paths (LSPs) Ping Parameters" registry in the
"Return Codes"subregistry has been allocated:
Value Meaning
----- -------
20 One or more TLVs not returned due to MTU size
The value has been assigned from the "Standards Action" range (0-191)
using the lowest free value within this range.
9. References
9.1. Normative References
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997,
<http://www.rfc-editor.org/info/rfc2119>.
[RFC4379] Kompella, K. and G. Swallow, "Detecting Multi-Protocol
Label Switched (MPLS) Data Plane Failures", RFC 4379,
DOI 10.17487/RFC4379, February 2006,
<http://www.rfc-editor.org/info/rfc4379>.
Luo, et al. Standards Track [Page 16]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
9.2. Informative References
[MPLSARCH] Leymann, N., Decraene, B., Filsfils, C., Konstantynowicz,
M., and D. Steinberg, "Seamless MPLS Architecture", Work
in Progress, draft-ietf-mpls-seamless-mpls-07, June 2014.
[RFC5226] Narten, T. and H. Alvestrand, "Guidelines for Writing an
IANA Considerations Section in RFCs", BCP 26, RFC 5226,
DOI 10.17487/RFC5226, May 2008,
<http://www.rfc-editor.org/info/rfc5226>.
Acknowledgements
The authors would like to thank Carlos Pignataro, Xinwen Jiao, Manuel
Paul, Loa Andersson, Wim Henderickx, Mach Chen, Thomas Morin, Gregory
Mirsky, Nobo Akiya, and Joel M. Halpern for their valuable comments
and suggestions.
Contributors
Ryan Zheng
JSPTPD
371, Zhongshan South Road
Nanjing 210006
China
Email: ryan.zhi.zheng@gmail.com
Luo, et al. Standards Track [Page 17]
^L
RFC 7743 MPLS LSP Ping Relayed Echo Reply January 2016
Authors' Addresses
Jian Luo (editor)
ZTE
50, Ruanjian Avenue
Nanjing 210012
China
Email: luo.jian@zte.com.cn
Lizhong Jin (editor)
Shanghai
China
Email: lizho.jin@gmail.com
Thomas Nadeau (editor)
Brocade
Email: tnadeau@lucidvision.com
George Swallow (editor)
Cisco Systems
Email: swallow@cisco.com
Luo, et al. Standards Track [Page 18]
^L
|