summaryrefslogtreecommitdiffstats
path: root/doc/developer/northbound/ppr-basic-test-topology.rst
blob: a680ed7dfa84e5ce33e36b3c85eec6bea138e438 (plain)
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
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
Table of Contents
~~~~~~~~~~~~~~~~~

-  `Software <#software>`__
-  `Topology <#topology>`__
-  `Configuration <#configuration>`__

   -  `CLI <#configuration-cli>`__
   -  `YANG <#configuration-yang>`__

-  `Verification - Control Plane <#verification-cplane>`__
-  `Verification - Forwarding Plane <#verification-fplane>`__

Software
~~~~~~~~

The FRR PPR implementation for IS-IS is available here:
https://github.com/opensourcerouting/frr/tree/isisd-ppr

Topology
~~~~~~~~

In this topology we have an IS-IS network consisting of 12 routers. CE1
and CE2 are the consumer edges, connected to R11 and R14, respectively.
Three hosts are connected to the CEs using only static routes.

Router R11 advertises 6 PPR TLVs, which corresponds to three
bi-directional GRE tunnels: \* **6000:1::1 <-> 6000:2::1:** {R11 - R21 -
R22 - R23 - R14} (IPv6 Node Addresses only) \* **6000:1::2 <->
6000:2::2:** {R11 - R21 - R32 - R41 - R33 - R23 - R14} (IPv6 Node and
Interface Addresses) \* **6000:1::3 <-> 6000:2::3:** {R11 - R21 - R99 -
R23 - R14} (misconfigured path)

PBR rules are configured on R11 and R14 to route the traffic between
Host 1 and Host 3 using the first PPR tunnel. Traffic between Host 2 and
Host 3 uses the regular IS-IS shortest path.

Additional information: \* Addresses in the 4000::/16 range refer to
interface addresses, where the last hextet corresponds to the node ID.
\* Addresses in the 5000::/16 range refer to loopback addresses, where
the last hextet corresponds to the node ID. \* Addresses in the
6000::/16 range refer to PPR-ID addresses.

::

   +-------+       +-------+                                                 +-------+
   |       |       |       |                                                 |       |
   | HOST1 |       | HOST2 |                                                 | HOST3 |
   |       |       |       |                                                 |       |
   +---+---+       +---+---+                                                 +---+---+
       |               |                                                         |
       |fd00:10:1::/64 |                                                         |
       +-----+  +------+                                           fd00:20:1::/64|
             |  |fd00:10:2::/64                                                  |
             |  |                                                                |
           +-+--+--+                                                         +---+---+
           |       |                                                         |       |
           |  CE1  |                                                         |  CE2  |
           |       |                                                         |       |
           +---+---+                                                         +---+---+
               |                                                                 |
               |                                                                 |
               |fd00:10:0::/64                                     fd00:20:0::/64|
               |                                                                 |
               |                                                                 |
           +---+---+             +-------+             +-------+             +---+---+
           |       |4000:101::/64|       |4000:102::/64|       |4000:103::/64|       |
           |  R11  +-------------+  R12  +-------------+  R13  +-------------+  R14  |
           |       |             |       |             |       |             |       |
           +---+---+             +--+-+--+             +--+-+--+             +---+---+
               |                    | |                   | |                    |
               |4000:104::/64       | |4000:106::/64      | |4000:108::/64       |
               +---------+ +--------+ +--------+ +--------+ +--------+ +---------+
                         | |4000:105::/64      | |4000:107::/64      | |4000:109::/64
                         | |                   | |                   | |
                      +--+-+--+             +--+-+--+             +--+-+--+
                      |       |4000:110::/64|       |4000:111::/64|       |
                      |  R21  +-------------+  R22  +-------------+  R23  |
                      |       |             |       |             |       |
                      +--+-+--+             +--+-+--+             +--+-+--+
                         | |                   | |                   | |
                         | |4000:113::/64      | |4000:115::/64      | |4000:117::/64
               +---------+ +--------+ +--------+ +--------+ +--------+ +---------+
               |4000:112::/64       | |4000:114::/64      | |4000:116::/64       |
               |                    | |                   | |                    |
           +---+---+             +--+-+--+             +--+-+--+             +---+---+
           |       |4000:118::/64|       |4000:119::/64|       |4000:120::/64|       |
           |  R31  +-------------+  R32  +-------------+  R33  +-------------+  R34  |
           |       |             |       |             |       |             |       |
           +-------+             +---+---+             +---+---+             +-------+
                                     |                     |
                                     |4000:121::/64        |
                                     +----------+----------+
                                                |
                                                |
                                            +---+---+
                                            |       |
                                            |  R41  |
                                            |       |
                                            +-------+

Configuration
~~~~~~~~~~~~~

PPR TLV processing needs to be enabled on all IS-IS routers using the
``ppr on`` command. The advertisements of all PPR TLVs is done by router
R11.

CLI configuration
^^^^^^^^^^^^^^^^^

