IGP 境界にまたがるプレフィックスに対して ping または traceroute を実行する場合は、特に fec タイプを指定する必要があります。たとえば、プレフィックスが ISIS ドメインから OSPF に再配布されるときは、fec タイプ
ISIS を指定します。ping または traceroute が IGP ドメイン内で実行されるときは、明示的に fec タイプを言及する必要はありません。ユーザが宛先ノードで IGP プロトコルを知らない場合に汎用の fec タイプ ジェネリックを提供します。SR
パスのタイプが記載されていない場合、デフォルトの SR パスのタイプ IP が採用されます。
次のトポロジは、SR パスのタイプの例です。
図 1.
以下の ping コマンドは、基盤となるネットワークが OSPF の場合の SR OAM を説明するために使用されます。
上記のトポロジの例に従って、ヘッド エンド R1 では、SR-TE トンネルは宛先を R3 として作成されます。SR-TE トンネルは、R6 および R7 を通過するための明示的パス オプションを使用して作成されます。IP トラフィックが R1
で入力された場合、SR-TE パスは R1---R6----R7----R3 です。
Device#ping mpls ipv4 4.4.4.4/32 fec-type ospf sr-path-type ip verbose
Sending 2, 72-byte MPLS Echos to IGP Prefix SID(OSPF) FEC 5.5.5.5/32,
timeout is 2 seconds, send interval is 0 msec:
Select segment routing IP imposition path.
Codes: '!' - success, 'Q' - request not sent, '.' - timeout,
'L' - labeled output interface, 'B' - unlabeled output interface,
'D' - DS Map mismatch, 'F' - no FEC mapping, 'f' - FEC mismatch,
'M' - malformed request, 'm' - unsupported tlvs, 'N' - no label entry,
'P' - no rx intf label prot, 'p' - premature termination of LSP,
'R' - transit router, 'I' - unknown upstream index,
'l' - Label switched with FEC change, 'd' - see DDMAP for return code,
'X' - unknown return code, 'x' - return code 0
Type escape sequence to abort.
! size 72, reply addr 2.4.0.4, return code 3
! size 72, reply addr 2.4.0.4, return code 3
Success rate is 100 percent (2/2), round-trip min/avg/max = 1/1/1 ms
Total Time Elapsed 4 ms
同じトポロジで、着信トラフィックにトラフィックのラベルが付いている場合、次の 2 つの ECMP パスが転送用に選択されます。
R1---R6----R7----R3
R1---R4----R5----R3
(注)
マルチパス オプションを使用して、両方のパスを宛先に対してトレースすることができます。
Device# ping mpls ipv4 4.4.4.4/32 fec-type ospf sr-path-type sid verbose
Sending 1, 72-byte MPLS Echos to IGP Prefix SID(OSPF) FEC 5.5.5.5/32,
timeout is 2 seconds, send interval is 0 msec:
Select segment routing prefix SID path.
Codes: '!' - success, 'Q' - request not sent, '.' - timeout,
'L' - labeled output interface, 'B' - unlabeled output interface,
'D' - DS Map mismatch, 'F' - no FEC mapping, 'f' - FEC mismatch,
'M' - malformed request, 'm' - unsupported tlvs, 'N' - no label entry,
'P' - no rx intf label prot, 'p' - premature termination of LSP,
'R' - transit router, 'I' - unknown upstream index,
'l' - Label switched with FEC change, 'd' - see DDMAP for return code,
'X' - unknown return code, 'x' - return code 0
Type escape sequence to abort.
! size 72, reply addr 2.4.0.4, return code 3
Success rate is 100 percent (1/1), round-trip min/avg/max = 1/1/1 ms
Total Time Elapsed 3 ms
次の traceroute コマンドは、基盤となるネットワークが OSPF の場合の SR OAM を表示します。
R1 への着信トラフィックがネイティブ IP である場合に IP ルート パスをトレースするために、R1 の終わりで以下のコマンドが使用されます。
Device#traceroute mpls ipv4 4.4.4.4/32 fec-type ospf sr-path-type ip verbose
Tracing MPLS Label Switched Path to IGP Prefix SID(OSPF) FEC 4.4.4.4/32, timeout is 2 seconds
Select segment routing IP imposition path.
Codes: '!' - success, 'Q' - request not sent, '.' - timeout,
'L' - labeled output interface, 'B' - unlabeled output interface,
'D' - DS Map mismatch, 'F' - no FEC mapping, 'f' - FEC mismatch,
'M' - malformed request, 'm' - unsupported tlvs, 'N' - no label entry,
'P' - no rx intf label prot, 'p' - premature termination of LSP,
'R' - transit router, 'I' - unknown upstream index,
'l' - Label switched with FEC change, 'd' - see DDMAP for return code,
'X' - unknown return code, 'x' - return code 0
Type escape sequence to abort.
0 1.2.0.1 1.2.0.2 MRU 1500 [Labels: 16002/16005 Exp: 0/0], RSC 0
L 1 1.2.0.2 3.3.3.3 MRU 1500 [Labels: 16005 Exp: 0] 2 ms, ret code 8, RSC 0
L 2 3.3.3.3 3.4.0.4 MRU 1500 [Labels: implicit-null Exp: 0] 1 ms, ret code 8, RSC 0
! 3 3.4.0.4 1 ms, ret code 3
Device#traceroute mpls ipv4 4.4.4.4/32 fec-type ospf sr-path-type sid verbose
Device#traceroute mpls multipath ipv4 4.4.4.4/32 fec-type ospf sr-path-type ip verbose
Type escape sequence to abort.
LL!
Path 0 found,
output interface Et0/1 nexthop 1.2.0.2 //path R1-R6-R7-R3
source 1.1.1.1 destination 127.0.0.0
0 1.2.0.1 1.2.0.2 MRU 1500 [Labels: 16666 Exp: 0] multipaths 0
L 1 1.2.0.2 2.4.0.4 MRU 1500 [Labels: 16666 Exp: 0] ret code 8, RSC 0 multipaths 1
L 2 2.4.0.4 4.6.0.6 MRU 1500 [Labels: implicit-null Exp: 0] ret code 8, RSC 0 multipaths 1
! 3 4.6.0.6, ret code 3 multipaths 0
LL!
Path 1 found,
output interface Et0/2 nexthop 1.3.0.3 //path R1-R4-R5-R3
source 1.1.1.1 destination 127.0.0.0
0 1.3.0.1 1.3.0.3 MRU 1500 [Labels: 16666 Exp: 0] multipaths 0
L 1 1.3.0.3 3.4.0.4 MRU 1500 [Labels: 16666 Exp: 0] ret code 8, RSC 0 multipaths 1
L 2 3.4.0.4 4.6.0.6 MRU 1500 [Labels: implicit-null Exp: 0] ret code 8, RSC 0 multipaths 1
! 3 4.6.0.6, ret code 3 multipaths 0
Paths (found/broken/unexplored) (2/0/0)
Echo Request (sent/fail) (6/0)
Echo Reply (received/timeout) (6/0)
Total Time Elapsed 23 ms
Device#traceroute mpls multipath ipv4 4.4.4.4/32 fec-type ospf sr-path-type sid verbose