.. code:: yaml

   ---

   routers:

     host1:
       links:
         eth-ce1:
           peer: [ce1, eth-host1]
       frr:
         zebra:
         staticd:
         config: |
           interface eth-ce1
            ipv6 address fd00:10:1::1/64
           !
           ipv6 route ::/0 fd00:10:1::100

     host2:
       links:
         eth-ce1:
           peer: [ce1, eth-host2]
       frr:
         zebra:
         staticd:
         config: |
           interface eth-ce1
            ipv6 address fd00:10:2::1/64
           !
           ipv6 route ::/0 fd00:10:2::100

     host3:
       links:
         eth-ce2:
           peer: [ce2, eth-host3]
       frr:
         zebra:
         staticd:
         config: |
           interface eth-ce2
            ipv6 address fd00:20:1::1/64
           !
           ipv6 route ::/0 fd00:20:1::100

     ce1:
       links:
         eth-host1:
           peer: [host1, eth-ce1]
         eth-host2:
           peer: [host2, eth-ce1]
         eth-rt11:
           peer: [rt11, eth-ce1]
       frr:
         zebra:
         staticd:
         config: |
           interface eth-host1
            ipv6 address fd00:10:1::100/64
           !
           interface eth-host2
            ipv6 address fd00:10:2::100/64
           !
           interface eth-rt11
            ipv6 address fd00:10:0::100/64
           !
           ipv6 route ::/0 fd00:10:0::11

     ce2:
       links:
         eth-host3:
           peer: [host3, eth-ce2]
         eth-rt14:
           peer: [rt14, eth-ce2]
       frr:
         zebra:
         staticd:
         config: |
           interface eth-host3
            ipv6 address fd00:20:1::100/64
           !
           interface eth-rt14
            ipv6 address fd00:20:0::100/64
           !
           ipv6 route ::/0 fd00:20:0::14

     rt11:
       links:
         lo-ppr:
         eth-ce1:
           peer: [ce1, eth-rt11]
         eth-rt12:
           peer: [rt12, eth-rt11]
         eth-rt21:
           peer: [rt21, eth-rt11]
       shell: |
         # GRE tunnel for preferred packets (PPR)
         ip -6 tunnel add tun-ppr mode ip6gre remote 6000:2::1 local 6000:1::1 ttl 64
         ip link set dev tun-ppr up
         # PBR rules
         ip -6 rule add from fd00:10:1::/64 to fd00:20:1::/64 iif eth-ce1 lookup 10000
         ip -6 route add default dev tun-ppr table 10000
       frr:
         zebra:
         staticd:
         isisd:
         config: |
           interface lo-ppr
            ipv6 address 6000:1::1/128
            ipv6 address 6000:1::2/128
            ipv6 address 6000:1::3/128
           !
           interface lo
            ipv6 address 5000::11/128
            ipv6 router isis 1
           !
           interface eth-ce1
            ipv6 address fd00:10:0::11/64
           !
           interface eth-rt12
            ipv6 address 4000:101::11/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt21
            ipv6 address 4000:104::11/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           ipv6 route fd00:10::/32 fd00:10:0::100
           !
           ppr group VOIP
            ppr ipv6 6000:1::1/128 prefix 5000::11/128 metric 50
             pde ipv6-node 5000::14/128
             pde ipv6-node 5000::23/128
             pde ipv6-node 5000::22/128
             pde ipv6-node 5000::21/128
             pde ipv6-node 5000::11/128
            !
            ppr ipv6 6000:2::1/128 prefix 5000::14/128 metric 50
             pde ipv6-node 5000::11/128
             pde ipv6-node 5000::21/128
             pde ipv6-node 5000::22/128
             pde ipv6-node 5000::23/128
             pde ipv6-node 5000::14/128
            !
           !
           ppr group INTERFACE_PDES
            ppr ipv6 6000:1::2/128 prefix 5000::11/128
             pde ipv6-node 5000::14/128
             pde ipv6-node 5000::23/128
             pde ipv6-node 5000::33/128
             pde ipv6-interface 4000:121::41/64
             pde ipv6-node 5000::32/128
             pde ipv6-interface 4000:113::21/64
             pde ipv6-node 5000::11/128
            !
            ppr ipv6 6000:2::2/128 prefix 5000::14/128
             pde ipv6-node 5000::11/128
             pde ipv6-node 5000::21/128
             pde ipv6-node 5000::32/128
             pde ipv6-interface 4000:121::41/64
             pde ipv6-node 5000::33/128
             pde ipv6-interface 4000:116::23/64
             pde ipv6-node 5000::14/128
            !
           !
           ppr group BROKEN
            ppr ipv6 6000:1::3/128 prefix 5000::11/128 metric 1500
             pde ipv6-node 5000::14/128
             pde ipv6-node 5000::23/128
             ! non-existing node!!!
             pde ipv6-node 5000::99/128
             pde ipv6-node 5000::21/128
             pde ipv6-node 5000::11/128
            !
            ppr ipv6 6000:2::3/128 prefix 5000::14/128 metric 1500
             pde ipv6-node 5000::11/128
             pde ipv6-node 5000::21/128
             ! non-existing node!!!
             pde ipv6-node 5000::99/128
             pde ipv6-node 5000::23/128
             pde ipv6-node 5000::14/128
            !
           !
           router isis 1
            net 49.0000.0000.0000.0011.00
            is-type level-1
            topology ipv6-unicast
            ppr on
            ppr advertise VOIP
            ppr advertise INTERFACE_PDES
            ppr advertise BROKEN
           !

     rt12:
       links:
         eth-rt11:
           peer: [rt11, eth-rt12]
         eth-rt13:
           peer: [rt13, eth-rt12]
         eth-rt21:
           peer: [rt21, eth-rt12]
         eth-rt22:
           peer: [rt22, eth-rt12]
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ipv6 address 5000::12/128
            ipv6 router isis 1
           !
           interface eth-rt11
            ipv6 address 4000:101::12/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt13
            ipv6 address 4000:102::12/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt21
            ipv6 address 4000:105::12/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt22
            ipv6 address 4000:106::12/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0012.00
            is-type level-1
            topology ipv6-unicast
            ppr on
           !

     rt13:
       links:
         eth-rt12:
           peer: [rt12, eth-rt13]
         eth-rt14:
           peer: [rt14, eth-rt13]
         eth-rt22:
           peer: [rt22, eth-rt13]
         eth-rt23:
           peer: [rt23, eth-rt13]
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ipv6 address 5000::13/128
            ipv6 router isis 1
           !
           interface eth-rt12
            ipv6 address 4000:102::13/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt14
            ipv6 address 4000:103::13/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt22
            ipv6 address 4000:107::13/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt23
            ipv6 address 4000:108::13/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0013.00
            is-type level-1
            topology ipv6-unicast
            ppr on
           !

     rt14:
       links:
         lo-ppr:
         eth-ce2:
           peer: [ce2, eth-rt14]
         eth-rt13:
           peer: [rt13, eth-rt14]
         eth-rt23:
           peer: [rt23, eth-rt14]
       shell: |
         # GRE tunnel for preferred packets (PPR)
         ip -6 tunnel add tun-ppr mode ip6gre remote 6000:1::1 local 6000:2::1 ttl 64
         ip link set dev tun-ppr up
         # PBR rules
         ip -6 rule add from fd00:20:1::/64 to fd00:10:1::/64 iif eth-ce2 lookup 10000
         ip -6 route add default dev tun-ppr table 10000
       frr:
         zebra:
         staticd:
         isisd:
         config: |
           interface lo-ppr
            ipv6 address 6000:2::1/128
            ipv6 address 6000:2::2/128
            ipv6 address 6000:2::3/128
           !
           interface lo
            ipv6 address 5000::14/128
            ipv6 router isis 1
           !
           interface eth-ce2
            ipv6 address fd00:20:0::14/64
           !
           interface eth-rt13
            ipv6 address 4000:103::14/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt23
            ipv6 address 4000:109::14/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           ipv6 route fd00:20::/32 fd00:20:0::100
           !
           router isis 1
            net 49.0000.0000.0000.0014.00
            is-type level-1
            topology ipv6-unicast
            ppr on
           !

     rt21:
       links:
         eth-rt11:
           peer: [rt11, eth-rt21]
         eth-rt12:
           peer: [rt12, eth-rt21]
         eth-rt22:
           peer: [rt22, eth-rt21]
         eth-rt31:
           peer: [rt31, eth-rt21]
         eth-rt32:
           peer: [rt32, eth-rt21]
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ipv6 address 5000::21/128
            ipv6 router isis 1
           !
           interface eth-rt11
            ipv6 address 4000:104::21/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt12
            ipv6 address 4000:105::21/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt22
            ipv6 address 4000:110::21/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt31
            ipv6 address 4000:112::21/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt32
            ipv6 address 4000:113::21/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0021.00
            is-type level-1
            topology ipv6-unicast
            ppr on
           !

     rt22:
       links:
         eth-rt12:
           peer: [rt12, eth-rt22]
         eth-rt13:
           peer: [rt13, eth-rt22]
         eth-rt21:
           peer: [rt21, eth-rt22]
         eth-rt23:
           peer: [rt23, eth-rt22]
         eth-rt32:
           peer: [rt32, eth-rt22]
         eth-rt33:
           peer: [rt33, eth-rt22]
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ipv6 address 5000::22/128
            ipv6 router isis 1
           !
           interface eth-rt12
            ipv6 address 4000:106::22/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt13
            ipv6 address 4000:107::22/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt21
            ipv6 address 4000:110::22/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt23
            ipv6 address 4000:111::22/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt32
            ipv6 address 4000:114::22/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt33
            ipv6 address 4000:115::22/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0022.00
            is-type level-1
            topology ipv6-unicast
            ppr on
           !

     rt23:
       links:
         eth-rt13:
           peer: [rt13, eth-rt23]
         eth-rt14:
           peer: [rt14, eth-rt23]
         eth-rt22:
           peer: [rt22, eth-rt23]
         eth-rt33:
           peer: [rt33, eth-rt23]
         eth-rt34:
           peer: [rt34, eth-rt23]
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ipv6 address 5000::23/128
            ipv6 router isis 1
           !
           interface eth-rt13
            ipv6 address 4000:108::23/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt14
            ipv6 address 4000:109::23/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt22
            ipv6 address 4000:111::23/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt33
            ipv6 address 4000:116::23/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt34
            ipv6 address 4000:117::23/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0023.00
            is-type level-1
            topology ipv6-unicast
            ppr on
           !

     rt31:
       links:
         eth-rt21:
           peer: [rt21, eth-rt31]
         eth-rt32:
           peer: [rt32, eth-rt31]
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ipv6 address 5000::31/128
            ipv6 router isis 1
           !
           interface eth-rt21
            ipv6 address 4000:112::31/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt32
            ipv6 address 4000:118::31/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0031.00
            is-type level-1
            topology ipv6-unicast
            ppr on
           !

     rt32:
       links:
         eth-rt21:
           peer: [rt21, eth-rt32]
         eth-rt22:
           peer: [rt22, eth-rt32]
         eth-rt31:
           peer: [rt31, eth-rt32]
         eth-rt33:
           peer: [rt33, eth-rt32]
         eth-sw1:
           peer: [sw1, eth-rt32]
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ipv6 address 5000::32/128
            ipv6 router isis 1
           !
           interface eth-rt21
            ipv6 address 4000:113::32/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt22
            ipv6 address 4000:114::32/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt31
            ipv6 address 4000:118::32/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt33
            ipv6 address 4000:119::32/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-sw1
            ipv6 address 4000:121::32/64
            ipv6 router isis 1
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0032.00
            is-type level-1
            topology ipv6-unicast
            ppr on
           !

     rt33:
       links:
         eth-rt22:
           peer: [rt22, eth-rt33]
         eth-rt23:
           peer: [rt23, eth-rt33]
         eth-rt32:
           peer: [rt32, eth-rt33]
         eth-rt34:
           peer: [rt34, eth-rt33]
         eth-sw1:
           peer: [sw1, eth-rt33]
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ipv6 address 5000::33/128
            ipv6 router isis 1
           !
           interface eth-rt22
            ipv6 address 4000:115::33/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt23
            ipv6 address 4000:116::33/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt32
            ipv6 address 4000:119::33/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt34
            ipv6 address 4000:120::33/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-sw1
            ipv6 address 4000:121::33/64
            ipv6 router isis 1
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0033.00
            is-type level-1
            topology ipv6-unicast
            ppr on
           !

     rt34:
       links:
         eth-rt23:
           peer: [rt23, eth-rt34]
         eth-rt33:
           peer: [rt33, eth-rt34]
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ipv6 address 5000::34/128
            ipv6 router isis 1
           !
           interface eth-rt23
            ipv6 address 4000:117::34/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           interface eth-rt33
            ipv6 address 4000:120::34/64
            ipv6 router isis 1
            isis network point-to-point
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0034.00
            is-type level-1
            topology ipv6-unicast
            ppr on
           !

     rt41:
       links:
         eth-sw1:
           peer: [sw1, eth-rt41]
       frr:
         zebra:
         isisd:
         config: |
           interface lo
            ipv6 address 5000::41/128
            ipv6 router isis 1
           !
           interface eth-sw1
            ipv6 address 4000:121::41/64
            ipv6 router isis 1
            isis hello-multiplier 3
           !
           router isis 1
            net 49.0000.0000.0000.0041.00
            is-type level-1
            topology ipv6-unicast
            ppr on
           !

   switches:
     sw1:
       links:
         eth-rt32:
           peer: [rt32, eth-sw1]
         eth-rt33:
           peer: [rt33, eth-sw1]
         eth-rt41:
           peer: [rt41, eth-sw1]

   frr:
     base-config: |
       hostname %(node)
       password 1
       log file %(logdir)/%(node).log
       log commands
       !
       debug zebra rib
       debug isis ppr
       debug isis events
       debug isis route-events
       debug isis spf-events
       debug isis lsp-gen
       !

YANG
^^^^

PPR can also be configured using NETCONF, RESTCONF and gRPC based on the
following YANG models: \*
`frr-ppr.yang <https://github.com/opensourcerouting/frr/blob/isisd-ppr/yang/frr-ppr.yang>`__
\*
`frr-isisd.yang <https://github.com/opensourcerouting/frr/blob/isisd-ppr/yang/frr-isisd.yang>`__

As an example, here’s R11 configuration in the XML format:

.. code:: xml

   <lib xmlns="http://frrouting.org/yang/interface">
     <interface>
       <name>lo-ppr</name>
       <vrf>default</vrf>
     </interface>
     <interface>
       <name>lo</name>
       <vrf>default</vrf>
       <isis xmlns="http://frrouting.org/yang/isisd">
         <area-tag>1</area-tag>
         <ipv6-routing>true</ipv6-routing>
       </isis>
     </interface>
     <interface>
       <name>eth-ce1</name>
       <vrf>default</vrf>
     </interface>
     <interface>
       <name>eth-rt12</name>
       <vrf>default</vrf>
       <isis xmlns="http://frrouting.org/yang/isisd">
         <area-tag>1</area-tag>
         <ipv6-routing>true</ipv6-routing>
         <hello>
           <multiplier>
             <level-1>3</level-1>
             <level-2>3</level-2>
           </multiplier>
         </hello>
         <network-type>point-to-point</network-type>
       </isis>
     </interface>
     <interface>
       <name>eth-rt21</name>
       <vrf>default</vrf>
       <isis xmlns="http://frrouting.org/yang/isisd">
         <area-tag>1</area-tag>
         <ipv6-routing>true</ipv6-routing>
         <hello>
           <multiplier>
             <level-1>3</level-1>
             <level-2>3</level-2>
           </multiplier>
         </hello>
         <network-type>point-to-point</network-type>
       </isis>
     </interface>
   </lib>
   <ppr xmlns="http://frrouting.org/yang/ppr">
     <group>
       <name>VOIP</name>
       <ipv6>
         <ppr-id>6000:1::1/128</ppr-id>
         <ppr-prefix>5000::11/128</ppr-prefix>
         <ppr-pde>
           <pde-id>5000::14/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>    
         </ppr-pde>                        
         <ppr-pde>                      
           <pde-id>5000::23/128</pde-id>       
           <pde-id-type>ipv6-node</pde-id-type>  
           <pde-type>topological</pde-type>
         </ppr-pde>          
         <ppr-pde>                                           
           <pde-id>5000::22/128</pde-id>       
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>                    
         <ppr-pde>                            
           <pde-id>5000::21/128</pde-id>       
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>    
         </ppr-pde>                        
         <ppr-pde>                         
           <pde-id>5000::11/128</pde-id>            
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>    
         </ppr-pde>                        
         <attributes>                   
           <ppr-metric>50</ppr-metric>         
         </attributes>                     
       </ipv6>
       <ipv6>                                  
         <ppr-id>6000:2::1/128</ppr-id>
         <ppr-prefix>5000::14/128</ppr-prefix>
         <ppr-pde>
           <pde-id>5000::11/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::21/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::22/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::23/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::14/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <attributes>
           <ppr-metric>50</ppr-metric>
         </attributes>
       </ipv6>
     </group>
     <group>
       <name>INTERFACE_PDES</name>
       <ipv6>
         <ppr-id>6000:1::2/128</ppr-id>
         <ppr-prefix>5000::11/128</ppr-prefix>
         <ppr-pde>
           <pde-id>5000::14/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::23/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::33/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>4000:121::41/64</pde-id>
           <pde-id-type>ipv6-interface</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::32/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>4000:113::21/64</pde-id>
           <pde-id-type>ipv6-interface</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::11/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
       </ipv6>
       <ipv6>
         <ppr-id>6000:2::2/128</ppr-id>
         <ppr-prefix>5000::14/128</ppr-prefix>
         <ppr-pde>
           <pde-id>5000::11/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::21/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::32/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>4000:121::41/64</pde-id>
           <pde-id-type>ipv6-interface</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::33/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>4000:116::23/64</pde-id>
           <pde-id-type>ipv6-interface</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::14/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
       </ipv6>
     </group>
     <group>
       <name>BROKEN</name>
       <ipv6>
         <ppr-id>6000:1::3/128</ppr-id>
         <ppr-prefix>5000::11/128</ppr-prefix>
         <ppr-pde>
           <pde-id>5000::14/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::23/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::99/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::21/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::11/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <attributes>
           <ppr-metric>1500</ppr-metric>
         </attributes>
       </ipv6>
       <ipv6>
         <ppr-id>6000:2::3/128</ppr-id>
         <ppr-prefix>5000::14/128</ppr-prefix>
         <ppr-pde>
           <pde-id>5000::11/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::21/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::99/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::23/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <ppr-pde>
           <pde-id>5000::14/128</pde-id>
           <pde-id-type>ipv6-node</pde-id-type>
           <pde-type>topological</pde-type>
         </ppr-pde>
         <attributes>
           <ppr-metric>1500</ppr-metric>
         </attributes>
       </ipv6>
     </group>
   </ppr>
   <isis xmlns="http://frrouting.org/yang/isisd">
     <instance>
       <area-tag>1</area-tag>
       <area-address>49.0000.0000.0000.0011.00</area-address>
       <multi-topology>
         <ipv6-unicast>
         </ipv6-unicast>
       </multi-topology>
       <ppr>
         <enable>true</enable>
         <ppr-advertise>
           <name>VOIP</name>
         </ppr-advertise>
         <ppr-advertise>
           <name>INTERFACE_PDES</name>
         </ppr-advertise>
         <ppr-advertise>
           <name>BROKEN</name>
         </ppr-advertise>
       </ppr>
     </instance>
   </isis>

Verification - Control Plane
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Verify that R11 has flooded the PPR TLVs correctly to all IS-IS routers:

::

   # show isis database detail 0000.0000.0011
   Area 1:
   IS-IS Level-1 link-state database:
   LSP ID                  PduLen  SeqNumber   Chksum  Holdtime  ATT/P/OL
   debian.00-00             1233   0x00000009  0x7bd4     683    0/0/0
     Protocols Supported: IPv4, IPv6
     Area Address: 49.0000
     MT Router Info: ipv4-unicast
     MT Router Info: ipv6-unicast
     Hostname: debian
     MT Reachability: 0000.0000.0012.00 (Metric: 10) ipv6-unicast
     MT Reachability: 0000.0000.0021.00 (Metric: 10) ipv6-unicast
     MT IPv6 Reachability: 5000::11/128 (Metric: 10) ipv6-unicast
     MT IPv6 Reachability: 4000:101::/64 (Metric: 10) ipv6-unicast
     MT IPv6 Reachability: 4000:104::/64 (Metric: 10) ipv6-unicast
     PPR: Fragment ID: 0, MT-ID: ipv4-unicast, Algorithm: SPF, F:0 D:0 A:0 U:1
       PPR Prefix: 5000::11/128
       ID: 6000:1::3/128 (Native IPv6)
       PDE: 5000::14/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::23/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::99/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::21/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::11/128 (IPv6 Node Address), L:0 N:1 E:0
       Metric: 1500
     PPR: Fragment ID: 0, MT-ID: ipv4-unicast, Algorithm: SPF, F:0 D:0 A:0 U:1
       PPR Prefix: 5000::14/128
       ID: 6000:2::3/128 (Native IPv6)
       PDE: 5000::11/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::21/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::99/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::23/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::14/128 (IPv6 Node Address), L:0 N:1 E:0
       Metric: 1500
     PPR: Fragment ID: 0, MT-ID: ipv4-unicast, Algorithm: SPF, F:0 D:0 A:0 U:1
       PPR Prefix: 5000::11/128
       ID: 6000:1::2/128 (Native IPv6)
       PDE: 5000::14/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::23/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::33/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 4000:121::41 (IPv6 Interface Address), L:0 N:0 E:0
       PDE: 5000::32/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 4000:113::21 (IPv6 Interface Address), L:0 N:0 E:0
       PDE: 5000::11/128 (IPv6 Node Address), L:0 N:1 E:0
       Metric: 0
     PPR: Fragment ID: 0, MT-ID: ipv4-unicast, Algorithm: SPF, F:0 D:0 A:0 U:1
       PPR Prefix: 5000::14/128
       ID: 6000:2::2/128 (Native IPv6)
       PDE: 5000::11/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::21/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::32/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 4000:121::41 (IPv6 Interface Address), L:0 N:0 E:0
       PDE: 5000::33/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 4000:116::23 (IPv6 Interface Address), L:0 N:0 E:0
       PDE: 5000::14/128 (IPv6 Node Address), L:0 N:1 E:0
       Metric: 0
     PPR: Fragment ID: 0, MT-ID: ipv4-unicast, Algorithm: SPF, F:0 D:0 A:0 U:1
       PPR Prefix: 5000::11/128
       ID: 6000:1::1/128 (Native IPv6)
       PDE: 5000::14/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::23/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::22/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::21/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::11/128 (IPv6 Node Address), L:0 N:1 E:0
       Metric: 50
     PPR: Fragment ID: 0, MT-ID: ipv4-unicast, Algorithm: SPF, F:0 D:0 A:0 U:1
       PPR Prefix: 5000::14/128
       ID: 6000:2::1/128 (Native IPv6)
       PDE: 5000::11/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::21/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::22/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::23/128 (IPv6 Node Address), L:0 N:0 E:0
       PDE: 5000::14/128 (IPv6 Node Address), L:0 N:1 E:0
       Metric: 50

The PPR TLVs can also be seen using a modified version of Wireshark as
seen below:

.. figure:: https://user-images.githubusercontent.com/931662/61582441-9551e500-ab01-11e9-8f6f-400ee3fba927.png
   :alt: s2

   s2

Using the ``show isis ppr`` command, verify that all routers installed
the PPR-IDs for the paths they are part of. Example:

Router RT11
^^^^^^^^^^^

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position  Status  Uptime    
    --------------------------------------------------------------------------------------------
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Tail-End  -       -         
    1     L1     6000:1::2/128 (Native IPv6)  5000::11/128  0       Tail-End  -       -         
    1     L1     6000:1::3/128 (Native IPv6)  5000::11/128  1500    Tail-End  -       -         
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Head-End  Up      00:45:41  
    1     L1     6000:2::2/128 (Native IPv6)  5000::14/128  0       Head-End  Up      00:45:41  
    1     L1     6000:2::3/128 (Native IPv6)  5000::14/128  1500    Head-End  Up      00:45:41  

   # show ipv6 route 6000::/16 longer-prefixes isis
   Codes: K - kernel route, C - connected, S - static, R - RIPng,
          O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
          v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
          f - OpenFabric,
          > - selected route, * - FIB route, q - queued route, r - rejected route

   I>* 6000:2::1/128 [115/50] via fe80::c2a:54ff:fe39:bff7, eth-rt21, 00:01:33
   I>* 6000:2::2/128 [115/0] via fe80::c2a:54ff:fe39:bff7, eth-rt21, 00:01:33
   I>* 6000:2::3/128 [115/1500] via fe80::c2a:54ff:fe39:bff7, eth-rt21, 00:01:33

Router RT12
'''''''''''

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position  Status  Uptime  
    ------------------------------------------------------------------------------------------
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Off-Path  -       -       
    1     L1     6000:1::2/128 (Native IPv6)  5000::11/128  0       Off-Path  -       -       
    1     L1     6000:1::3/128 (Native IPv6)  5000::11/128  1500    Off-Path  -       -       
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Off-Path  -       -       
    1     L1     6000:2::2/128 (Native IPv6)  5000::14/128  0       Off-Path  -       -       
    1     L1     6000:2::3/128 (Native IPv6)  5000::14/128  1500    Off-Path  -       -       

   # show ipv6 route 6000::/16 longer-prefixes isis

Router RT13
'''''''''''

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position  Status  Uptime  
    ------------------------------------------------------------------------------------------
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Off-Path  -       -       
    1     L1     6000:1::2/128 (Native IPv6)  5000::11/128  0       Off-Path  -       -       
    1     L1     6000:1::3/128 (Native IPv6)  5000::11/128  1500    Off-Path  -       -       
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Off-Path  -       -       
    1     L1     6000:2::2/128 (Native IPv6)  5000::14/128  0       Off-Path  -       -       
    1     L1     6000:2::3/128 (Native IPv6)  5000::14/128  1500    Off-Path  -       -       

   # show ipv6 route 6000::/16 longer-prefixes isis

Router RT14
'''''''''''

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position  Status  Uptime    
    --------------------------------------------------------------------------------------------
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Head-End  Up      00:45:45  
    1     L1     6000:1::2/128 (Native IPv6)  5000::11/128  0       Head-End  Up      00:45:45  
    1     L1     6000:1::3/128 (Native IPv6)  5000::11/128  1500    Head-End  Up      00:45:45  
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Tail-End  -       -         
    1     L1     6000:2::2/128 (Native IPv6)  5000::14/128  0       Tail-End  -       -         
    1     L1     6000:2::3/128 (Native IPv6)  5000::14/128  1500    Tail-End  -       -         

   # show ipv6 route 6000::/16 longer-prefixes isis
   Codes: K - kernel route, C - connected, S - static, R - RIPng,
          O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
          v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
          f - OpenFabric,
          > - selected route, * - FIB route, q - queued route, r - rejected route

   I>* 6000:1::1/128 [115/50] via fe80::58ea:78ff:fe00:92c1, eth-rt23, 00:01:36
   I>* 6000:1::2/128 [115/0] via fe80::58ea:78ff:fe00:92c1, eth-rt23, 00:01:36
   I>* 6000:1::3/128 [115/1500] via fe80::58ea:78ff:fe00:92c1, eth-rt23, 00:01:36

Router RT21
'''''''''''

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position   Status  Uptime    
    ---------------------------------------------------------------------------------------------
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Mid-Point  Up      00:45:46  
    1     L1     6000:1::2/128 (Native IPv6)  5000::11/128  0       Mid-Point  Up      00:45:46  
    1     L1     6000:1::3/128 (Native IPv6)  5000::11/128  1500    Mid-Point  Up      00:45:46  
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Mid-Point  Up      00:45:46  
    1     L1     6000:2::2/128 (Native IPv6)  5000::14/128  0       Mid-Point  Up      00:45:46  
    1     L1     6000:2::3/128 (Native IPv6)  5000::14/128  1500    Mid-Point  Down    -         

   # show isis ppr id ipv6 6000:2::3/128 detail
   Area 1:
     PPR-ID: 6000:2::3/128 (Native IPv6)
       PPR-Prefix: 5000::14/128
       PDEs:
         5000::11/128 (IPv6 Node Address)
         5000::21/128 (IPv6 Node Address) [LOCAL]
         5000::99/128 (IPv6 Node Address) [NEXT]
         5000::23/128 (IPv6 Node Address)
         5000::14/128 (IPv6 Node Address)
       Attributes:
         Metric: 1500
       Position: Mid-Point
       Originator: 0000.0000.0011
       Level: L1
       Algorithm: 1
       MT-ID: ipv4-unicast
       Status: Down: PDE is unreachable
       Last change: 00:00:37

   # show ipv6 route 6000::/16 longer-prefixes isis
   Codes: K - kernel route, C - connected, S - static, R - RIPng,
          O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
          v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
          f - OpenFabric,
          > - selected route, * - FIB route, q - queued route, r - rejected route

   I>* 6000:1::1/128 [115/50] via fe80::142e:79ff:feeb:cffc, eth-rt11, 00:01:38
   I>* 6000:1::2/128 [115/0] via fe80::142e:79ff:feeb:cffc, eth-rt11, 00:01:38
   I>* 6000:1::3/128 [115/1500] via fe80::142e:79ff:feeb:cffc, eth-rt11, 00:01:38
   I>* 6000:2::1/128 [115/50] via fe80::c88e:7fff:fe5f:a08d, eth-rt22, 00:01:38
   I>* 6000:2::2/128 [115/0] via fe80::8b2:9eff:fe98:f66a, eth-rt32, 00:01:38

Router RT22
'''''''''''

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position   Status  Uptime    
    ---------------------------------------------------------------------------------------------
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Mid-Point  Up      00:45:47  
    1     L1     6000:1::2/128 (Native IPv6)  5000::11/128  0       Off-Path   -       -         
    1     L1     6000:1::3/128 (Native IPv6)  5000::11/128  1500    Off-Path   -       -         
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Mid-Point  Up      00:45:47  
    1     L1     6000:2::2/128 (Native IPv6)  5000::14/128  0       Off-Path   -       -         
    1     L1     6000:2::3/128 (Native IPv6)  5000::14/128  1500    Off-Path   -       -         

   # show ipv6 route 6000::/16 longer-prefixes isis
   Codes: K - kernel route, C - connected, S - static, R - RIPng,
          O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
          v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
          f - OpenFabric,
          > - selected route, * - FIB route, q - queued route, r - rejected route

   I>* 6000:1::1/128 [115/50] via fe80::2cb5:edff:fe60:29b1, eth-rt21, 00:01:38
   I>* 6000:2::1/128 [115/50] via fe80::e8d9:63ff:fea3:177b, eth-rt23, 00:01:38

Router RT23
'''''''''''

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position   Status  Uptime    
    ---------------------------------------------------------------------------------------------
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Mid-Point  Up      00:45:49  
    1     L1     6000:1::2/128 (Native IPv6)  5000::11/128  0       Mid-Point  Up      00:45:49  
    1     L1     6000:1::3/128 (Native IPv6)  5000::11/128  1500    Mid-Point  Down    -         
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Mid-Point  Up      00:45:49  
    1     L1     6000:2::2/128 (Native IPv6)  5000::14/128  0       Mid-Point  Up      00:45:49  
    1     L1     6000:2::3/128 (Native IPv6)  5000::14/128  1500    Mid-Point  Up      00:45:49  

   # show isis ppr id ipv6 6000:1::3/128 detail
   Area 1:
     PPR-ID: 6000:1::3/128 (Native IPv6)
       PPR-Prefix: 5000::11/128
       PDEs:
         5000::14/128 (IPv6 Node Address)
         5000::23/128 (IPv6 Node Address) [LOCAL]
         5000::99/128 (IPv6 Node Address) [NEXT]
         5000::21/128 (IPv6 Node Address)
         5000::11/128 (IPv6 Node Address)
       Attributes:
         Metric: 1500
       Position: Mid-Point
       Originator: 0000.0000.0011
       Level: L1
       Algorithm: 1
       MT-ID: ipv4-unicast
       Status: Down: PDE is unreachable
       Last change: 00:02:50

   # show ipv6 route 6000::/16 longer-prefixes isis
   Codes: K - kernel route, C - connected, S - static, R - RIPng,
          O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
          v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
          f - OpenFabric,
          > - selected route, * - FIB route, q - queued route, r - rejected route

   I>* 6000:1::1/128 [115/50] via fe80::d09f:1bff:fe31:e9c9, eth-rt22, 00:01:40
   I>* 6000:1::2/128 [115/0] via fe80::c0c3:b3ff:fe9f:b5d3, eth-rt33, 00:01:40
   I>* 6000:2::1/128 [115/50] via fe80::f40a:66ff:fefc:5c32, eth-rt14, 00:01:40
   I>* 6000:2::2/128 [115/0] via fe80::f40a:66ff:fefc:5c32, eth-rt14, 00:01:40
   I>* 6000:2::3/128 [115/1500] via fe80::f40a:66ff:fefc:5c32, eth-rt14, 00:01:40

Router RT31
'''''''''''

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position  Status  Uptime  
    ------------------------------------------------------------------------------------------
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Off-Path  -       -       
    1     L1     6000:1::2/128 (Native IPv6)  5000::11/128  0       Off-Path  -       -       
    1     L1     6000:1::3/128 (Native IPv6)  5000::11/128  1500    Off-Path  -       -       
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Off-Path  -       -       
    1     L1     6000:2::2/128 (Native IPv6)  5000::14/128  0       Off-Path  -       -       
    1     L1     6000:2::3/128 (Native IPv6)  5000::14/128  1500    Off-Path  -       -       

   # show ipv6 route 6000::/16 longer-prefixes isis

Router RT32
'''''''''''

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position   Status  Uptime    
    ---------------------------------------------------------------------------------------------
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Off-Path   -       -         
    1     L1     6000:1::2/128 (Native IPv6)  5000::11/128  0       Mid-Point  Up      00:45:51  
    1     L1     6000:1::3/128 (Native IPv6)  5000::11/128  1500    Off-Path   -       -         
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Off-Path   -       -         
    1     L1     6000:2::2/128 (Native IPv6)  5000::14/128  0       Mid-Point  Up      00:45:51  
    1     L1     6000:2::3/128 (Native IPv6)  5000::14/128  1500    Off-Path   -       -         

   # show ipv6 route 6000::/16 longer-prefixes isis
   Codes: K - kernel route, C - connected, S - static, R - RIPng,
          O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
          v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
          f - OpenFabric,
          > - selected route, * - FIB route, q - queued route, r - rejected route

   I>* 6000:1::2/128 [115/0] via 4000:113::21, eth-rt21, 00:01:42
   I>* 6000:2::2/128 [115/0] via 4000:121::41, eth-sw1, 00:01:42

Router RT33
'''''''''''

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position   Status  Uptime    
    ---------------------------------------------------------------------------------------------
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Off-Path   -       -         
    1     L1     6000:1::2/128 (Native IPv6)  5000::11/128  0       Mid-Point  Up      00:45:52  
    1     L1     6000:1::3/128 (Native IPv6)  5000::11/128  1500    Off-Path   -       -         
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Off-Path   -       -         
    1     L1     6000:2::2/128 (Native IPv6)  5000::14/128  0       Mid-Point  Up      00:45:52  
    1     L1     6000:2::3/128 (Native IPv6)  5000::14/128  1500    Off-Path   -       -         

   # show ipv6 route 6000::/16 longer-prefixes isis
   Codes: K - kernel route, C - connected, S - static, R - RIPng,
          O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
          v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
          f - OpenFabric,
          > - selected route, * - FIB route, q - queued route, r - rejected route

   I>* 6000:1::2/128 [115/0] via 4000:121::41, eth-sw1, 00:01:43
   I>* 6000:2::2/128 [115/0] via 4000:116::23, eth-rt23, 00:01:43

Router RT34
'''''''''''

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position  Status  Uptime  
    ------------------------------------------------------------------------------------------
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Off-Path  -       -       
    1     L1     6000:1::2/128 (Native IPv6)  5000::11/128  0       Off-Path  -       -       
    1     L1     6000:1::3/128 (Native IPv6)  5000::11/128  1500    Off-Path  -       -       
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Off-Path  -       -       
    1     L1     6000:2::2/128 (Native IPv6)  5000::14/128  0       Off-Path  -       -       
    1     L1     6000:2::3/128 (Native IPv6)  5000::14/128  1500    Off-Path  -       -       

   # show ipv6 route 6000::/16 longer-prefixes isis

Router RT41
'''''''''''

::

   # show isis ppr
    Area  Level  ID                           Prefix        Metric  Position   Status  Uptime    
    ---------------------------------------------------------------------------------------------
    1     L1     6000:1::1/128 (Native IPv6)  5000::11/128  50      Off-Path   -       -         
    1     L1     6000:1::2/128 (Native IPv6)  5000::11/128  0       Mid-Point  Up      00:45:55  
    1     L1     6000:1::3/128 (Native IPv6)  5000::11/128  1500    Off-Path   -       -         
    1     L1     6000:2::1/128 (Native IPv6)  5000::14/128  50      Off-Path   -       -         
    1     L1     6000:2::2/128 (Native IPv6)  5000::14/128  0       Mid-Point  Up      00:45:55  
    1     L1     6000:2::3/128 (Native IPv6)  5000::14/128  1500    Off-Path   -       -         

   # show ipv6 route 6000::/16 longer-prefixes isis
   Codes: K - kernel route, C - connected, S - static, R - RIPng,
          O - OSPFv3, I - IS-IS, B - BGP, N - NHRP, T - Table,
          v - VNC, V - VNC-Direct, A - Babel, D - SHARP, F - PBR,
          f - OpenFabric,
          > - selected route, * - FIB route, q - queued route, r - rejected route

   I>* 6000:1::2/128 [115/0] via fe80::b4b9:60ff:feee:3c73, eth-sw1, 00:01:46
   I>* 6000:2::2/128 [115/0] via fe80::bc2a:d9ff:fe65:97f2, eth-sw1, 00:01:46

As it can be seen by the output of ``show isis ppr id ipv6 ... detail``,
routers R21 and R23 couldn’t install the third PPR path because of an
unreachable PDE (configuration error).

Verification - Forwarding Plane
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On Router R11, use the ``traceroute`` tool to ensure that the PPR paths
were installed correctly in the network:

::

   root@rt11:~# traceroute 6000:2::1
   traceroute to 6000:2::1 (6000:2::1), 30 hops max, 80 byte packets
    1  4000:104::21 (4000:104::21)  0.612 ms  0.221 ms  0.241 ms
    2  4000:110::22 (4000:110::22)  0.257 ms  0.113 ms  0.105 ms
    3  4000:111::23 (4000:111::23)  0.257 ms  0.151 ms  0.098 ms
    4  6000:2::1 (6000:2::1)  0.346 ms  0.139 ms  0.100 ms
   root@rt11:~#
   root@rt11:~# traceroute 6000:2::2
   traceroute to 6000:2::2 (6000:2::2), 30 hops max, 80 byte packets
    1  4000:104::21 (4000:104::21)  4.383 ms  4.148 ms  0.044 ms
    2  4000:113::32 (4000:113::32)  0.272 ms  0.065 ms  0.064 ms
    3  4000:121::41 (4000:121::41)  0.263 ms  0.101 ms  0.086 ms
    4  4000:115::33 (4000:115::33)  0.351 ms 4000:119::33 (4000:119::33)  0.249 ms 4000:115::33 (4000:115::33)  0.153 ms
    5  4000:111::23 (4000:111::23)  0.232 ms  0.293 ms  0.131 ms
    6  6000:2::2 (6000:2::2)  0.184 ms  0.212 ms  0.140 ms
   root@rt11:~#
   root@rt11:~# traceroute 6000:2::3
   traceroute to 6000:2::3 (6000:2::3), 30 hops max, 80 byte packets
    1  4000:104::21 (4000:104::21)  1.537 ms !N  1.347 ms !N  1.075 ms !N

The failure on the third traceroute is expected since the 6000:2::3
PPR-ID is misconfigured.

Now ping Host 3 from Host 1 and use tcpdump or wireshark to verify that
the ICMP packets are being tunneled using GRE and following the {R11 -
R21 - R22 - R23 - R14} path. Here’s a wireshark capture between R11 and
R21:

.. figure:: https://user-images.githubusercontent.com/931662/61582398-d4cc0180-ab00-11e9-83a8-d219f98010b9.png
   :alt: s1

   s1

Using ``traceroute`` it’s also possible to see that the ICMP packets are
being tunneled through the IS-IS network:

::

   root@host1:~# traceroute fd00:20:1::1 -s fd00:10:1::1                                                                                                                                                                                        
   traceroute to fd00:20:1::1 (fd00:20:1::1), 30 hops max, 80 byte packets
    1  fd00:10:1::100 (fd00:10:1::100)  0.354 ms  0.092 ms  0.031 ms
    2  fd00:10::11 (fd00:10::11)  0.125 ms  0.022 ms  0.026 ms
    3  * * *
    4  * * *
    5  fd00:20:1::1 (fd00:20:1::1)  0.235 ms  0.106 ms  0.091 ms