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
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
|
Network Working Group R. Coltun
Request for Comments: 5340 Acoustra Productions
Obsoletes: 2740 D. Ferguson
Category: Standards Track Juniper Networks
J. Moy
Sycamore Networks, Inc
A. Lindem, Ed.
Redback Networks
July 2008
OSPF for IPv6
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Abstract
This document describes the modifications to OSPF to support version
6 of the Internet Protocol (IPv6). The fundamental mechanisms of
OSPF (flooding, Designated Router (DR) election, area support, Short
Path First (SPF) calculations, etc.) remain unchanged. However, some
changes have been necessary, either due to changes in protocol
semantics between IPv4 and IPv6, or simply to handle the increased
address size of IPv6. These modifications will necessitate
incrementing the protocol version from version 2 to version 3. OSPF
for IPv6 is also referred to as OSPF version 3 (OSPFv3).
Changes between OSPF for IPv4, OSPF Version 2, and OSPF for IPv6 as
described herein include the following. Addressing semantics have
been removed from OSPF packets and the basic Link State
Advertisements (LSAs). New LSAs have been created to carry IPv6
addresses and prefixes. OSPF now runs on a per-link basis rather
than on a per-IP-subnet basis. Flooding scope for LSAs has been
generalized. Authentication has been removed from the OSPF protocol
and instead relies on IPv6's Authentication Header and Encapsulating
Security Payload (ESP).
Even with larger IPv6 addresses, most packets in OSPF for IPv6 are
almost as compact as those in OSPF for IPv4. Most fields and packet-
size limitations present in OSPF for IPv4 have been relaxed. In
addition, option handling has been made more flexible.
Coltun, et al. Standards Track [Page 1]
^L
RFC 5340 OSPF for IPv6 July 2008
All of OSPF for IPv4's optional capabilities, including demand
circuit support and Not-So-Stubby Areas (NSSAs), are also supported
in OSPF for IPv6.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1. Requirements Notation . . . . . . . . . . . . . . . . . . 4
1.2. Terminology . . . . . . . . . . . . . . . . . . . . . . . 4
2. Differences from OSPF for IPv4 . . . . . . . . . . . . . . . . 5
2.1. Protocol Processing Per-Link, Not Per-Subnet . . . . . . . 5
2.2. Removal of Addressing Semantics . . . . . . . . . . . . . 5
2.3. Addition of Flooding Scope . . . . . . . . . . . . . . . . 6
2.4. Explicit Support for Multiple Instances per Link . . . . . 6
2.5. Use of Link-Local Addresses . . . . . . . . . . . . . . . 7
2.6. Authentication Changes . . . . . . . . . . . . . . . . . . 7
2.7. Packet Format Changes . . . . . . . . . . . . . . . . . . 8
2.8. LSA Format Changes . . . . . . . . . . . . . . . . . . . . 9
2.9. Handling Unknown LSA Types . . . . . . . . . . . . . . . . 10
2.10. Stub/NSSA Area Support . . . . . . . . . . . . . . . . . . 11
2.11. Identifying Neighbors by Router ID . . . . . . . . . . . . 11
3. Differences with RFC 2740 . . . . . . . . . . . . . . . . . . 11
3.1. Support for Multiple Interfaces on the Same Link . . . . . 11
3.2. Deprecation of MOSPF for IPv6 . . . . . . . . . . . . . . 12
3.3. NSSA Specification . . . . . . . . . . . . . . . . . . . . 12
3.4. Stub Area Unknown LSA Flooding Restriction Deprecated . . 12
3.5. Link LSA Suppression . . . . . . . . . . . . . . . . . . . 12
3.6. LSA Options and Prefix Options Updates . . . . . . . . . . 13
3.7. IPv6 Site-Local Addresses . . . . . . . . . . . . . . . . 13
4. Implementation Details . . . . . . . . . . . . . . . . . . . . 13
4.1. Protocol Data Structures . . . . . . . . . . . . . . . . . 14
4.1.1. The Area Data Structure . . . . . . . . . . . . . . . 15
4.1.2. The Interface Data Structure . . . . . . . . . . . . . 15
4.1.3. The Neighbor Data Structure . . . . . . . . . . . . . 16
4.2. Protocol Packet Processing . . . . . . . . . . . . . . . . 17
4.2.1. Sending Protocol Packets . . . . . . . . . . . . . . . 17
4.2.1.1. Sending Hello Packets . . . . . . . . . . . . . . 18
4.2.1.2. Sending Database Description Packets . . . . . . . 19
4.2.2. Receiving Protocol Packets . . . . . . . . . . . . . . 19
4.2.2.1. Receiving Hello Packets . . . . . . . . . . . . . 21
4.3. The Routing table Structure . . . . . . . . . . . . . . . 22
4.3.1. Routing Table Lookup . . . . . . . . . . . . . . . . . 23
4.4. Link State Advertisements . . . . . . . . . . . . . . . . 23
4.4.1. The LSA Header . . . . . . . . . . . . . . . . . . . . 23
4.4.2. The Link-State Database . . . . . . . . . . . . . . . 24
4.4.3. Originating LSAs . . . . . . . . . . . . . . . . . . . 25
4.4.3.1. LSA Options . . . . . . . . . . . . . . . . . . . 27
4.4.3.2. Router-LSAs . . . . . . . . . . . . . . . . . . . 27
Coltun, et al. Standards Track [Page 2]
^L
RFC 5340 OSPF for IPv6 July 2008
4.4.3.3. Network-LSAs . . . . . . . . . . . . . . . . . . . 29
4.4.3.4. Inter-Area-Prefix-LSAs . . . . . . . . . . . . . . 30
4.4.3.5. Inter-Area-Router-LSAs . . . . . . . . . . . . . . 31
4.4.3.6. AS-External-LSAs . . . . . . . . . . . . . . . . . 32
4.4.3.7. NSSA-LSAs . . . . . . . . . . . . . . . . . . . . 33
4.4.3.8. Link-LSAs . . . . . . . . . . . . . . . . . . . . 34
4.4.3.9. Intra-Area-Prefix-LSAs . . . . . . . . . . . . . . 36
4.4.4. Future LSA Validation . . . . . . . . . . . . . . . . 40
4.5. Flooding . . . . . . . . . . . . . . . . . . . . . . . . . 40
4.5.1. Receiving Link State Update Packets . . . . . . . . . 40
4.5.2. Sending Link State Update Packets . . . . . . . . . . 41
4.5.3. Installing LSAs in the Database . . . . . . . . . . . 43
4.6. Definition of Self-Originated LSAs . . . . . . . . . . . . 43
4.7. Virtual Links . . . . . . . . . . . . . . . . . . . . . . 44
4.8. Routing Table Calculation . . . . . . . . . . . . . . . . 44
4.8.1. Calculating the Shortest-Path Tree for an Area . . . . 45
4.8.2. The Next-Hop Calculation . . . . . . . . . . . . . . . 44
4.8.3. Calculating the Inter-Area Routes . . . . . . . . . . 47
4.8.4. Examining Transit Areas' Summary-LSAs . . . . . . . . 48
4.8.5. Calculating AS External and NSSA Routes . . . . . . . 48
4.9. Multiple Interfaces to a Single Link . . . . . . . . . . . 48
4.9.1. Standby Interface State . . . . . . . . . . . . . . . 50
5. Security Considerations . . . . . . . . . . . . . . . . . . . 52
6. Manageability Considerations . . . . . . . . . . . . . . . . . 52
7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 52
7.1. MOSPF for OSPFv3 Deprecation IANA Considerations . . . . . 53
8. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 53
9. References . . . . . . . . . . . . . . . . . . . . . . . . . . 55
9.1. Normative References . . . . . . . . . . . . . . . . . . . 55
9.2. Informative References . . . . . . . . . . . . . . . . . . 56
Appendix A. OSPF Data Formats . . . . . . . . . . . . . . . . . . 57
A.1. Encapsulation of OSPF Packets . . . . . . . . . . . . . . 57
A.2. The Options Field . . . . . . . . . . . . . . . . . . . . 58
A.3. OSPF Packet Formats . . . . . . . . . . . . . . . . . . . 60
A.3.1. The OSPF Packet Header . . . . . . . . . . . . . . . . 60
A.3.2. The Hello Packet . . . . . . . . . . . . . . . . . . . 62
A.3.3. The Database Description Packet . . . . . . . . . . . 63
A.3.4. The Link State Request Packet . . . . . . . . . . . . 65
A.3.5. The Link State Update Packet . . . . . . . . . . . . . 66
A.3.6. The Link State Acknowledgment Packet . . . . . . . . . 67
A.4. LSA Formats . . . . . . . . . . . . . . . . . . . . . . . 68
A.4.1. IPv6 Prefix Representation . . . . . . . . . . . . . . 69
A.4.1.1. Prefix Options . . . . . . . . . . . . . . . . . . 69
A.4.2. The LSA Header . . . . . . . . . . . . . . . . . . . . 70
A.4.2.1. LSA Type . . . . . . . . . . . . . . . . . . . . . 72
A.4.3. Router-LSAs . . . . . . . . . . . . . . . . . . . . . 73
A.4.4. Network-LSAs . . . . . . . . . . . . . . . . . . . . . 76
A.4.5. Inter-Area-Prefix-LSAs . . . . . . . . . . . . . . . . 77
Coltun, et al. Standards Track [Page 3]
^L
RFC 5340 OSPF for IPv6 July 2008
A.4.6. Inter-Area-Router-LSAs . . . . . . . . . . . . . . . . 78
A.4.7. AS-External-LSAs . . . . . . . . . . . . . . . . . . . 79
A.4.8. NSSA-LSAs . . . . . . . . . . . . . . . . . . . . . . 82
A.4.9. Link-LSAs . . . . . . . . . . . . . . . . . . . . . . 82
A.4.10. Intra-Area-Prefix-LSAs . . . . . . . . . . . . . . . . 84
Appendix B. Architectural Constants . . . . . . . . . . . . . . . 86
Appendix C. Configurable Constants . . . . . . . . . . . . . . . 86
C.1. Global Parameters . . . . . . . . . . . . . . . . . . . . 86
C.2. Area Parameters . . . . . . . . . . . . . . . . . . . . . 87
C.3. Router Interface Parameters . . . . . . . . . . . . . . . 88
C.4. Virtual Link Parameters . . . . . . . . . . . . . . . . . 90
C.5. NBMA Network Parameters . . . . . . . . . . . . . . . . . 91
C.6. Point-to-Multipoint Network Parameters . . . . . . . . . . 92
C.7. Host Route Parameters . . . . . . . . . . . . . . . . . . 92
1. Introduction
This document describes the modifications to OSPF to support version
6 of the Internet Protocol (IPv6). The fundamental mechanisms of
OSPF (flooding, Designated Router (DR) election, area support,
(Shortest Path First) SPF calculations, etc.) remain unchanged.
However, some changes have been necessary, either due to changes in
protocol semantics between IPv4 and IPv6, or simply to handle the
increased address size of IPv6. These modifications will necessitate
incrementing the protocol version from version 2 to version 3. OSPF
for IPv6 is also referred to as OSPF version 3 (OSPFv3).
This document is organized as follows. Section 2 describes the
differences between OSPF for IPv4 (OSPF version 2) and OSPF for IPv6
(OSPF version 3) in detail. Section 3 describes the difference
between RFC 2740 and this document. Section 4 provides
implementation details for the changes. Appendix A gives the OSPF
for IPv6 packet and Link State Advertisement (LSA) formats. Appendix
B lists the OSPF architectural constants. Appendix C describes
configuration parameters.
1.1. Requirements Notation
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 [RFC-KEYWORDS].
1.2. Terminology
This document attempts to use terms from both the OSPF for IPv4
specification ([OSPFV2]) and the IPv6 protocol specifications
([IPV6]). This has produced a mixed result. Most of the terms used
both by OSPF and IPv6 have roughly the same meaning (e.g.,
Coltun, et al. Standards Track [Page 4]
^L
RFC 5340 OSPF for IPv6 July 2008
interfaces). However, there are a few conflicts. IPv6 uses "link"
similarly to IPv4 OSPF's "subnet" or "network". In this case, we
have chosen to use IPv6's "link" terminology. "Link" replaces OSPF's
"subnet" and "network" in most places in this document, although
OSPF's network-LSA remains unchanged (and possibly unfortunately, a
new link-LSA has also been created).
The names of some of the OSPF LSAs have also changed. See
Section 2.8 for details.
In the context of this document, an OSPF instance is a separate
protocol instance complete with its own protocol data structures
(e.g., areas, interfaces, neighbors), link-state database, protocol
state machines, and protocol processing (e.g., SPF calculation).
2. Differences from OSPF for IPv4
Most of the algorithms from OSPF for IPv4 [OSPFV2] have been
preserved in OSPF for IPv6. However, some changes have been
necessary, either due to changes in protocol semantics between IPv4
and IPv6, or simply to handle the increased address size of IPv6.
The following subsections describe the differences between this
document and [OSPFV2].
2.1. Protocol Processing Per-Link, Not Per-Subnet
IPv6 uses the term "link" to indicate "a communication facility or
medium over which nodes can communicate at the link layer" ([IPV6]).
"Interfaces" connect to links. Multiple IPv6 subnets can be assigned
to a single link, and two nodes can talk directly over a single link,
even if they do not share a common IPv6 subnet (IPv6 prefix).
For this reason, OSPF for IPv6 runs per-link instead of the IPv4
behavior of per-IP-subnet. The terms "network" and "subnet" used in
the IPv4 OSPF specification ([OSPFV2]) should generally be replaced
by link. Likewise, an OSPF interface now connects to a link instead
of an IP subnet.
This change affects the receiving of OSPF protocol packets, the
contents of Hello packets, and the contents of network-LSAs.
2.2. Removal of Addressing Semantics
In OSPF for IPv6, addressing semantics have been removed from the
OSPF protocol packets and the main LSA types, leaving a network-
protocol-independent core. In particular:
Coltun, et al. Standards Track [Page 5]
^L
RFC 5340 OSPF for IPv6 July 2008
o IPv6 addresses are not present in OSPF packets, except in LSA
payloads carried by the Link State Update packets. See
Section 2.7 for details.
o Router-LSAs and network-LSAs no longer contain network addresses,
but simply express topology information. See Section 2.8 for
details.
o OSPF Router IDs, Area IDs, and LSA Link State IDs remain at the
IPv4 size of 32 bits. They can no longer be assigned as (IPv6)
addresses.
o Neighboring routers are now always identified by Router ID.
Previously, they had been identified by an IPv4 address on
broadcast, NBMA (Non-Broadcast Multi-Access), and point-to-
multipoint links.
2.3. Addition of Flooding Scope
Flooding scope for LSAs has been generalized and is now explicitly
coded in the LSA's LS type field. There are now three separate
flooding scopes for LSAs:
o Link-local scope. LSA is only flooded on the local link and no
further. Used for the new link-LSA. See Section 4.4.3.8 for
details.
o Area scope. LSA is only flooded throughout a single OSPF area.
Used for router-LSAs, network-LSAs, inter-area-prefix-LSAs, inter-
area-router-LSAs, and intra-area-prefix-LSAs.
o AS scope. LSA is flooded throughout the routing domain. Used for
AS-external-LSAs. A router that originates AS scoped LSAs is
considered an AS Boundary Router (ASBR) and will set its E-bit in
router-LSAs for regular areas.
2.4. Explicit Support for Multiple Instances per Link
OSPF now supports the ability to run multiple OSPF protocol instances
on a single link. For example, this may be required on a NAP segment
shared between several providers. Providers may be supporting
separate OSPF routing domains that wish to remain separate even
though they have one or more physical network segments (i.e., links)
in common. In OSPF for IPv4, this was supported in a haphazard
fashion using the authentication fields in the OSPF for IPv4 header.
Coltun, et al. Standards Track [Page 6]
^L
RFC 5340 OSPF for IPv6 July 2008
Another use for running multiple OSPF instances is if you want, for
one reason or another, to have a single link belong to two or more
OSPF areas.
Support for multiple protocol instances on a link is accomplished via
an "Instance ID" contained in the OSPF packet header and OSPF
interface data structures. Instance ID solely affects the reception
of OSPF packets and applies to normal OSPF interfaces and virtual
links.
2.5. Use of Link-Local Addresses
IPv6 link-local addresses are for use on a single link, for purposes
of neighbor discovery, auto-configuration, etc. IPv6 routers do not
forward IPv6 datagrams having link-local source addresses [IP6ADDR].
Link-local unicast addresses are assigned from the IPv6 address range
FE80/10.
OSPF for IPv6 assumes that each router has been assigned link-local
unicast addresses on each of the router's attached physical links
[IP6ADDR]. On all OSPF interfaces except virtual links, OSPF packets
are sent using the interface's associated link-local unicast address
as the source address. A router learns the link-local addresses of
all other routers attached to its links and uses these addresses as
next-hop information during packet forwarding.
On virtual links, a global scope IPv6 address MUST be used as the
source address for OSPF protocol packets.
Link-local addresses appear in OSPF link-LSAs (see Section 4.4.3.8).
However, link-local addresses are not allowed in other OSPF LSA
types. In particular, link-local addresses MUST NOT be advertised in
inter-area-prefix-LSAs (Section 4.4.3.4), AS-external-LSAs
(Section 4.4.3.6), NSSA-LSAs (Section 4.4.3.7), or intra-area-prefix-
LSAs (Section 4.4.3.9).
2.6. Authentication Changes
In OSPF for IPv6, authentication has been removed from the OSPF
protocol. The "AuType" and "Authentication" fields have been removed
from the OSPF packet header, and all authentication-related fields
have been removed from the OSPF area and interface data structures.
When running over IPv6, OSPF relies on the IP Authentication Header
(see [IPAUTH]) and the IP Encapsulating Security Payload (see
[IPESP]) as described in [OSPFV3-AUTH] to ensure integrity and
authentication/confidentiality of routing exchanges.
Coltun, et al. Standards Track [Page 7]
^L
RFC 5340 OSPF for IPv6 July 2008
Protection of OSPF packet exchanges against accidental data
corruption is provided by the standard IPv6 Upper-Layer checksum (as
described in Section 8.1 of [IPV6]), covering the entire OSPF packet
and prepended IPv6 pseudo-header (see Appendix A.3.1).
2.7. Packet Format Changes
OSPF for IPv6 runs directly over IPv6. Aside from this, all
addressing semantics have been removed from the OSPF packet headers,
making it essentially "network-protocol-independent". All addressing
information is now contained in the various LSA types only.
In detail, changes in OSPF packet format consist of the following:
o The OSPF version number has been incremented from 2 to 3.
o The Options field in Hello packets and Database Description
packets has been expanded to 24 bits.
o The Authentication and AuType fields have been removed from the
OSPF packet header (see Section 2.6).
o The Hello packet now contains no address information at all.
Rather, it now includes an Interface ID that the originating
router has assigned to uniquely identify (among its own
interfaces) its interface to the link. This Interface ID will be
used as the network-LSA's Link State ID if the router becomes the
Designated Router on the link.
o Two Options bits, the "R-bit" and the "V6-bit", have been added to
the Options field for processing router-LSAs during the SPF
calculation (see Appendix A.2). If the "R-bit" is clear, an OSPF
speaker can participate in OSPF topology distribution without
being used to forward transit traffic; this can be used in multi-
homed hosts that want to participate in the routing protocol. The
V6-bit specializes the R-bit; if the V6-bit is clear, an OSPF
speaker can participate in OSPF topology distribution without
being used to forward IPv6 datagrams. If the R-bit is set and the
V6-bit is clear, IPv6 datagrams are not forwarded but datagrams
belonging to another protocol family may be forwarded.
o The OSPF packet header now includes an "Instance ID" that allows
multiple OSPF protocol instances to be run on a single link (see
Section 2.4).
Coltun, et al. Standards Track [Page 8]
^L
RFC 5340 OSPF for IPv6 July 2008
2.8. LSA Format Changes
All addressing semantics have been removed from the LSA header,
router-LSAs, and network-LSAs. These two LSAs now describe the
routing domain's topology in a network-protocol-independent manner.
New LSAs have been added to distribute IPv6 address information and
data required for next-hop resolution. The names of some of IPv4's
LSAs have been changed to be more consistent with each other.
In detail, changes in LSA format consist of the following:
o The Options field has been removed from the LSA header, expanded
to 24 bits, and moved into the body of router-LSAs, network-LSAs,
inter-area-router-LSAs, and link-LSAs. See Appendix A.2 for
details.
o The LSA Type field has been expanded (into the former Options
space) to 16 bits, with the upper three bits encoding flooding
scope and the handling of unknown LSA types (see Section 2.9).
o Addresses in LSAs are now expressed as [prefix, prefix length]
instead of [address, mask] (see Appendix A.4.1). The default
route is expressed as a prefix with length 0.
o Router-LSAs and network-LSAs now have no address information and
are network protocol independent.
o Router interface information MAY be spread across multiple router-
LSAs. Receivers MUST concatenate all the router-LSAs originated
by a given router when running the SPF calculation.
o A new LSA called the link-LSA has been introduced. Link-LSAs have
link-local flooding scope; they are never flooded beyond the link
with which they are associated. Link-LSAs have three purposes: 1)
they provide the router's link-local address to all other routers
attached to the link, 2) they inform other routers attached to the
link of a list of IPv6 prefixes to associate with the link, and 3)
they allow the router to advertise a collection of Options bits to
associate with the network-LSA that will be originated for the
link. See Section 4.4.3.8 for details.
o In IPv4, the router-LSA carries a router's IPv4 interface
addresses, the IPv4 equivalent of link-local addresses. These are
only used when calculating next hops during the OSPF routing
calculation (see Section 16.1.1 of [OSPFV2]), so they do not need
to be flooded past the local link. Hence, using link-LSAs to
distribute these addresses is more efficient. Note that link-
local addresses cannot be learned through the reception of Hellos
Coltun, et al. Standards Track [Page 9]
^L
RFC 5340 OSPF for IPv6 July 2008
in all cases. On NBMA links, next-hop routers do not necessarily
exchange Hellos. Rather, these routers learn of each other's
existence by way of the Designated Router (DR).
o The Options field in the network LSA is set to the logical OR of
the Options that each router on the link advertises in its link-
LSA.
o Type-3 summary-LSAs have been renamed "inter-area-prefix-LSAs".
Type-4 summary LSAs have been renamed "inter-area-router-LSAs".
o The Link State ID in inter-area-prefix-LSAs, inter-area-router-
LSAs, NSSA-LSAs, and AS-external-LSAs has lost its addressing
semantics and now serves solely to identify individual pieces of
the Link State Database. All addresses or Router IDs that were
formerly expressed by the Link State ID are now carried in the LSA
bodies.
o Network-LSAs and link-LSAs are the only LSAs whose Link State ID
carries additional meaning. For these LSAs, the Link State ID is
always the Interface ID of the originating router on the link
being described. For this reason, network-LSAs and link-LSAs are
now the only LSAs whose size cannot be limited: a network-LSA MUST
list all routers connected to the link and a link-LSA MUST list
all of a router's addresses on the link.
o A new LSA called the intra-area-prefix-LSA has been introduced.
This LSA carries all IPv6 prefix information that in IPv4 is
included in router-LSAs and network-LSAs. See Section 4.4.3.9 for
details.
o Inclusion of a forwarding address or external route tag in AS-
external-LSAs is now optional. In addition, AS-external-LSAs can
now reference another LSA, for inclusion of additional route
attributes that are outside the scope of the OSPF protocol. For
example, this reference could be used to attach BGP path
attributes to external routes.
2.9. Handling Unknown LSA Types
Handling of unknown LSA types has been made more flexible so that,
based on the LS type, unknown LSA types are either treated as having
link-local flooding scope, or are stored and flooded as if they were
understood. This behavior is explicitly coded in the LSA Handling
bit of the link state header's LS type field (see the U-bit in
Appendix A.4.2.1).
Coltun, et al. Standards Track [Page 10]
^L
RFC 5340 OSPF for IPv6 July 2008
The IPv4 OSPF behavior of simply discarding unknown types is
unsupported due to the desire to mix router capabilities on a single
link. Discarding unknown types causes problems when the Designated
Router supports fewer options than the other routers on the link.
2.10. Stub/NSSA Area Support
In OSPF for IPv4, stub and NSSA areas were designed to minimize link-
state database and routing table sizes for the areas' internal
routers. This allows routers with minimal resources to participate
in even very large OSPF routing domains.
In OSPF for IPv6, the concept of stub and NSSA areas is retained. In
IPv6, of the mandatory LSA types, stub areas carry only router-LSAs,
network-LSAs, inter-area-prefix-LSAs, link-LSAs, and intra-area-
prefix-LSAs. NSSA areas are restricted to these types and, of
course, NSSA-LSAs. This is the IPv6 equivalent of the LSA types
carried in IPv4 stub areas: router-LSAs, network-LSAs, type 3
summary-LSAs and for NSSA areas: stub area types and NSSA-LSAs.
2.11. Identifying Neighbors by Router ID
In OSPF for IPv6, neighboring routers on a given link are always
identified by their OSPF Router ID. This contrasts with the IPv4
behavior where neighbors on point-to-point networks and virtual links
are identified by their Router IDs while neighbors on broadcast,
NBMA, and point-to-multipoint links are identified by their IPv4
interface addresses.
This change affects the reception of OSPF packets (see Section 8.2 of
[OSPFV2]), the lookup of neighbors (Section 10 of [OSPFV2]), and the
reception of Hello packets (Section 10.5 of [OSPFV2]).
The Router ID of 0.0.0.0 is reserved and SHOULD NOT be used.
3. Differences with RFC 2740
OSPFv3 implementations based on RFC 2740 will fully interoperate with
implementations based on this specification. There are, however,
some protocol additions and changes (all of which are backward
compatible).
3.1. Support for Multiple Interfaces on the Same Link
This protocol feature was only partially specified in the RFC 2740.
The level of specification was insufficient to implement the feature.
Section 4.9 specifies the additions and clarifications necessary for
implementation. They are fully compatible with RFC 2740.
Coltun, et al. Standards Track [Page 11]
^L
RFC 5340 OSPF for IPv6 July 2008
3.2. Deprecation of MOSPF for IPv6
This protocol feature was only partially specified in RFC 2740. The
level of specification was insufficient to implement the feature.
There are no known implementations. Multicast Extensions to OSPF
(MOSPF) support and its attendant protocol fields have been
deprecated from OSPFv3. Refer to Section 4.4.3.2, Section 4.4.3.4,
Section 4.4.3.6, Section 4.4.3.7, Appendix A.2, Appendix A.4.2.1,
Appendix A.4.3, Appendix A.4.1.1, and Section 7.1.
3.3. NSSA Specification
This protocol feature was only partially specified in RFC 2740. The
level of specification was insufficient to implement the function.
This document includes an NSSA specification unique to OSPFv3. This
specification coupled with [NSSA] provide sufficient specification
for implementation. Refer to Section 4.8.5, Appendix A.4.3,
Appendix A.4.8, and [NSSA].
3.4. Stub Area Unknown LSA Flooding Restriction Deprecated
In RFC 2740 [OSPFV3], flooding of unknown LSA was restricted within
stub and NSSA areas. The text describing this restriction is
included below.
However, unlike in IPv4, IPv6 allows LSAs with unrecognized
LS types to be labeled "Store and flood the LSA, as if type
understood" (see the U-bit in Appendix A.4.2.1). Uncontrolled
introduction of such LSAs could cause a stub area's link-state
database to grow larger than its component routers' capacities.
To guard against this, the following rule regarding stub areas
has been established: an LSA whose LS type is unrecognized can
only be flooded into/throughout a stub area if both a) the LSA
has area or link-local flooding scope and b) the LSA has U-bit
set to 0. See Section 3.5 for details.
This restriction has been deprecated. OSPFv3 routers will flood link
and area scope LSAs whose LS type is unrecognized and whose U-bit is
set to 1 throughout stub and NSSA areas. There are no backward-
compatibility issues other than OSPFv3 routers still supporting the
restriction may not propagate newly defined LSA types.
3.5. Link LSA Suppression
The LinkLSASuppression interface configuration parameter has been
added. If LinkLSASuppression is configured for an interface and the
interface type is not broadcast or NBMA, origination of the link-LSA
Coltun, et al. Standards Track [Page 12]
^L
RFC 5340 OSPF for IPv6 July 2008
may be suppressed. The LinkLSASuppression interface configuration
parameter is described in Appendix C.3. Section 4.8.2 and
Section 4.4.3.8 were updated to reflect the parameter's usage.
3.6. LSA Options and Prefix Options Updates
The LSA Options and Prefix Options fields have been updated to
reflect recent protocol additions. Specifically, bits related to
MOSPF have been deprecated, Options field bits common with OSPFv2
have been reserved, and the DN-bit has been added to the prefix-
options. Refer to Appendix A.2 and Appendix A.4.1.1.
3.7. IPv6 Site-Local Addresses
All references to IPv6 site-local addresses have been removed.
4. Implementation Details
When going from IPv4 to IPv6, the basic OSPF mechanisms remain
unchanged from those documented in [OSPFV2]. These mechanisms are
briefly outlined in Section 4 of [OSPFV2]. Both IPv6 and IPv4 have a
link-state database composed of LSAs and synchronized between
adjacent routers. Initial synchronization is performed through the
Database Exchange process, which includes the exchange of Database
Description, Link State Request, and Link State Update packets.
Thereafter, database synchronization is maintained via flooding,
utilizing Link State Update and Link State Acknowledgment packets.
Both IPv6 and IPv4 use OSPF Hello packets to discover and maintain
neighbor relationships, as well as to elect Designated Routers and
Backup Designated Routers on broadcast and NBMA links. The decision
as to which neighbor relationships become adjacencies, and the basic
ideas behind inter-area routing, importing external information in
AS-external-LSAs, and the various routing calculations are also the
same.
In particular, the following IPv4 OSPF functionality described in
[OSPFV2] remains completely unchanged for IPv6:
o Both IPv4 and IPv6 use OSPF packet types described in Section 4.3
of [OSPFV2], namely: Hello, Database Description, Link State
Request, Link State Update, and Link State Acknowledgment packets.
While in some cases (e.g., Hello packets) their format has changed
somewhat, the functions of the various packet types remain the
same.
Coltun, et al. Standards Track [Page 13]
^L
RFC 5340 OSPF for IPv6 July 2008
o The system requirements for an OSPF implementation remain
unchanged, although OSPF for IPv6 requires an IPv6 protocol stack
(from the network layer on down) since it runs directly over the
IPv6 network layer.
o The discovery and maintenance of neighbor relationships, and the
selection and establishment of adjacencies, remain the same. This
includes election of the Designated Router and Backup Designated
Router on broadcast and NBMA links. These mechanisms are
described in Sections 7, 7.1, 7.2, 7.3, 7.4, and 7.5 of [OSPFV2].
o The link types (or equivalently, interface types) supported by
OSPF remain unchanged, namely: point-to-point, broadcast, NBMA,
point-to-multipoint, and virtual links.
o The interface state machine, including the list of OSPF interface
states and events, and the Designated Router and Backup Designated
Router election algorithm remain unchanged. These are described
in Sections 9.1, 9.2, 9.3, and 9.4 of [OSPFV2].
o The neighbor state machine, including the list of OSPF neighbor
states and events, remains unchanged. The neighbor state machine
is described in Sections 10.1, 10.2, 10.3, and 10.4 of [OSPFV2].
o Aging of the link-state database, as well as flushing LSAs from
the routing domain through the premature aging process, remains
unchanged from the description in Sections 14 and 14.1 of
[OSPFV2].
However, some OSPF protocol mechanisms have changed as previously
described in Section 2 herein. These changes are explained in detail
in the following subsections, making references to the appropriate
sections of [OSPFV2].
The following subsections provide a recipe for turning an IPv4 OSPF
implementation into an IPv6 OSPF implementation.
4.1. Protocol Data Structures
The major OSPF data structures are the same for both IPv4 and IPv6:
areas, interfaces, neighbors, the link-state database, and the
routing table. The top-level data structures for IPv6 remain those
listed in Section 5 of [OSPFV2], with the following modifications:
o All LSAs with known LS type and AS flooding scope appear in the
top-level data structure, instead of belonging to a specific area
or link. AS-external-LSAs are the only LSAs defined by this
specification that have AS flooding scope. LSAs with unknown LS
Coltun, et al. Standards Track [Page 14]
^L
RFC 5340 OSPF for IPv6 July 2008
type, U-bit set to 1 (flood even when unrecognized), and AS
flooding scope also appear in the top-level data structure.
4.1.1. The Area Data Structure
The IPv6 area data structure contains all elements defined for IPv4
areas in Section 6 of [OSPFV2]. In addition, all LSAs of known type
that have area flooding scope are contained in the IPv6 area data
structure. This always includes the following LSA types: router-
LSAs, network-LSAs, inter-area-prefix-LSAs, inter-area-router-LSAs,
and intra-area-prefix-LSAs. LSAs with unknown LS type, U-bit set to
1 (flood even when unrecognized), and area scope also appear in the
area data structure. NSSA-LSAs are also included in an NSSA area's
data structure.
4.1.2. The Interface Data Structure
In OSPF for IPv6, an interface connects a router to a link. The IPv6
interface structure modifies the IPv4 interface structure (as defined
in Section 9 of [OSPFV2]) as follows:
Interface ID
Every interface is assigned an Interface ID, which uniquely
identifies the interface with the router. For example, some
implementations MAY be able to use the MIB-II IfIndex ([INTFMIB])
as the Interface ID. The Interface ID appears in Hello packets
sent out the interface, the link-local-LSA originated by the
router for the attached link, and the router-LSA originated by the
router-LSA for the associated area. It will also serve as the
Link State ID for the network-LSA that the router will originate
for the link if the router is elected Designated Router.
The Interface ID for a virtual link is independent of the
Interface ID of the outgoing interface it traverses in the transit
area.
Instance ID
Every interface is assigned an Instance ID. This should default
to 0. It is only necessary to assign a value other than 0 on
those links that will contain multiple separate communities of
OSPF routers. For example, suppose that there are two communities
of routers on a given ethernet segment that you wish to keep
separate.
The first community is assigned an Instance ID of 0 and all the
routers in the first community will be assigned 0 as the Instance
ID for interfaces connected to the ethernet segment. An Instance
ID of 1 is assigned to the other routers' interfaces connected to
the ethernet segment. The OSPF transmit and receive processing
(see Section 4.2) will then keep the two communities separate.
Coltun, et al. Standards Track [Page 15]
^L
RFC 5340 OSPF for IPv6 July 2008
List of LSAs with link-local scope
All LSAs with link-local scope and that were originated/flooded on
the link belong to the interface structure that connects to the
link. This includes the collection of the link's link-LSAs.
IP interface address
For IPv6, the IPv6 address appearing in the source of OSPF packets
sent on the interface is almost always a link-local address. The
one exception is for virtual links that MUST use one of the
router's own global IPv6 addresses as IP interface address.
List of link prefixes
A list of IPv6 prefixes can be configured for the attached link.
These will be advertised by the router in link-LSAs, so that they
can be advertised by the link's Designated Router in intra-area-
prefix-LSAs.
In OSPF for IPv6, each router interface has a single metric
representing the cost of sending packets on the interface. In
addition, OSPF for IPv6 relies on the IP Authentication Header (see
[IPAUTH]) and the IP Encapsulating Security Payload (see [IPESP]) as
described in [OSPFV3-AUTH] to ensure integrity and authentication/
confidentiality of routing exchanges. For this reason, AuType and
Authentication key are not associated with IPv6 OSPF interfaces.
Interface states, events, and the interface state machine remain
unchanged from IPv4 as documented in Sections 9.1, 9.2, and 9.3 of
[OSPFV2] respectively. The Designated Router and Backup Designated
Router election algorithm also remains unchanged from the IPv4
election in Section 9.4 of [OSPFV2].
4.1.3. The Neighbor Data Structure
The neighbor structure performs the same function in both IPv6 and
IPv4. Namely, it collects all information required to form an
adjacency between two routers when such an adjacency becomes
necessary. Each neighbor structure is bound to a single OSPF
interface. The differences between the IPv6 neighbor structure and
the neighbor structure defined for IPv4 in Section 10 of [OSPFV2]
are:
Neighbor's Interface ID
The Interface ID that the neighbor advertises in its Hello packets
must be recorded in the neighbor structure. The router will
include the neighbor's Interface ID in the router's router-LSA
when either a) advertising a point-to-point or point-to-multipoint
link to the neighbor or b) advertising a link to a network where
the neighbor has become the Designated Router.
Coltun, et al. Standards Track [Page 16]
^L
RFC 5340 OSPF for IPv6 July 2008
Neighbor IP address
The neighbor's IPv6 address contained as the source address in
OSPF for IPv6 packets. This will be an IPv6 link-local address
for all link types except virtual links.
Neighbor's Designated Router
The neighbor's choice of Designated Router is now encoded as a
Router ID instead of as an IP address.
Neighbor's Backup Designated Router
The neighbor's choice of Backup Designated Router is now encoded
as a Router ID instead of as an IP address.
Neighbor states, events, and the neighbor state machine remain
unchanged from IPv4 as documented in Sections 10.1, 10.2, and 10.3 of
[OSPFV2] respectively. The decision as to which adjacencies to form
also remains unchanged from the IPv4 logic documented in Section 10.4
of [OSPFV2].
4.2. Protocol Packet Processing
OSPF for IPv6 runs directly over IPv6's network layer. As such, it
is encapsulated in one or more IPv6 headers with the Next Header
field of the immediately encapsulating IPv6 header set to the value
89.
As for OSPF for IPv4, OSPF for IPv6 OSPF routing protocol packets are
sent along adjacencies only (with the exception of Hello packets,
which are used to discover the adjacencies). OSPF packet types and
functions are the same in both IPv4 and IPv6, encoded by the Type
field of the standard OSPF packet header.
4.2.1. Sending Protocol Packets
When an IPv6 router sends an OSPF routing protocol packet, it fills
in the fields of the standard OSPF for IPv6 packet header (see
Appendix A.3.1) as follows:
Version #
Set to 3, the version number of the protocol as documented in this
specification.
Type
The type of OSPF packet, such as Link State Update or Hello
packet.
Coltun, et al. Standards Track [Page 17]
^L
RFC 5340 OSPF for IPv6 July 2008
Packet length
The length of the entire OSPF packet in bytes, including the
standard OSPF packet header.
Router ID
The identity of the router itself (who is originating the packet).
Area ID
The OSPF area for the interface on which the packet is being sent.
Instance ID
The OSPF Instance ID associated with the interface out of which
the packet is being sent.
Checksum
The standard IPv6 Upper-Layer checksum (as described in Section
8.1 of [IPV6]) covering the entire OSPF packet and prepended IPv6
pseudo-header (see Appendix A.3.1).
Selection of OSPF routing protocol packets' IPv6 source and
destination addresses is performed identically to the IPv4 logic in
Section 8.1 of [OSPFV2]. The IPv6 destination address is chosen from
among the addresses AllSPFRouters, AllDRouters, and the Neighbor IP
address associated with the other end of the adjacency (which in
IPv6, for all links except virtual links, is an IPv6 link-local
address).
The sending of Link State Request packets and Link State
Acknowledgment packets remains unchanged from the IPv4 procedures
documented in Sections 10.9 and 13.5 of [OSPFV2] respectively.
Sending Hello packets is documented in Section 4.2.1.1, and the
sending of Database Description packets in Section 4.2.1.2. The
sending of Link State Update packets is documented in Section 4.5.2.
4.2.1.1. Sending Hello Packets
IPv6 changes the way OSPF Hello packets are sent in the following
ways (compare to Section 9.5 of [OSPFV2]):
o Before the Hello packet is sent on an interface, the interface's
Interface ID MUST be copied into the Hello packet.
o The Hello packet no longer contains an IP network mask since OSPF
for IPv6 runs per-link instead of per-subnet.
o The choice of Designated Router and Backup Designated Router is
now indicated within Hellos by their Router IDs instead of by
their IP interface addresses. Advertising the Designated Router
Coltun, et al. Standards Track [Page 18]
^L
RFC 5340 OSPF for IPv6 July 2008
(or Backup Designated Router) as 0.0.0.0 indicates that the
Designated Router (or Backup Designated Router) has not yet been
chosen.
o The Options field within Hello packets has moved around, getting
larger in the process. More Options bits are now possible. Those
that MUST be set correctly in Hello packets are as follows. The
E-bit is set if and only if the interface attaches to a regular
area, i.e., not a stub or NSSA area. Similarly, the N-bit is set
if and only if the interface attaches to an NSSA area (see
[NSSA]). Finally, the DC-bit is set if and only if the router
wishes to suppress the sending of future Hellos over the interface
(see [DEMAND]). Unrecognized bits in the Hello packet's Options
field should be cleared.
Sending Hello packets on NBMA networks proceeds for IPv6 in exactly
the same way as for IPv4, as documented in Section 9.5.1 of [OSPFV2].
4.2.1.2. Sending Database Description Packets
The sending of Database Description packets differs from Section 10.8
of [OSPFV2] in the following ways:
o The Options field within Database Description packets has moved
around, getting larger in the process. More Options bits are now
possible. Those that MUST be set correctly in Database
Description packets are as follows. The DC-bit is set if and only
if the router wishes to suppress the sending of Hellos over the
interface (see [DEMAND]). Unrecognized bits in the Database
Description packet's Options field should be cleared.
4.2.2. Receiving Protocol Packets
Whenever a router receives an OSPF protocol packet, it is marked with
the interface on which it was received. For routers that have
virtual links configured, it may not be immediately obvious with
which interface to associate the packet. For example, consider the
Router RT11 depicted in Figure 6 of [OSPFV2]. If RT11 receives an
OSPF protocol packet on its interface to Network N8, it may want to
associate the packet with the interface to Area 2, or with the
virtual link to Router RT10 (which is part of the backbone). In the
following, we assume that the packet is initially associated with the
non-virtual link.
In order for the packet to be passed to OSPF for processing, the
following tests must be performed on the encapsulating IPv6 headers:
Coltun, et al. Standards Track [Page 19]
^L
RFC 5340 OSPF for IPv6 July 2008
o The packet's IP destination address MUST be one of the IPv6
unicast addresses associated with the receiving interface (this
includes link-local addresses), one of the IPv6 multicast
addresses AllSPFRouters or AllDRouters, or an IPv6 global address
(for virtual links).
o The Next Header field of the immediately encapsulating IPv6 header
MUST specify the OSPF protocol (89).
o Any encapsulating IP Authentication Headers (see [IPAUTH]) and the
IP Encapsulating Security Payloads (see [IPESP]) MUST be processed
and/or verified to ensure integrity and authentication/
confidentiality of OSPF routing exchanges. This is described in
[OSPFV3-AUTH].
After processing the encapsulating IPv6 headers, the OSPF packet
header is processed. The fields specified in the header must match
those configured for the receiving OSPFv3 interface. If they do not,
the packet SHOULD be discarded:
o The version number field MUST specify protocol version 3.
o The IPv6 Upper-Layer checksum (as described in Section 8.1 of
[IPV6]), covering the entire OSPF packet and prepended IPv6
pseudo-header, must be verified (see Appendix A.3.1).
o The Area ID and Instance ID found in the OSPF header must be
verified. If both of the following cases fail, the packet should
be discarded. The Area ID and Instance ID specified in the header
must either:
1. Match one of the Area ID(s) and Interface Instance ID(s) for
the receiving link. Unlike IPv4, the IPv6 source address is
not restricted to lie within the same IPv6 subnet as the
receiving link. IPv6 OSPF runs per-link instead of per-IP-
subnet.
2. Match the backbone area and other criteria for a configured
virtual link. The receiving router must be an ABR (Area
Border Router) and the Router ID specified in the packet (the
source router) must be the other end of a configured virtual
link. Additionally, the receiving link must have an OSPFv3
interface that attaches to the virtual link's configured
transit area and the Instance ID must match the virtual link's
Instance ID. If all of these checks succeed, the packet is
accepted and is associated with the virtual link (and the
backbone area).
Coltun, et al. Standards Track [Page 20]
^L
RFC 5340 OSPF for IPv6 July 2008
o Locally originated packets SHOULD NOT be processed by OSPF except
for support of multiple interfaces attached to the same link as
described in Section 4.9. Locally originated packets have a
source address equal to one of the router's local addresses.
o Packets whose IPv6 destination is AllDRouters should only be
accepted if the state of the receiving OSPFv3 interface is DR or
Backup (see Section 9.1 [OSPFV2]).
After header processing, the packet is further processed according to
its OSPF packet type. OSPF packet types and functions are the same
for both IPv4 and IPv6.
If the packet type is Hello, it should then be further processed by
the Hello packet processing as described in Section 4.2.2.1. All
other packet types are sent/received only on adjacencies. This means
that the packet must have been sent by one of the router's active
neighbors. The neighbor is identified by the Router ID appearing in
the received packet's OSPF header. Packets not matching any active
neighbor are discarded.
The receive processing of Database Description packets, Link State
Request packets, and Link State Acknowledgment packets is almost
identical to the IPv4 procedures documented in Sections 10.6, 10.7,
and 13.7 of [OSPFV2] respectively with the exceptions noted below.
o LSAs with unknown LS types in Database Description packets that
have an acceptable flooding scope are processed the same as LSAs
with known LS types. In OSPFv2 [OSPFV2], these would result in
the adjacency being brought down with a SequenceMismatch event.
The receiving of Hello packets is documented in Section 4.2.2.1 and
the receiving of Link State Update packets is documented in
Section 4.5.1.
4.2.2.1. Receiving Hello Packets
The receive processing of Hello packets differs from Section 10.5 of
[OSPFV2] in the following ways:
o On all link types (e.g., broadcast, NBMA, point-to-point, etc.),
neighbors are identified solely by their OSPF Router ID. For all
link types except virtual links, the Neighbor IP address is set to
the IPv6 source address in the IPv6 header of the received OSPF
Hello packet.
o There is no longer a Network Mask field in the Hello packet.
Coltun, et al. Standards Track [Page 21]
^L
RFC 5340 OSPF for IPv6 July 2008
o The neighbor's choice of Designated Router and Backup Designated
Router is now encoded as an OSPF Router ID instead of an IP
interface address.
4.3. The Routing table Structure
The routing table used by OSPF for IPv4 is defined in Section 11 of
[OSPFV2]. For IPv6, there are analogous routing table entries: there
are routing table entries for IPv6 address prefixes and also for AS
boundary routers. The latter routing table entries are only used to
hold intermediate results during the routing table build process (see
Section 4.8).
Also, to hold the intermediate results during the shortest-path
calculation for each area, there is a separate routing table for each
area holding the following entries:
o An entry for each router in the area. Routers are identified by
their OSPF Router ID. These routing table entries hold the set of
shortest paths through a given area to a given router, which in
turn allows calculation of paths to the IPv6 prefixes advertised
by that router in intra-area-prefix-LSAs. If the router is also
an area border router, these entries are also used to calculate
paths for inter-area address prefixes. If in addition the router
is the other endpoint of a virtual link, the routing table entry
describes the cost and viability of the virtual link.
o An entry for each transit link in the area. Transit links have
associated network-LSAs. Both the transit link and the network-
LSA are identified by a combination of the Designated Router's
Interface ID on the link and the Designated Router's OSPF Router
ID. These routing table entries allow later calculation of paths
to IP prefixes advertised for the transit link in intra-area-
prefix-LSAs.
The fields in the IPv4 OSPF routing table (see Section 11 of
[OSPFV2]) remain valid for IPv6: optional capabilities (routers
only), path type, cost, type 2 cost, link state origin, and for each
of the equal cost paths to the destination, the next-hop and
advertising routers.
For IPv6, the link-state origin field in the routing table entry is
the router-LSA or network-LSA that has directly or indirectly
produced the routing table entry. For example, if the routing table
entry describes a route to an IPv6 prefix, the link state origin is
the router-LSA or network-LSA that is listed in the body of the
intra-area-prefix-LSA that has produced the route (see
Appendix A.4.10).
Coltun, et al. Standards Track [Page 22]
^L
RFC 5340 OSPF for IPv6 July 2008
4.3.1. Routing Table Lookup
Routing table lookup (i.e., determining the best matching routing
table entry during IP forwarding) is the same for IPv6 as for IPv4.
4.4. Link State Advertisements
For IPv6, the OSPF LSA header has changed slightly, with the LS type
field expanding and the Options field being moved into the body of
appropriate LSAs. Also, the formats of some LSAs have changed
somewhat (namely, router-LSAs, network-LSAs, AS-external-LSAs, and
NSSA-LSAs), while the names of other LSAs have been changed (type 3
and 4 summary-LSAs are now inter-area-prefix-LSAs and inter-area-
router-LSAs respectively) and additional LSAs have been added (link-
LSAs and intra-area-prefix-LSAs). Type of Service (TOS) has been
removed from the OSPFv2 specification [OSPFV2] and is not encoded
within OSPF for IPv6's LSAs.
These changes will be described in detail in the following
subsections.
4.4.1. The LSA Header
In both IPv4 and IPv6, all OSPF LSAs begin with a standard 20-byte
LSA header. However, the contents of this 20-byte header have
changed in IPv6. The LS age, Advertising Router, LS Sequence Number,
LS checksum, and length fields within the LSA header remain
unchanged, as documented in Sections 12.1.1, 12.1.5, 12.1.6, 12.1.7,
and A.4.1 of [OSPFV2], respectively. However, the following fields
have changed for IPv6:
Options
The Options field has been removed from the standard 20-byte LSA
header and moved into the body of router-LSAs, network-LSAs,
inter-area-router-LSAs, and link-LSAs. The size of the Options
field has increased from 8 to 24 bits, and some of the bit
definitions have changed (see Appendix A.2). Additionally, a
separate PrefixOptions field, 8 bits in length, is attached to
each prefix advertised within the body of an LSA.
LS type
The size of the LS type field has increased from 8 to 16 bits,
with high-order bit encoding the handling of unknown types and the
next two bits encoding flooding scope. See Appendix A.4.2.1 for
the current coding of the LS type field.
Coltun, et al. Standards Track [Page 23]
^L
RFC 5340 OSPF for IPv6 July 2008
Link State ID
The Link State ID remains at 32 bits in length. However, except
for network-LSAs and link-LSAs, the Link State ID has shed any
addressing semantics. For example, an IPv6 router originating
multiple AS-external-LSAs could start by assigning the first a
Link State ID of 0.0.0.1, the second a Link State ID of 0.0.0.2,
and so on. Instead of the IPv4 behavior of encoding the network
number within the AS-external-LSA's Link State ID, the IPv6 Link
State ID simply serves as a way to differentiate multiple LSAs
originated by the same router.
For network-LSAs, the Link State ID is set to the Designated
Router's Interface ID on the link. When a router originates a
link-LSA for a given link, its Link State ID is set equal to the
router's Interface ID on the link.
4.4.2. The Link-State Database
In IPv6, as in IPv4, individual LSAs are identified by a combination
of their LS type, Link State ID, and Advertising Router fields.
Given two instances of an LSA, the most recent instance is determined
by examining the LSAs' LS sequence number, using LS checksum and LS
age as tiebreakers (see Section 13.1 of [OSPFV2]).
In IPv6, the link-state database is split across three separate data
structures. LSAs with AS flooding scope are contained within the
top-level OSPF data structure (see Section 4.1) as long as either
their LS type is known or their U-bit is 1 (flood even when
unrecognized); this includes the AS-external-LSAs. LSAs with area
flooding scope are contained within the appropriate area structure
(see Section 4.1.1) as long as either their LS type is known or their
U-bit is 1 (flood even when unrecognized); this includes router-LSAs,
network-LSAs, inter-area-prefix-LSAs, inter-area-router-LSAs, NSSA-
LSAs, and intra-area-prefix-LSAs. LSAs with an unknown LS type, the
U-bit set to 0, and/or link-local flooding scope are contained within
the appropriate interface structure (see Section 4.1.2); this
includes link-LSAs.
To look up or install an LSA in the database, you first examine the
LS type and the LSA's context (i.e., the area or link to which the
LSA belongs). This information allows you to find the correct
database of LSAs where you then search based on the LSA's type, Link
State ID, and Advertising Router.
Coltun, et al. Standards Track [Page 24]
^L
RFC 5340 OSPF for IPv6 July 2008
4.4.3. Originating LSAs
The process of reoriginating an LSA in IPv6 is the same as in IPv4:
the LSA's LS sequence number is incremented, its LS age is set to 0,
its LS checksum is calculated, and the LSA is added to the link state
database and flooded on the appropriate interfaces.
The list of events causing LSAs to be reoriginated for IPv4 is given
in Section 12.4 of [OSPFV2]. The following events and/or actions are
added for IPv6:
o The state or interface ID of one of the router's interfaces
changes. The router may need to (re)originate or flush its link-
LSA and one or more router-LSAs and/or intra-area-prefix-LSAs. If
the router is the Designated Router, the router may also need to
(re)originate and/or flush the network-LSA corresponding to the
interface.
o The identity of a link's Designated Router changes. The router
may need to (re)originate or flush the link's network-LSA and one
or more router-LSAs and/or intra-area-prefix-LSAs.
o A neighbor transitions to/from "Full" state. The router may need
to (re)originate or flush the link's network-LSA and one or more
router-LSAs and/or intra-area-prefix-LSAs.
o The Interface ID of a neighbor changes. This may cause a new
instance of a router-LSA to be originated for the associated area.
o A new prefix is added to an attached link, or a prefix is deleted
(both through configuration). This causes the router to
reoriginate its link-LSA for the link or, if it is the only router
attached to the link, causes the router to reoriginate an intra-
area-prefix-LSA.
o A new link-LSA is received, causing the link's collection of
prefixes to change. If the router is the Designated Router for
the link, it originates a new intra-area-prefix-LSA.
o A new link-LSA is received, causing the logical OR of LSA options
advertised by adjacent routers on the link to change. If the
router is the Designated Router for the link, it originates a new
network-LSA.
Detailed construction of the seven required IPv6 LSA types is
supplied by the following subsections. In order to display example
LSAs, the network map in Figure 15 of [OSPFV2] has been reworked to
show IPv6 addressing, resulting in Figure 1. The OSPF cost of each
Coltun, et al. Standards Track [Page 25]
^L
RFC 5340 OSPF for IPv6 July 2008
interface is displayed in Figure 1. The assignment of IPv6 prefixes
to network links is shown in Table 1. A single area address range
has been configured for Area 1, so that outside of Area 1 all of its
prefixes are covered by a single route to 2001:0db8:c001::/48. The
OSPF interface IDs and the link-local addresses for the router
interfaces in Figure 1 are given in Table 2.
..........................................
. Area 1.
. + .
. | .
. | 3+---+1 .
. N1 |--|RT1|-----+ .
. | +---+ \ .
. | \ ______ .
. + \/ \ 1+---+
. * N3 *------|RT4|------
. + /\_______/ +---+
. | / | .
. | 3+---+1 / | .
. N2 |--|RT2|-----+ 1| .
. | +---+ +---+ .
. | |RT3|----------------
. + +---+ .
. |2 .
. | .
. +------------+ .
. N4 .
..........................................
Figure 1: Area 1 with IP Addresses Shown
Network IPv6 prefix
-----------------------------------
N1 2001:0db8:c001:0200::/56
N2 2001:0db8:c001:0300::/56
N3 2001:0db8:c001:0100::/56
N4 2001:0db8:c001:0400::/56
Table 1: IPv6 Link Prefixes for Sample Network
Coltun, et al. Standards Track [Page 26]
^L
RFC 5340 OSPF for IPv6 July 2008
Router Interface Interface ID link-local address
-------------------------------------------------------
RT1 to N1 1 fe80:0001::RT1
to N3 2 fe80:0002::RT1
RT2 to N2 1 fe80:0001::RT2
to N3 2 fe80:0002::RT2
RT3 to N3 1 fe80:0001::RT3
to N4 2 fe80:0002::RT3
RT4 to N3 1 fe80:0001::RT4
Table 2: OSPF Interface IDs and Link-Local Addresses
Figure 1
4.4.3.1. LSA Options
The Options field in LSAs should be coded as follows. The V6-bit
should be set unless the router will not participate in transit IPv6
routing. The E-bit should be clear if and only if the attached area
is an OSPF stub or OSPF NSSA area. The E-bit should always be set in
AS scoped LSAs. The N-bit should be set if and only if the attached
area is an OSPF NSSA area. The R-bit should be set unless the router
will not participate in any transit routing. The DC-bit should be
set if and only if the router can correctly process the DoNotAge bit
when it appears in the LS age field of LSAs (see [DEMAND]). All
unrecognized bits in the Options field should be cleared.
The V6-bit and R-bit are only examined in Router-LSAs during the SPF
computation. In other LSA types containing options, they are set for
informational purposes only.
4.4.3.2. Router-LSAs
The LS type of a router-LSA is set to the value 0x2001. Router-LSAs
have area flooding scope. A router MAY originate one or more router-
LSAs for a given area. Each router-LSA contains an integral number
of interface descriptions. Taken together, the collection of router-
LSAs originated by the router for an area describes the collected
states of all the router's interfaces attached to the area. When
multiple router-LSAs are used, they are distinguished by their Link
State ID fields.
To the left of the Options field, the router capability bits V, E,
and B should be set according to Section 12.4.1 of [OSPFV2].
Each of the router's interfaces to the area is then described by
appending "link descriptions" to the router-LSA. Each link
description is 16 bytes long, consisting of five fields: (link) Type,
Coltun, et al. Standards Track [Page 27]
^L
RFC 5340 OSPF for IPv6 July 2008
Metric, Interface ID, Neighbor Interface ID, and Neighbor Router ID
(see Appendix A.4.3). Interfaces in the state "Down" or "Loopback"
are not described (although looped back interfaces can contribute
prefixes to intra-area-prefix-LSAs), nor are interfaces without any
full adjacencies described (except in the case of multiple Standby
Interfaces as described in Section 4.9). All other interfaces to the
area add zero, one, or more link descriptions. The number and
content of these depend on the interface type. Within each link
description, the Metric field is always set to the interface's output
cost, and the Interface ID field is set to the interface's OSPF
Interface ID.
Point-to-point interfaces
If the neighboring router is fully adjacent, add a Type 1 link
description (point-to-point). The Neighbor Interface ID field is
set to the Interface ID advertised by the neighbor in its Hello
packets, and the Neighbor Router ID field is set to the neighbor's
Router ID.
Broadcast and NBMA interfaces
If the router is fully adjacent to the link's Designated Router or
if the router itself is the Designated Router and is fully
adjacent to at least one other router, add a single Type 2 link
description (transit network). The Neighbor Interface ID field is
set to the Interface ID advertised by the Designated Router in its
Hello packets, and the Neighbor Router ID field is set to the
Designated Router's Router ID.
Virtual links
If the neighboring router is fully adjacent, add a Type 4 link
description (virtual). The Neighbor Interface ID field is set to
the Interface ID advertised by the neighbor in its Hello packets,
and the Neighbor Router ID field is set to the neighbor's Router
ID. Note that the output cost of a virtual link is calculated
during the routing table calculation (see Section 4.7).
Point-to-Multipoint interfaces
For each fully adjacent neighbor associated with the interface,
add a separate Type 1 link description (point-to-point) with the
Neighbor Interface ID field set to the Interface ID advertised by
the neighbor in its Hello packets and the Neighbor Router ID field
set to the neighbor's Router ID.
As an example, consider the router-LSA that router RT3 would
originate for Area 1 in Figure 1. Only a single interface must be
described, namely, that which connects to the transit network N3. It
assumes that RT4 has been elected the Designated Router of Network
N3.
Coltun, et al. Standards Track [Page 28]
^L
RFC 5340 OSPF for IPv6 July 2008
; RT3's router-LSA for Area 1
LS age = 0 ;newly (re)originated
LS type = 0x2001 ;router-LSA
Link State ID = 0 ;first fragment
Advertising Router = 192.0.2.3 ;RT3's Router ID
bit E = 0 ;not an AS boundary router
bit B = 1 ;area border router
Options = (V6-bit|E-bit|R-bit)
Type = 2 ;connects to N3
Metric = 1 ;cost to N3
Interface ID = 1 ;RT3's Interface ID on N3
Neighbor Interface ID = 1 ;RT4's Interface ID on N3
Neighbor Router ID = 192.0.2.4 ; RT4's Router ID
RT3's router-LSA for Area 1
For example, if another router was added to Network N4, RT3 would
have to advertise a second link description for its connection to
(the now transit) network N4. This could be accomplished by
reoriginating the above router-LSA, this time with two link
descriptions. Or, a separate router-LSA could be originated with a
separate Link State ID (e.g., using a Link State ID of 1) to describe
the connection to N4.
Host routes for stub networks no longer appear in the router-LSA.
Rather, they are included in intra-area-prefix-LSAs.
4.4.3.3. Network-LSAs
The LS type of a network-LSA is set to the value 0x2002. Network-
LSAs have area flooding scope. A network-LSA is originated for every
broadcast or NBMA link with an elected Designated Router that is
fully adjacent with at least one other router on the link. The
network-LSA is originated by the link's Designated Router and lists
all routers on the link with which it is fully adjacent.
The procedure for originating network-LSAs in IPv6 is the same as the
IPv4 procedure documented in Section 12.4.2 of [OSPFV2], with the
following exceptions:
o An IPv6 network-LSA's Link State ID is set to the Interface ID of
the Designated Router on the link.
o IPv6 network-LSAs do not contain a Network Mask. All addressing
information formerly contained in the IPv4 network-LSA has now
been consigned to intra-Area-Prefix-LSAs originated by the link's
Designated Router.
Coltun, et al. Standards Track [Page 29]
^L
RFC 5340 OSPF for IPv6 July 2008
o The Options field in the network-LSA is set to the logical OR of
the Options fields contained within the link's associated link-
LSAs corresponding to fully adjacent neighbors. In this way, the
network link exhibits a capability when at least one fully
adjacent neighbor on the link requests that the capability be
advertised.
As an example, assuming that Router RT4 has been elected the
Designated Router of Network N3 in Figure 1, the following network-
LSA is originated:
; Network-LSA for Network N3
LS age = 0 ;newly (re)originated
LS type = 0x2002 ;network-LSA
Link State ID = 1 ;RT4's Interface ID on N3
Advertising Router = 192.0.2.4 ;RT4's Router ID
Options = (V6-bit|E-bit|R-bit)
Attached Router = 192.0.2.4 ;Router ID
Attached Router = 192.0.2.1 ;Router ID
Attached Router = 192.0.2.2 ;Router ID
Attached Router = 192.0.2.3 ;Router ID
Network-LSA for Network N3
4.4.3.4. Inter-Area-Prefix-LSAs
The LS type of an inter-area-prefix-LSA is set to the value 0x2003.
Inter-area-prefix-LSAs have area flooding scope. In IPv4, inter-
area-prefix-LSAs were called type 3 summary-LSAs. Each inter-area-
prefix-LSA describes a prefix external to the area, yet internal to
the Autonomous System.
The procedure for originating inter-area-prefix-LSAs in IPv6 is the
same as the IPv4 procedure documented in Sections 12.4.3 and 12.4.3.1
of [OSPFV2], with the following exceptions:
o The Link State ID of an inter-area-prefix-LSA has lost all of its
addressing semantics and simply serves to distinguish multiple
inter-area-prefix-LSAs that are originated by the same router.
o The prefix is described by the PrefixLength, PrefixOptions, and
Address Prefix fields embedded within the LSA body. Network Mask
is no longer specified.
o The NU-bit in the PrefixOptions field should be clear.
Coltun, et al. Standards Track [Page 30]
^L
RFC 5340 OSPF for IPv6 July 2008
o Link-local addresses MUST never be advertised in inter-area-
prefix-LSAs.
As an example, the following shows the inter-area-prefix-LSA that
Router RT4 originates into the OSPF backbone area, condensing all of
Area 1's prefixes into the single prefix 2001:0db8:c001::/48. The
cost is set to 4, which is the maximum cost of all of the individual
component prefixes. The prefix is padded out to an even number of
32-bit words, so that it consumes 64 bits of space instead of 48
bits.
; Inter-area-prefix-LSA for Area 1 addresses
; originated by Router RT4 into the backbone
LS age = 0 ;newly (re)originated
LS type = 0x2003 ;inter-area-prefix-LSA
Advertising Router = 192.0.2.4 ;RT4's ID
Metric = 4 ;maximum to components
PrefixLength = 48
PrefixOptions = 0
Address Prefix = 2001:0db8:c001 ;padded to 64-bits
Inter-area-prefix-LSA for Area 1 addresses originated
by Router
RT4 into the backbone
4.4.3.5. Inter-Area-Router-LSAs
The LS type of an inter-area-router-LSA is set to the value 0x2004.
Inter-area-router-LSAs have area flooding scope. In IPv4, inter-
area-router-LSAs were called type 4 summary-LSAs. Each inter-area-
router-LSA describes a path to a destination OSPF router (i.e., an AS
Boundary Router (ASBR)) that is external to the area yet internal to
the Autonomous System.
The procedure for originating inter-area-router-LSAs in IPv6 is the
same as the IPv4 procedure documented in Section 12.4.3 of [OSPFV2],
with the following exceptions:
o The Link State ID of an inter-area-router-LSA is no longer the
destination router's OSPF Router ID and now simply serves to
distinguish multiple inter-area-router-LSAs that are originated by
the same router. The destination router's Router ID is now found
in the body of the LSA.
Coltun, et al. Standards Track [Page 31]
^L
RFC 5340 OSPF for IPv6 July 2008
o The Options field in an inter-area-router-LSA should be set equal
to the Options field contained in the destination router's own
router-LSA. The Options field thus describes the capabilities
supported by the destination router.
As an example, consider the OSPF Autonomous System depicted in Figure
6 of [OSPFV2]. Router RT4 would originate into Area 1 the following
inter-area-router-LSA for destination router RT7.
; inter-area-router-LSA for AS boundary router RT7
; originated by Router RT4 into Area 1
LS age = 0 ;newly (re)originated
LS type = 0x2004 ;inter-area-router-LSA
Advertising Router = 192.0.2.4 ;RT4's ID
Options = (V6-bit|E-bit|R-bit) ;RT7's capabilities
Metric = 14 ;cost to RT7
Destination Router ID = Router RT7's ID
Inter-area-router-LSA for AS boundary router RT7 originated by Router
RT4 into Area 1
4.4.3.6. AS-External-LSAs
The LS type of an AS-external-LSA is set to the value 0x4005. AS-
external-LSAs have AS flooding scope. Each AS-external-LSA describes
a path to a prefix external to the Autonomous System.
The procedure for originating AS-external-LSAs in IPv6 is the same as
the IPv4 procedure documented in Section 12.4.4 of [OSPFV2], with the
following exceptions:
o The Link State ID of an AS-external-LSA has lost all of its
addressing semantics and simply serves to distinguish multiple AS-
external-LSAs that are originated by the same router.
o The prefix is described by the PrefixLength, PrefixOptions, and
Address Prefix fields embedded within the LSA body. Network Mask
is no longer specified.
o The NU-bit in the PrefixOptions field should be clear.
o Link-local addresses can never be advertised in AS-external-LSAs.
o The forwarding address is present in the AS-external-LSA if and
only if the AS-external-LSA's bit F is set.
Coltun, et al. Standards Track [Page 32]
^L
RFC 5340 OSPF for IPv6 July 2008
o The external route tag is present in the AS-external-LSA if and
only if the AS-external-LSA's bit T is set.
o The capability for an AS-external-LSA to reference another LSA has
been supported through the inclusion of the Referenced LS Type
field and the optional Referenced Link State ID field (the latter
present if and only if the Referenced LS Type is non-zero). This
capability is for future use; the Referenced LS Type should be set
to 0, and received non-zero values for this field should be
ignored until its use is defined.
As an example, consider the OSPF Autonomous System depicted in Figure
6 of [OSPFV2]. Assume that RT7 has learned its route to N12 via BGP
and that it wishes to advertise a Type 2 metric into the AS. Also
assume that the IPv6 prefix for N12 is the value 2001:0db8:0a00::/40.
RT7 would then originate the following AS-external-LSA for the
external network N12. Note that within the AS-external-LSA, N12's
prefix occupies 64 bits of space in order to maintain 32-bit
alignment.
; AS-external-LSA for Network N12,
; originated by Router RT7
LS age = 0 ;newly (re)originated
LS type = 0x4005 ;AS-external-LSA
Link State ID = 123 ;LSA type/scope unique identifier
Advertising Router = Router RT7's ID
bit E = 1 ;Type 2 metric
bit F = 0 ;no forwarding address
bit T = 1 ;external route tag included
Metric = 2
PrefixLength = 40
PrefixOptions = 0
Referenced LS Type = 0 ;no Referenced Link State ID
Address Prefix = 2001:0db8:0a00 ;padded to 64-bits
External Route Tag = as per BGP/OSPF interaction
AS-external-LSA for Network N12, originated by Router RT7
4.4.3.7. NSSA-LSAs
The LS type of an NSSA-LSA is set to the value 0x2007. NSSA-LSAs
have area flooding scope. Each NSSA-LSA describes a path to a prefix
external to the Autonomous System whose flooding scope is restricted
to a single NSSA area.
The procedure for originating NSSA-LSAs in IPv6 is the same as the
IPv4 procedure documented in [NSSA], with the following exceptions:
Coltun, et al. Standards Track [Page 33]
^L
RFC 5340 OSPF for IPv6 July 2008
o The Link State ID of an NSSA-LSA has lost all of its addressing
semantics and simply serves to distinguish multiple NSSA-LSAs that
are originated by the same router in the same area.
o The prefix is described by the PrefixLength, PrefixOptions, and
Address Prefix fields embedded within the LSA body. Network Mask
is no longer specified.
o The NU-bit in the PrefixOptions field should be clear.
o Link-local addresses can never be advertised in NSSA-LSAs.
o The forwarding address is present in the NSSA-LSA if and only if
the NSSA-LSA's bit F is set.
o The external route tag is present in the NSSA-LSA if and only if
the NSSA-LSA's bit T is set.
o The capability for an NSSA-LSA to reference another LSA has been
supported through the inclusion of the Referenced LS Type field
and the optional Referenced Link State ID field (the latter
present if and only if the Referenced LS Type is non-zero). This
capability is for future use; the Referenced LS Type should be set
to 0, and received non-zero values for this field should be
ignored until its use is defined.
An example of an NSSA-LSA would only differ from an AS-external-LSA
in that the LS type would be 0x2007 rather than 0x4005.
4.4.3.8. Link-LSAs
The LS type of a link-LSA is set to the value 0x0008. Link-LSAs have
link-local flooding scope. A router originates a separate link-LSA
for each attached link that supports two or more (including the
originating router itself) routers. Link-LSAs SHOULD NOT be
originated for virtual links.
Link-LSAs have three purposes:
1. They provide the router's link-local address to all other routers
attached to the link.
2. They inform other routers attached to the link of a list of IPv6
prefixes to associate with the link.
3. They allow the router to advertise a collection of Options bits
in the network-LSA originated by the Designated Router on a
broadcast or NBMA link.
Coltun, et al. Standards Track [Page 34]
^L
RFC 5340 OSPF for IPv6 July 2008
A link-LSA for a given Link L is built in the following fashion:
o The Link State ID is set to the router's Interface ID on Link L.
o The Router Priority of the router's interface to Link L is
inserted into the link-LSA.
o The link-LSA's Options field is set to reflect the router's
capabilities. On multi-access links, the Designated Router will
logically OR the link-LSA Options fields for all fully adjacent
neighbors in Link L's network-LSA.
o The router inserts its link-local address on Link L into the link-
LSA. This information will be used when the other routers on Link
L do their next-hop calculations (see Section 4.8.2).
o Each IPv6 address prefix that has been configured on Link L is
added to the link-LSA by specifying values for the PrefixLength,
PrefixOptions, and Address Prefix fields.
After building a link-LSA for a given link, the router installs the
link-LSA into the associated interface data structure and floods the
link-LSA on the link. All other routers on the link will receive the
link-LSA, but they will not flood the link-LSA on other links.
If LinkLSASuppression is configured for the interface and the
interface type is not broadcast or NBMA, origination of the link-LSA
may be suppressed. This implies that other routers on the link will
ascertain the router's next-hop address using a mechanism other than
the link-LSA (see Section 4.8.2). Refer to Appendix C.3 for a
description of the LinkLSASuppression interface configuration
parameter.
As an example, consider the link-LSA that RT3 will build for N3 in
Figure 1. Suppose that the prefix 2001:0db8:c001:0100::/56 has been
configured within RT3 for N3. This will result in the following
link-LSA that RT3 will flood only on N3. Note that not all routers
on N3 need be configured with the prefix; those not configured will
learn the prefix when receiving RT3's link-LSA.
Coltun, et al. Standards Track [Page 35]
^L
RFC 5340 OSPF for IPv6 July 2008
; RT3's link-LSA for N3
LS age = 0 ;newly (re)originated
LS type = 0x0008 ;link-LSA
Link State ID = 1 ;RT3's Interface ID on N3
Advertising Router = 192.0.2.3 ;RT3's Router ID
Rtr Priority = 1 ;RT3's N3 Router Priority
Options = (V6-bit|E-bit|R-bit)
Link-local Interface Address = fe80:0001::RT3
# prefixes = 1
PrefixLength = 56
PrefixOptions = 0
Address Prefix = 2001:0db8:c001:0100 ;pad to 64-bits
RT3's link-LSA for N3
4.4.3.9. Intra-Area-Prefix-LSAs
The LS type of an intra-area-prefix-LSA is set to the value 0x2009.
Intra-area-prefix-LSAs have area flooding scope. An intra-area-
prefix-LSA has one of two functions. It either associates a list of
IPv6 address prefixes with a transit network link by referencing a
network-LSA, or associates a list of IPv6 address prefixes with a
router by referencing a router-LSA. A stub link's prefixes are
associated with its attached router.
A router MAY originate multiple intra-area-prefix-LSAs for a given
area. Each intra-area-prefix-LSA has a unique Link State ID and
contains an integral number of prefix descriptions.
A link's Designated Router originates one or more intra-area-prefix-
LSAs to advertise the link's prefixes throughout the area. For a
link L, L's Designated Router builds an intra-area-prefix-LSA in the
following fashion:
o In order to indicate that the prefixes are to be associated with
the Link L, the fields Referenced LS Type, Referenced Link State
ID, and Referenced Advertising Router are set to the corresponding
fields in Link L's network-LSA (namely, LS type, Link State ID,
and Advertising Router respectively). This means that the
Referenced LS Type is set to 0x2002, the Referenced Link State ID
is set to the Designated Router's Interface ID on Link L, and the
Referenced Advertising Router is set to the Designated Router's
Router ID.
o Each link-LSA associated with Link L is examined (these are in the
Designated Router's interface structure for Link L). If the link-
LSA's Advertising Router is fully adjacent to the Designated
Coltun, et al. Standards Track [Page 36]
^L
RFC 5340 OSPF for IPv6 July 2008
Router and the Link State ID matches the neighbor's interface ID,
the list of prefixes in the link-LSA is copied into the intra-
area-prefix-LSA that is being built. Prefixes having the NU-bit
and/or LA-bit set in their Options field SHOULD NOT be copied, nor
should link-local addresses be copied. Each prefix is described
by the PrefixLength, PrefixOptions, and Address Prefix fields.
Multiple prefixes having the same PrefixLength and Address Prefix
are considered to be duplicates. In this case, their
PrefixOptions fields should be logically OR'ed together, and a
single instance of the duplicate prefix should be included in the
intra-area-prefix-LSA. The Metric field for all prefixes is set
to 0.
o The "# prefixes" field is set to the number of prefixes that the
router has copied into the LSA. If necessary, the list of
prefixes can be spread across multiple intra-area-prefix-LSAs in
order to keep the LSA size small.
A router builds an intra-area-prefix-LSA to advertise prefixes for
its attached stub links, looped-back interfaces, and hosts. A Router
RTX would build its intra-area-prefix-LSA in the following fashion:
o In order to indicate that the prefixes are to be associated with
the Router RTX itself, RTX sets the Referenced LS Type to 0x2001,
the Referenced Link State ID to 0, and the Referenced Advertising
Router to RTX's own Router ID.
o Router RTX examines its list of interfaces to the area. If the
interface is in the state Down, its prefixes are not included. If
the interface has been reported in RTX's router-LSA as a Type 2
link description (link to transit network), prefixes that will be
included in the intra-area-prefix-LSA for the link are skipped.
However, any prefixes that would normally have the LA-bit set
SHOULD be advertised independent of whether or not the interface
is advertised as a transit link. If the interface type is point-
to-multipoint or the interface is in the state Loopback, the
global scope IPv6 addresses associated with the interface (if any)
are copied into the intra-area-prefix-LSA with the PrefixOptions
LA-bit set, the PrefixLength set to 128, and the metric set to 0.
Otherwise, the list of global prefixes configured in RTX for the
link are copied into the intra-area-prefix-LSA by specifying the
PrefixLength, PrefixOptions, and Address Prefix fields. The
Metric field for each of these prefixes is set to the interface's
output cost.
o RTX adds the IPv6 prefixes for any directly attached hosts
belonging to the area (see Appendix C.7) to the intra-area-prefix-
LSA.
Coltun, et al. Standards Track [Page 37]
^L
RFC 5340 OSPF for IPv6 July 2008
o If RTX has one or more virtual links configured through the area,
it includes one of its global scope IPv6 interface addresses in
the LSA (if it hasn't already), setting the LA-bit in the
PrefixOptions field, the PrefixLength to 128, and the Metric to 0.
This information will be used later in the routing calculation so
that the two ends of the virtual link can discover each other's
IPv6 addresses.
o The "# prefixes" field is set to the number of prefixes that the
router has copied into the LSA. If necessary, the list of
prefixes can be spread across multiple intra-area-prefix-LSAs in
order to keep the LSA size small.
For example, the intra-area-prefix-LSA originated by RT4 for Network
N3 (assuming that RT4 is N3's Designated Router) and the intra-area-
prefix-LSA originated into Area 1 by Router RT3 for its own prefixes
are pictured below.
Coltun, et al. Standards Track [Page 38]
^L
RFC 5340 OSPF for IPv6 July 2008
; RT4's Intra-area-prefix-LSA for network link N3
LS age = 0 ;newly (re)originated
LS type = 0x2009 ;Intra-area-prefix-LSA
Link State ID = 5 ;LSA type/scope unique identifier
Advertising Router = 192.0.2.4 ;RT4's Router ID
# prefixes = 1
Referenced LS Type = 0x2002 ;network-LSA reference
Referenced Link State ID = 1
Referenced Advertising Router = 192.0.2.4
PrefixLength = 56 ;N3's prefix
PrefixOptions = 0
Metric = 0
Address Prefix = 2001:0db8:c001:0100 ;pad
; RT3's Intra-area-prefix-LSA for its own prefixes
LS age = 0 ;newly (re)originated
LS type = 0x2009 ;Intra-area-prefix-LSA
Link State ID = 177 ;LSA type/scope unique identifier
Advertising Router = 192.0.2.3 ;RT3's Router ID
# prefixes = 1
Referenced LS Type = 0x2001 ;router-LSA reference
Referenced Link State ID = 0
Referenced Advertising Router = 192.0.2.3
PrefixLength = 56 ;N4's prefix
PrefixOptions = 0
Metric = 2 ;N4 interface cost
Address Prefix = 2001:0db8:c001:0400 ;pad
Intra-area-prefix-LSA for Network Link N3
When network conditions change, it may be necessary for a router to
move prefixes from one intra-area-prefix-LSA to another. For
example, if the router is the Designated Router for a link but the
link has no other attached routers, the link's prefixes are
advertised in an intra-area-prefix-LSA referring to the Designated
Router's router-LSA. When additional routers appear on the link, a
network-LSA is originated for the link and the link's prefixes are
moved to an intra-area-prefix-LSA referring to the network-LSA.
Note that in the intra-area-prefix-LSA, the Referenced Advertising
Router is always equal to the router that is originating the intra-
area-prefix-LSA (i.e., the LSA's Advertising Router). The reason the
Referenced Advertising Router field appears is that, even though it
is currently redundant, it may not be in the future. We may sometime
want to use the same LSA format to advertise address prefixes for
other protocol suites. In this case, the Designated Router may not
Coltun, et al. Standards Track [Page 39]
^L
RFC 5340 OSPF for IPv6 July 2008
be running the other protocol suite, and so another of the link's
routers may need to originate the intra-area-prefix-LSA. In that
case, the Referenced Advertising Router and Advertising Router would
be different.
4.4.4. Future LSA Validation
It is expected that new LSAs will be defined that will not be
processed during the Shortest Path First (SPF) calculation as
described in Section 4.8, for example, OSPFv3 LSAs corresponding to
information advertised in OSPFv2 using opaque LSAs [OPAQUE]. In
general, the new information advertised in future LSAs should not be
used unless the OSPFv3 router originating the LSA is reachable.
However, depending on the application and the data advertised, this
reachability validation MAY be done less frequently than every SPF
calculation.
To facilitate inter-area reachability validation, any OSPFv3 router
originating AS scoped LSAs is considered an AS Boundary Router
(ASBR).
4.5. Flooding
Most of the flooding algorithm remains unchanged from the IPv4
flooding mechanisms described in Section 13 of [OSPFV2]. In
particular, the protocol processes for determining which LSA instance
is newer (Section 13.1 of [OSPFV2]), responding to updates of self-
originated LSAs (Section 13.4 of [OSPFV2]), sending Link State
Acknowledgment packets (Section 13.5 of [OSPFV2]), retransmitting
LSAs (Section 13.6 of [OSPFV2]), and receiving Link State
Acknowledgment packets (Section 13.7 of [OSPFV2]), are exactly the
same for IPv6 and IPv4.
However, the addition of flooding scope and unknown LSA type handling
(see Appendix A.4.2.1) has caused some changes in the OSPF flooding
algorithm: the reception of Link State Updates (Section 13 in
[OSPFV2]) and the sending of Link State Updates (Section 13.3 of
[OSPFV2]) must take into account the LSA's scope and U-bit setting.
Also, installation of LSAs into the OSPF database (Section 13.2 of
[OSPFV2]) causes different events in IPv6, due to the reorganization
of LSA types and the IPv6 LSA contents. These changes are described
in detail below.
4.5.1. Receiving Link State Update Packets
The encoding of flooding scope in the LS type and the need to process
unknown LS types cause modifications to the processing of received
Link State Update packets. As in IPv4, each LSA in a received Link
Coltun, et al. Standards Track [Page 40]
^L
RFC 5340 OSPF for IPv6 July 2008
State Update packet is examined. In IPv4, eight steps are executed
for each LSA, as described in Section 13 of [OSPFV2]. For IPv6, all
the steps are the same, except that Steps 2 and 3 are modified as
follows:
(2) Examine the LSA's LS type. Discard the LSA and get
the next one from the Link State Update packet if the
interface area has been configured as a stub or
NSSA area and the LS type indicates "AS flooding scope".
This generalizes the IPv4 behavior where AS-external-LSAs
and AS-scoped opaque LSAs [OPAQUE] are not flooded
throughout stub or NSSA areas.
(3) Else if the flooding scope in the LSA's LS type is set to
"reserved", discard the LSA and get the next one from
the Link State Update packet.
Steps 5b (sending Link State Update packets) and 5d (installing LSAs
in the link-state database) in Section 13 of [OSPFV2] are also
somewhat different for IPv6, as described in Sections 4.5.2 and 4.5.3
below.
4.5.2. Sending Link State Update Packets
The sending of Link State Update packets is described in Section 13.3
of [OSPFV2]. For IPv4 and IPv6, the steps for sending a Link State
Update packet are the same (steps 1 through 5 of Section 13.3 in
[OSPFV2]). However, the list of eligible interfaces on which to
flood the LSA is different. For IPv6, the eligible interfaces are
selected based on the following factors:
o The LSA's flooding scope.
o For LSAs with area or link-local flooding scope, the particular
area or interface with which the LSA is associated.
o Whether the LSA has a recognized LS type.
o The setting of the U-bit in the LS type. If the U-bit is set to
0, unrecognized LS types are treated as having link-local scope.
If set to 1, unrecognized LS types are stored and flooded as if
they were recognized.
Coltun, et al. Standards Track [Page 41]
^L
RFC 5340 OSPF for IPv6 July 2008
Choosing the set of eligible interfaces then breaks into the
following cases:
Case 1
The LSA's LS type is recognized. In this case, the set of
eligible interfaces is set depending on the flooding scope encoded
in the LS type. If the flooding scope is "AS flooding scope", the
eligible interfaces are all router interfaces excepting virtual
links. In addition, AS-external-LSAs are not flooded on
interfaces connecting to stub or NSSA areas. If the flooding
scope is "area flooding scope", the eligible interfaces are those
interfaces connecting to the LSA's associated area. If the
flooding scope is "link-local flooding scope", then there is a
single eligible interface, the one connecting to the LSA's
associated link (which is also the interface on which the LSA was
received in a Link State Update packet).
Case 2
The LS type is unrecognized and the U-bit in the LS type is set to
0 (treat the LSA as if it had link-local flooding scope). In this
case, there is a single eligible interface, namely, the interface
on which the LSA was received.
Case 3
The LS type is unrecognized, and the U-bit in the LS type is set
to 1 (store and flood the LSA as if the type is understood). In
this case, select the eligible interfaces based on the encoded
flooding scope the same as in Case 1 above.
A further decision must sometimes be made before adding an LSA to a
given neighbor's link-state retransmission list (Step 1d in Section
13.3 of [OSPFV2]). If the LS type is recognized by the router but
not by the neighbor (as can be determined by examining the Options
field that the neighbor advertised in its Database Description
packet) and the LSA's U-bit is set to 0, then the LSA should be added
to the neighbor's link-state retransmission list if and only if that
neighbor is the Designated Router or Backup Designated Router for the
attached link. The LS types described in detail by this document,
namely, router-LSAs (LS type 0x2001), network-LSAs (0x2002), inter-
area-prefix-LSAs (0x2003), inter-area-router-LSAs (0x2004), NSSA-LSAs
(0x2007), AS-external-LSAs (0x4005), link-LSAs (0x0008), and Intra-
Area-Prefix-LSAs (0x2009), are assumed to be understood by all
routers. However, all LS types MAY not be understood by all routers.
For example, a new LSA type with its U-bit set to 0 MAY only be
understood by a subset of routers. This new LS type should only be
flooded to an OSPF neighbor that understands the LS type or when the
neighbor is the Designated Router or Backup Designated Router for the
attached link.
Coltun, et al. Standards Track [Page 42]
^L
RFC 5340 OSPF for IPv6 July 2008
The previous paragraph solves a problem for IPv4 OSPF extensions,
which require that the Designated Router support the extension in
order to have the new LSA types flooded across broadcast and NBMA
networks.
4.5.3. Installing LSAs in the Database
There are three separate places to store LSAs, depending on their
flooding scope. LSAs with AS flooding scope are stored in the global
OSPF data structure (see Section 4.1) as long as their LS type is
known or their U-bit is 1. LSAs with area flooding scope are stored
in the appropriate area data structure (see Section 4.1.1) as long as
their LS type is known or their U-bit is 1. LSAs with link-local
flooding scope, and those LSAs with unknown LS type and U-bit set to
0 (treat the LSA as if it had link-local flooding scope), are stored
in the appropriate interface data structure.
When storing the LSA into the link-state database, a check must be
made to see whether the LSA's contents have changed. Changes in
contents are indicated exactly as in Section 13.2 of [OSPFV2]. When
an LSA's contents have been changed, the following parts of the
routing table must be recalculated, based on the LSA's LS type:
Router-LSAs, Network-LSAs, Intra-Area-Prefix-LSAs, and Link-LSAs
The entire routing table is recalculated, starting with the
shortest-path calculation for each area (see Section 4.8).
Inter-Area-Prefix-LSAs and Inter-Area-Router-LSAs
The best route to the destination described by the LSA must be
recalculated (see Section 16.5 in [OSPFV2]). If this destination
is an AS boundary router, it may also be necessary to re-examine
all the AS-external-LSAs.
AS-external-LSAs and NSSA-LSAs
The best route to the destination described by the AS-external-LSA
or NSSA-LSA must be recalculated (see Section 16.6 in [OSPFV2] and
Section 2.0 in [NSSA]).
As in IPv4, any old instance of the LSA must be removed from the
database when the new LSA is installed. This old instance must also
be removed from all neighbors' link-state retransmission lists.
4.6. Definition of Self-Originated LSAs
In IPv6, the definition of a self-originated LSA has been simplified
from the IPv4 definition appearing in Sections 13.4 and 14.1 of
[OSPFV2]. For IPv6, self-originated LSAs are those LSAs whose
Advertising Router is equal to the router's own Router ID.
Coltun, et al. Standards Track [Page 43]
^L
RFC 5340 OSPF for IPv6 July 2008
4.7. Virtual Links
OSPF virtual links for IPv4 are described in Section 15 of [OSPFV2].
Virtual links are the same in IPv6, with the following exceptions:
o LSAs having AS flooding scope are never flooded over virtual
adjacencies, nor are LSAs with AS flooding scope summarized over
virtual adjacencies during the database exchange process. This is
a generalization of the IPv4 treatment of AS-external-LSAs.
o The IPv6 interface address of a virtual link MUST be an IPv6
address having global scope, instead of the link-local addresses
used by other interface types. This address is used as the IPv6
source for OSPF protocol packets sent over the virtual link.
Hence, a link-LSA SHOULD NOT be originated for a virtual link
since the virtual link has no link-local address or associated
prefixes.
o Likewise, the virtual neighbor's IPv6 address is an IPv6 address
with global scope. To enable the discovery of a virtual
neighbor's IPv6 address during the routing calculation, the
neighbor advertises its virtual link's IPv6 interface address in
an intra-area-prefix-LSA originated for the virtual link's transit
area (see Section 4.4.3.9 and Section 4.8.1).
o Like all other IPv6 OSPF interfaces, virtual links are assigned
unique (within the router) Interface IDs. These are advertised in
Hellos sent over the virtual link and in the router's router-LSAs.
4.8. Routing Table Calculation
The IPv6 OSPF routing calculation proceeds along the same lines as
the IPv4 OSPF routing calculation, following the five steps specified
by Section 16 of [OSPFV2]. High-level differences between the IPv6
and IPv4 calculations include:
o Prefix information has been removed from router-LSAs and network-
LSAs and is now advertised in intra-area-prefix-LSAs. Whenever
[OSPFV2] specifies that stub networks within router-LSAs be
examined, IPv6 will instead examine prefixes within intra-area-
prefix-LSAs.
o Type 3 and 4 summary-LSAs have been renamed inter-area-prefix-LSAs
and inter-area-router-LSAs respectively.
Coltun, et al. Standards Track [Page 44]
^L
RFC 5340 OSPF for IPv6 July 2008
o Addressing information is no longer encoded in Link State IDs and
is now only found within the body of LSAs.
o In IPv6, a router can originate multiple router-LSAs,
distinguished by Link State ID, within a single area. These
router-LSAs MUST be treated as a single aggregate by the area's
shortest-path calculation (see Section 4.8.1).
For each area, the shortest-path tree calculation creates routing
table entries for the area's routers and transit links (see
Section 4.8.1). These entries are then used when processing intra-
area-prefix-LSAs, inter-area-prefix-LSAs, and inter-area-router-LSAs,
as described in Section 4.8.3.
Events generated as a result of routing table changes (Section 16.7
of [OSPFV2]) and the equal-cost multipath logic (Section 16.8 of
[OSPFV2]) are identical for both IPv4 and IPv6.
4.8.1. Calculating the Shortest-Path Tree for an Area
The IPv4 shortest-path calculation is contained in Section 16.1 of
[OSPFV2]. The graph used by the shortest-path tree calculation is
identical for both IPv4 and IPv6. The graph's vertices are routers
and transit links, represented by router-LSAs and network-LSAs
respectively. A router is identified by its OSPF Router ID, while a
transit link is identified by its Designated Router's Interface ID
and OSPF Router ID. Both routers and transit links have associated
routing table entries within the area (see Section 4.3).
Section 16.1 of [OSPFV2] splits up the shortest-path calculations
into two stages. First, the Dijkstra calculation is performed, and
then the stub links are added onto the tree as leaves. The IPv6
calculation maintains this split.
The Dijkstra calculation for IPv6 is identical to that specified for
IPv4, with the following exceptions (referencing the steps from the
Dijkstra calculation as described in Section 16.1 of [OSPFV2]):
o The Vertex ID for a router is the OSPF Router ID. The Vertex ID
for a transit network is a combination of the Interface ID and
OSPF Router ID of the network's Designated Router.
o In Step 2, when a router Vertex V has just been added to the
shortest-path tree, there may be multiple LSAs associated with the
router. All router-LSAs with the Advertising Router set to V's
OSPF Router ID MUST be processed as an aggregate, treating them as
fragments of a single large router-LSA. The Options field and the
Coltun, et al. Standards Track [Page 45]
^L
RFC 5340 OSPF for IPv6 July 2008
router type bits (bits Nt, V, E, and B) should always be taken
from the router-LSA with the smallest Link State ID.
o Step 2a is not needed in IPv6, as there are no longer stub network
links in router-LSAs.
o In Step 2b, if W is a router and the router-LSA V6-bit or R-bit is
not set in the LSA options, the transit link W is ignored and V's
next link is examined.
o In Step 2b, if W is a router, there may again be multiple LSAs
associated with the router. All router-LSAs with the Advertising
Router set to W's OSPF Router ID MUST be processed as an
aggregate, treating them as fragments of a single large router-
LSA.
o In Step 4, there are now per-area routing table entries for each
of an area's routers rather than just the area border routers.
These entries subsume all the functionality of IPv4's area border
router routing table entries, including the maintenance of virtual
links. When the router added to the area routing table in this
step is the other end of a virtual link, the virtual neighbor's IP
address is set as follows: The collection of intra-area-prefix-
LSAs originated by the virtual neighbor is examined, with the
virtual neighbor's IP address being set to the first prefix
encountered with the LA-bit set.
o Routing table entries for transit networks, which are no longer
associated with IP networks, are also calculated in Step 4 and
added to the per-area routing table.
The next stage of the shortest-path calculation proceeds similarly to
the two steps of the second stage of Section 16.1 in [OSPFV2].
However, instead of examining the stub links within router-LSAs, the
list of the area's intra-area-prefix-LSAs is examined. A prefix
advertisement whose NU-bit is set SHOULD NOT be included in the
routing calculation. The cost of any advertised prefix is the sum of
the prefix's advertised metric plus the cost to the transit vertex
(either router or transit network) identified by intra-area-prefix-
LSA's Referenced LS Type, Referenced Link State ID, and Referenced
Advertising Router fields. This latter cost is stored in the transit
vertex's routing table entry for the area.
This specification does not require that the above algorithm be used
to calculate the intra-area shortest-path tree. However, if another
algorithm or optimization is used, an identical shortest-path tree
must be produced. It is also important that any alternate algorithm
or optimization maintain the requirement that transit vertices must
Coltun, et al. Standards Track [Page 46]
^L
RFC 5340 OSPF for IPv6 July 2008
be bidirectional for inclusion in the tree. Alternate algorithms and
optimizations are beyond the scope of this specification.
4.8.2. The Next-Hop Calculation
In IPv6, the calculation of the next-hop's IPv6 address (which will
be a link-local address) proceeds along the same lines as the IPv4
next-hop calculation (see Section 16.1.1 of [OSPFV2]). However,
there are some differences. When calculating the next-hop IPv6
address for a router (call it Router X) that shares a link with the
calculating router, the calculating router assigns the next-hop IPv6
address to be the link-local interface address contained in Router
X's link-LSA (see Appendix A.4.9) for the link. This procedure is
necessary for some link types, for example NBMA, where the two
routers need not be neighbors and might not be exchanging OSPF Hello
packets. For other link types, the next-hop address may be
determined via the IPv6 source address in the neighbor's Hello
packet.
Additionally, when calculating routes for the area's intra-area-
prefix-LSAs, the parent vertex can be either a router-LSA or network-
LSA. This is in contrast to the second stage of the OSPFv2 intra-
area SPF (Section 16.1 in [OSPFV2]) where the parent vertex is always
a router-LSA. In the case where the intra-area-prefix-LSA's
referenced LSA is a directly connected network-LSA, the prefixes are
also considered to be directly connected. In this case, the next hop
is solely the outgoing link and no IPv6 next-hop address is selected.
4.8.3. Calculating the Inter-Area Routes
Calculation of inter-area routes for IPv6 proceeds along the same
lines as the IPv4 calculation in Section 16.2 of [OSPFV2], with the
following modifications:
o The names of the Type 3 summary-LSAs and Type 4 summary-LSAs have
been changed to inter-area-prefix-LSAs and inter-area-router-LSAs
respectively.
o The Link State ID of the above LSA types no longer encodes the
network or router described by the LSA. Instead, an address
prefix is contained in the body of an inter-area-prefix-LSA and an
advertised AS boundary router's OSPF Router ID is carried in the
body of an inter-area-router-LSA.
o Prefixes having the NU-bit set in their PrefixOptions field should
be ignored by the inter-area route calculation.
Coltun, et al. Standards Track [Page 47]
^L
RFC 5340 OSPF for IPv6 July 2008
When a single inter-area-prefix-LSA or inter-area-router-LSA has
changed, the incremental calculations outlined in Section 16.5 of
[OSPFV2] can be performed instead of recalculating the entire routing
table.
4.8.4. Examining Transit Areas' Summary-LSAs
Examination of transit areas' summary-LSAs in IPv6 proceeds along the
same lines as the IPv4 calculation in Section 16.3 of [OSPFV2],
modified in the same way as the IPv6 inter-area route calculation in
Section 4.8.3.
4.8.5. Calculating AS External and NSSA Routes
The IPv6 AS external route calculation proceeds along the same lines
as the IPv4 calculation in Section 16.4 of [OSPFV2] and Section 2.5
of [NSSA], with the following exceptions:
o The Link State ID of the AS-external-LSA and NSSA-LSA types no
longer encodes the network described by the LSA. Instead, an
address prefix is contained in the body of the LSA.
o The default route in AS-external-LSAs or NSSA-LSAs is advertised
by a zero-length prefix.
o Instead of comparing the AS-external-LSA's or NSSA-LSA's
Forwarding Address field to 0.0.0.0 to see whether a forwarding
address has been used, the bit F in the respective LSA is
examined. A forwarding address is in use if and only if bit F is
set.
o Prefixes having the NU-bit set in their PrefixOptions field should
be ignored by the inter-area route calculation.
o AS Boundary Router (ASBR) and forwarding address selection will
proceed the same as if RFC1583Compatibility is disabled.
Furthermore, RFC1583Compatibility is not an OSPF for IPv6
configuration parameter. Refer to Appendix C.1.
When a single AS-external-LSA or NSSA-LSA has changed, the
incremental calculations outlined in Section 16.6 of [OSPFV2] can be
performed instead of recalculating the entire routing table.
4.9. Multiple Interfaces to a Single Link
In OSPF for IPv6, a router may have multiple interfaces to a single
link associated with the same OSPF instance and area. All interfaces
Coltun, et al. Standards Track [Page 48]
^L
RFC 5340 OSPF for IPv6 July 2008
will be used for the reception and transmission of data traffic while
only a single interface sends and receives OSPF control traffic. In
more detail:
o Each of the multiple interfaces is assigned a different Interface
ID. A router will automatically detect that multiple interfaces
are attached to the same link when a Hello packet is received with
one of the router's link-local addresses as the source address and
an Interface ID other than the Interface ID of the receiving
interface.
o Each of the multiple interfaces MUST be configured with the same
Interface Instance ID to be considered on the same link. If an
interface has multiple Instance IDs, it will be grouped with other
interfaces based on matching Instance IDs. Each Instance ID will
be treated uniquely with respect to groupings of multiple
interfaces on the same link. For example, if interface A is
configured with Instance IDs 1 and 35, and interface B is
configured with Instance ID 35, interface B may be the Active
Interface for Instance ID 35 but interface A will be active for
Instance ID 1.
o The router will ignore OSPF packets other than Hello packets on
all but one of the interfaces attached to the link. It will only
send its OSPF control packets (including Hello packets) on a
single interface. This interface is designated the Active
Interface and other interfaces attached to the same link will be
designated Standby Interfaces. The choice of the Active Interface
is implementation dependent. For example, the interface with the
highest Interface ID could be chosen. If the router is elected
Designated Router, it will be the Active Interface's Interface ID
that will be used as the network-LSA's Link State ID.
o All of the interfaces to the link (Active and Standby) will appear
in the router-LSA. In addition, a link-LSA will be generated for
each of the interfaces. In this way, all interfaces will be
included in OSPF's routing calculations.
o Any link-local scope LSAs that are originated for a Standby
Interface will be flooded over the Active Interface.
If a Standby Interface goes down, then the link-local scope LSAs
originated for the Standby Interfaces MUST be flushed on the
Active Interface.
o Prefixes on Standby Interfaces will be processed the same way as
prefixes on the Active Interface. For example, if the router is
the DR for the link, the Active Interface's prefixes are included
Coltun, et al. Standards Track [Page 49]
^L
RFC 5340 OSPF for IPv6 July 2008
in an intra-area-prefix-LSA which is associated with the Active
Interface's network-LSA; prefixes from Standby Interfaces on the
link will also be included in that intra-area-prefix LSA.
Similarly, if the link is a stub link, then the prefixes for the
Active and Standby Interfaces will all be included in the same
intra-area-prefix-LSA that is associated with the router-LSA.
o If the Active Interface fails, a new Active Interface will have to
take over. The new Active Interface SHOULD form all new neighbor
adjacencies with routers on the link. This failure can be
detected when the router's other interfaces to the Active
Interface's link cease to hear the router's Hellos or through
internal mechanisms, e.g., monitoring the Active Interface's
status.
o If the network becomes partitioned with different local interfaces
attaching to different network partitions, multiple interfaces
will become Active Interfaces and function independently.
o During the SPF calculation when a network-LSA for a network that
is directly connected to the root vertex is being examined, all of
the multiple interfaces to the link of adjacent router-LSAs must
be used in the next-hop calculation.
This can be accomplished during the back link check (see Section
16.1, Step 2 (B), in [OSPFV2]) by examining each link of the
router-LSA and making a list of the links that point to the
network-LSA. The Interface IDs for links in this list are then
used to find the corresponding link-LSAs and the link-local
addresses used as next hops when installing equal-cost paths in
the routing table.
o The interface state machine is modified to add the state Standby.
See Section 4.9.1 for a description of the Standby state.
4.9.1. Standby Interface State
In this state, the interface is one of multiple interfaces to a link
and this interface is designated Standby and is not sending or
receiving control packets. The interface will continue to receive
the Hello packets sent by the Active Interface. The interface will
maintain a timer, the Active Interface Timer, with the same interval
as the RouterDeadInterval. This timer will be reset whenever an OSPF
Hello packet is received from the Active Interface to the link.
Two new events are added to the list of events that cause interface
state changes: MultipleInterfacesToLink and ActiveInterfaceDead. The
descriptions of these events are as follows:
Coltun, et al. Standards Track [Page 50]
^L
RFC 5340 OSPF for IPv6 July 2008
MultipleInterfacesToLink
An interfaces on the router has received a Hello packet from
another interface on the same router. One of the interfaces is
designated as the Active Interface and the other interface is
designated as a Standby Interface. The Standby Interface
transitions to the Standby state.
ActiveInterfaceDead
There has been an indication that a Standby Interface is no longer
on a link with an Active Interface. The firing of the Active
Interface Timer is one indication of this event, as it indicates
that the Standby Interface has not received an OSPF Hello packet
from the Active Interface for the RouterDeadInterval. Other
indications may come from internal notifications, such as the
Active Interface being disabled through a configuration change.
Any indication internal to the router, such that the router knows
the Active Interface is no longer active on the link, can trigger
the ActiveInterfaceDead event for a Standby Interface.
Interface state machine additions include:
State(s): Waiting, DR Other, Backup, or DR
Event: MultipleInterfacesToLink
New state: Standby
Action: All interface variables are reset and interface
timers disabled. Also, all neighbor connections
associated with the interface are destroyed. This
is done by generating the event KillNbr on all
associated neighbors. The Active Interface Timer is
started and the interface will listen for OSPF Hello
packets from the link's Active Interface.
State(s): Standby
Event: ActiveInterfaceDead
New state: Down
Action: The Active Interface Timer is first disabled. Then
the InterfaceUp event is invoked.
Standby Interface State Machine Additions
Coltun, et al. Standards Track [Page 51]
^L
RFC 5340 OSPF for IPv6 July 2008
5. Security Considerations
When running over IPv6, OSPFv3 relies on the IP Authentication Header
(see [IPAUTH]) and the IP Encapsulating Security Payload (see
[IPESP]) to ensure integrity and authentication/confidentiality of
protocol packets. This is described in [OSPFV3-AUTH].
Most OSPFv3 implementations will be running on systems that support
multiple protocols with their own independent security assumptions
and domains. When IPsec is used to protect OSPFv3 packets, it is
important for the implementation to check the IPsec Security
Association (SA) and local SA database to ensure the OSPF packet
originated from a source that is trusted for OSPFv3. This is
required to eliminate the possibility that the packet was
authenticated using an SA defined for another protocol running on the
same system.
The mechanisms in [OSPFV3-AUTH] do not provide protection against
compromised, malfunctioning, or misconfigured routers. Such routers
can, either accidentally or deliberately, cause malfunctions
affecting the whole routing domain. The reader is encouraged to
consult [GENERIC-THREATS] for a more comprehensive description of
threats to routing protocols.
6. Manageability Considerations
The Management Information Base (MIB) for OSPFv3 is defined in
[OSPFV3-MIB].
7. IANA Considerations
Most OSPF for IPv6 IANA considerations are documented in [OSPF-IANA].
IANA has updated the reference for RFC 2740 to this document.
Additionally, this document introduces the following IANA
requirements that were not present in [OSPFV3]:
o Reserves the options with the values 0x000040 and 0x000080 for
migrated OSPFv2 options in the OSPFv3 Options registry defined in
[OSPF-IANA]. For information on the OSPFv3 Options field, refer
to Appendix A.2.
o Adds the prefix option P-bit with value 0x08 to the OSPFv3 Prefix
Options registry defined in [OSPF-IANA]. For information on
OSPFv3 Prefix Options, refer to Appendix A.4.1.1.
Coltun, et al. Standards Track [Page 52]
^L
RFC 5340 OSPF for IPv6 July 2008
o Adds the prefix option DN-bit with value 0x10 to the OSPFv3 Prefix
Options registry defined in [OSPF-IANA]. For information on
OSPFv3 Prefix Options, refer to Appendix A.4.1.1.
7.1. MOSPF for OSPFv3 Deprecation IANA Considerations
With the deprecation of MOSPF for OSPFv3, the following code points
are available for reassignment. Refer to [OSPF-IANA] for information
on the respective registries. This document:
o Deprecates the MC-bit with value 0x000004 in the OSPFv3 Options
registry.
o Deprecates Group-membership-LSA with value 6 in OSPFv3 LSA
Function Code registry.
o Deprecates MC-bit with value 0x04 in the OSPFv3 Prefix Options
registry.
The W-bit in the OSPFv3 Router Properties has also been deprecated.
This requires a new registry for OSPFv3 router properties since it
will diverge from the OSPFv2 Router Properties.
Registry Name: OSPFv3 Router Properties Registry
Reference: RFC 5340
Registration Procedures: Standards Action
Registry:
Value Description Reference
------ ------------- ---------
0x01 B-bit RFC 5340
0x02 E-bit RFC 5340
0x04 V-bit RFC 5340
0x08 Deprecated RFC 5340
0x10 Nt-bit RFC 5340
OSPFv3 Router Properties Registry
8. Acknowledgments
The RFC text was produced using Marshall Rose's xml2rfc tool.
The following individuals contributed comments that were incorporated
into this document:
o Harold Rabbie for his description of protocol details that needed
to be clarified for OSPFv3 NSSA support.
Coltun, et al. Standards Track [Page 53]
^L
RFC 5340 OSPF for IPv6 July 2008
o Nic Neate for his pointing out that there needed to be changes for
unknown LSA types handling in the processing of Database
Description packets.
o Jacek Kwiatkowski for being the first to point out that the V6-
and R-bits are not taken into account in the OSPFv3 intra-area SPF
calculation.
o Michael Barnes recognized that the support for multiple interfaces
to a single link was broken (see Section 4.9) and provided the
description of the current protocol mechanisms. Abhay Roy
reviewed and suggested improvements to the mechanisms.
o Alan Davey reviewed and commented on document revisions.
o Vivek Dubey reviewed and commented on document revisions.
o Manoj Goyal and Vivek Dubey complained enough about link-LSAs
being unnecessary to compel introduction of the LinkLSASuppression
interface configuration parameter.
o Manoj Goyal for pointing out that the next-hop calculation for
intra-area-prefix-LSAs corresponding to network vertices was
unclear.
o Ramana Koppula reviewed and commented on document revisions.
o Paul Wells reviewed and commented on document revisions.
o Amir Khan reviewed and commented on document revisions.
o Dow Street and Wayne Wheeler commented on the addition of the DN-
bit to OSPFv3.
o Mitchell Erblichs provided numerous editorial comments.
o Russ White provided numerous editorial comments.
o Kashima Hiroaki provided editorial comments.
o Sina Mirtorabi suggested that OSPFv3 should be aligned with OSPFv2
with respect to precedence and should map it to IPv6 traffic class
as specified in RFC 2474. Steve Blake helped with the text.
o Faraz Shamin reviewed a late version of the document and provided
editorial comments.
Coltun, et al. Standards Track [Page 54]
^L
RFC 5340 OSPF for IPv6 July 2008
o Christian Vogt performed the General Area Review Team (Gen-ART)
review and provided comments.
o Dave Ward, Dan Romascanu, Tim Polk, Ron Bonica, Pasi Eronen, and
Lars Eggert provided comments during the IESG review. Also,
thanks to Pasi for the text in Section 5 relating to routing
threats.
9. References
9.1. Normative References
[DEMAND] Moy, J., "Extending OSPF to Support Demand
Circuits", RFC 1793, April 1995.
[DIFF-SERV] Nichols, K., Blake, S., Baker, F., and D. Black,
"Definition of the Differentiated Services Field
(DS Field) in the IPv4 and IPv6 Headers",
RFC 2474, December 1998.
[DN-BIT] Rosen, E., Peter, P., and P. Pillay-Esnault,
"Using a Link State Advertisement (LSA) Options
Bit to Prevent Looping in BGP/MPLS IP Virtual
Private Networks (VPNs)", RFC 4576, June 2006.
[INTFMIB] McCloghrie, K. and F. Kastenholz, "The Interfaces
Group MIB", RFC 2863, June 2000.
[IP6ADDR] Hinden, R. and S. Deering, "IP Version 6
Addressing Architecture", RFC 4291, February 2006.
[IPAUTH] Kent, S., "IP Authentication Header", RFC 4302,
December 2005.
[IPESP] Kent, S., "IP Encapsulating Security Payload
(ESP)", RFC 4303, December 2005.
[IPV4] Postal, J., "Internet Protocol", STD 5, RFC 791,
September 1981.
[IPV6] Deering, S. and R. Hinden, "Internet Protocol,
Version 6 (IPv6) Specification", RFC 2460,
December 1998.
[NSSA] Murphy, P., "The OSPF Not-So-Stubby Area (NSSA)
Option", RFC 3101, January 2003.
Coltun, et al. Standards Track [Page 55]
^L
RFC 5340 OSPF for IPv6 July 2008
[OSPF-IANA] Kompella, K. and B. Fenner, "IANA Considerations
for OSPF", BCP 130, RFC 4940, July 2007.
[OSPFV2] Moy, J., "OSPF Version 2", STD 54, RFC 2328,
April 1998.
[OSPFV3-AUTH] Gupta, M. and N. Melam, "Authentication/
Confidentiality for OSPFv3", RFC 4552, June 2006.
[RFC-KEYWORDS] Bradner, S., "Key words for use in RFCs to
Indicate Requirement Levels", BCP 14, RFC 2119,
March 1997.
9.2. Informative References
[GENERIC-THREATS] Barbir, A., Murphy, S., and Y. Yang, "Generic
Threats to Routing Protocols", RFC 4593,
October 2006.
[MOSPF] Moy, J., "Multicast Extensions to OSPF", RFC 1584,
March 1994.
[MTUDISC] Mogul, J. and S. Deering, "Path MTU discovery",
RFC 1191, November 1990.
[OPAQUE] Coltun, R., "The OSPF Opaque LSA Option",
RFC 2370, July 1998.
[OSPFV3] Coltun, R., Ferguson, D., and J. Moy, "OSPF for
IPv6", RFC 2740, December 1999.
[OSPFV3-MIB] Joyal, D. and V. Manral, "Management Information
Base for OSPFv3", Work in Progress,
September 2007.
[SERV-CLASS] Babiarz, J., Chan, K., and F. Baker,
"Configuration Guidelines for DiffServ Service
Classes", RFC 4594, August 2006.
Coltun, et al. Standards Track [Page 56]
^L
RFC 5340 OSPF for IPv6 July 2008
Appendix A. OSPF Data Formats
This appendix describes the format of OSPF protocol packets and OSPF
LSAs. The OSPF protocol runs directly over the IPv6 network layer.
Before any data formats are described, the details of the OSPF
encapsulation are explained.
Next, the OSPF Options field is described. This field describes
various capabilities that may or may not be supported by pieces of
the OSPF routing domain. The OSPF Options field is contained in OSPF
Hello packets, Database Description packets, and OSPF LSAs.
OSPF packet formats are detailed in Section A.3.
A description of OSPF LSAs appears in Section A.4. This section
describes how IPv6 address prefixes are represented within LSAs,
details the standard LSA header, and then provides formats for each
of the specific LSA types.
A.1. Encapsulation of OSPF Packets
OSPF runs directly over the IPv6's network layer. OSPF packets are
therefore encapsulated solely by IPv6 and local data-link headers.
OSPF does not define a way to fragment its protocol packets, and
depends on IPv6 fragmentation when transmitting packets larger than
the link MTU. If necessary, the length of OSPF packets can be up to
65,535 bytes. The OSPF packet types that are likely to be large
(Database Description, Link State Request, Link State Update, and
Link State Acknowledgment packets) can usually be split into multiple
protocol packets without loss of functionality. This is recommended;
IPv6 fragmentation should be avoided whenever possible. Using this
reasoning, an attempt should be made to limit the size of OSPF
packets sent over virtual links to 1280 bytes unless Path MTU
Discovery is being performed [MTUDISC].
The other important features of OSPF's IPv6 encapsulation are:
o Use of IPv6 multicast. Some OSPF messages are multicast when sent
over broadcast networks. Two distinct IP multicast addresses are
used. Packets sent to these multicast addresses should never be
forwarded; they are meant to travel a single hop only. As such,
the multicast addresses have been chosen with link-local scope and
packets sent to these addresses should have their IPv6 Hop Limit
set to 1. b
Coltun, et al. Standards Track [Page 57]
^L
RFC 5340 OSPF for IPv6 July 2008
AllSPFRouters
This multicast address has been assigned the value FF02::5.
All routers running OSPF should be prepared to receive packets
sent to this address. Hello packets are always sent to this
destination. Also, certain OSPF protocol packets are sent to
this address during the flooding procedure.
AllDRouters
This multicast address has been assigned the value FF02::6.
Both the Designated Router and Backup Designated Router must be
prepared to receive packets destined to this address. Certain
OSPF protocol packets are sent to this address during the
flooding procedure.
o OSPF is IP protocol 89. This number SHOULD be inserted in the
Next Header field of the encapsulating IPv6 header.
o The OSPFv2 specification (Appendix A.1 in [OSPFV2]) indicates that
OSPF protocol packets are sent with IP precedence set to
Internetwork Control (B'110') [IPV4]. If routers in the OSPF
routing domain map their IPv6 Traffic Class octet to the
Differentiated Services Code Point (DSCP) as specified in
[DIFF-SERV], then OSPFv3 packets SHOULD be sent with their DSCP
set to CS6 (B'110000'), as specified in [SERV-CLASS]. In networks
supporting this mapping, OSPF packets will be given precedence
over IPv6 data traffic.
A.2. The Options Field
The 24-bit OSPF Options field is present in OSPF Hello packets,
Database Description packets, and certain LSAs (router-LSAs, network-
LSAs, inter-area-router-LSAs, and link-LSAs). The Options field
enables OSPF routers to support (or not support) optional
capabilities, and to communicate their capability level to other OSPF
routers. Through this mechanism, routers of differing capabilities
can be mixed within an OSPF routing domain.
An option mismatch between routers can cause a variety of behaviors,
depending on the particular option. Some option mismatches prevent
neighbor relationships from forming (e.g., the E-bit below); these
mismatches are discovered through the sending and receiving of Hello
packets. Some option mismatches prevent particular LSA types from
being flooded across adjacencies; these are discovered through the
sending and receiving of Database Description packets. Some option
mismatches prevent routers from being included in one or more of the
various routing calculations because of their reduced functionality;
these mismatches are discovered by examining LSAs.
Coltun, et al. Standards Track [Page 58]
^L
RFC 5340 OSPF for IPv6 July 2008
Seven bits of the OSPF Options field have been assigned. Each bit is
described briefly below. Routers should reset (i.e., clear)
unrecognized bits in the Options field when sending Hello packets or
Database Description packets and when originating LSAs. Conversely,
routers encountering unrecognized Options bits in received Hello
packets, Database Description packets, or LSAs should ignore the
unrecognized bits and process the packet or LSA normally.
1 2
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+--+--+
| | | | | | | | | | | | | | | | |*|*|DC|R|N|x| E|V6|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+--+--+
The Options field
The Options field
V6-bit
If this bit is clear, the router/link should be excluded from IPv6
routing calculations. See Section 4.8 for details.
E-bit
This bit describes the way AS-external-LSAs are flooded, as
described in Sections 3.6, 9.5, 10.8, and 12.1.2 of [OSPFV2].
x-Bit
This bit was previously used by MOSPF (see [MOSPF]), which has
been deprecated for OSPFv3. The bit should be set to 0 and
ignored when received. It may be reassigned in the future.
N-bit
This bit indicates whether or not the router is attached to an
NSSA as specified in [NSSA].
R-bit
This bit (the `Router' bit) indicates whether the originator is an
active router. If the router bit is clear, then routes that
transit the advertising node cannot be computed. Clearing the
router bit would be appropriate for a multi-homed host that wants
to participate in routing, but does not want to forward non-
locally addressed packets.
DC-bit
This bit describes the router's handling of demand circuits, as
specified in [DEMAND].
Coltun, et al. Standards Track [Page 59]
^L
RFC 5340 OSPF for IPv6 July 2008
*-bit
These bits are reserved for migration of OSPFv2 protocol
extensions.
A.3. OSPF Packet Formats
There are five distinct OSPF packet types. All OSPF packet types
begin with a standard 16-byte header. This header is described
first. Each packet type is then described in a succeeding section.
In these sections, each packet's format is displayed and the packet's
component fields are defined.
All OSPF packet types (other than the OSPF Hello packets) deal with
lists of LSAs. For example, Link State Update packets implement the
flooding of LSAs throughout the OSPF routing domain. The format of
LSAs is described in Section A.4.
The receive processing of OSPF packets is detailed in Section 4.2.2.
The sending of OSPF packets is explained in Section 4.2.1.
A.3.1. The OSPF Packet Header
Every OSPF packet starts with a standard 16-byte header. Together
with the encapsulating IPv6 headers, the OSPF header contains all the
information necessary to determine whether the packet should be
accepted for further processing. This determination is described in
Section 4.2.2.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Version # | Type | Packet length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Router ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Area ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Checksum | Instance ID | 0 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
The OSPF Packet Header
Version #
The OSPF version number. This specification documents version 3
of the OSPF protocol.
Coltun, et al. Standards Track [Page 60]
^L
RFC 5340 OSPF for IPv6 July 2008
Type
The OSPF packet types are as follows. See Appendix A.3.2 through
Appendix A.3.6 for details.
Type Description
---------------------------------
1 Hello
2 Database Description
3 Link State Request
4 Link State Update
5 Link State Acknowledgment
Packet length
The length of the OSPF protocol packet in bytes. This length
includes the standard OSPF header.
Router ID
The Router ID of the packet's source.
Area ID
A 32-bit number identifying the area to which this packet belongs.
All OSPF packets are associated with a single area. Most travel a
single hop only. Packets traversing a virtual link are labeled
with the backbone Area ID of 0.
Checksum
OSPF uses the standard checksum calculation for IPv6 applications:
The 16-bit one's complement of the one's complement sum of the
entire contents of the packet, starting with the OSPF packet
header, and prepending a "pseudo-header" of IPv6 header fields, as
specified in Section 8.1 of [IPV6]. The "Upper-Layer Packet
Length" in the pseudo-header is set to the value of the OSPF
packet header's length field. The Next Header value used in the
pseudo-header is 89. If the packet's length is not an integral
number of 16-bit words, the packet is padded with a byte of zero
before checksumming. Before computing the checksum, the checksum
field in the OSPF packet header is set to 0.
Instance ID
Enables multiple instances of OSPF to be run over a single link.
Each protocol instance would be assigned a separate Instance ID;
the Instance ID has link-local significance only. Received
packets whose Instance ID is not equal to the receiving
interface's Instance ID are discarded.
Coltun, et al. Standards Track [Page 61]
^L
RFC 5340 OSPF for IPv6 July 2008
0
These fields are reserved. They SHOULD be set to 0 when sending
protocol packets and MUST be ignored when receiving protocol
packets.
A.3.2. The Hello Packet
Hello packets are OSPF packet type 1. These packets are sent
periodically on all interfaces (including virtual links) in order to
establish and maintain neighbor relationships. In addition, Hello
packets are multicast on those links having a multicast or broadcast
capability, enabling dynamic discovery of neighboring routers.
All routers connected to a common link must agree on certain
parameters (HelloInterval and RouterDeadInterval). These parameters
are included in Hello packets allowing differences to inhibit the
forming of neighbor relationships. The Hello packet also contains
fields used in Designated Router election (Designated Router ID and
Backup Designated Router ID), and fields used to detect bidirectional
communication (the Router IDs of all neighbors whose Hellos have been
recently received).
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 3 | 1 | Packet Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Router ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Area ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Checksum | Instance ID | 0 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Interface ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Rtr Priority | Options |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| HelloInterval | RouterDeadInterval |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Designated Router ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Backup Designated Router ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Neighbor ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... |
The OSPF Hello Packet
Coltun, et al. Standards Track [Page 62]
^L
RFC 5340 OSPF for IPv6 July 2008
Interface ID
32-bit number uniquely identifying this interface among the
collection of this router's interfaces. For example, in some
implementations it may be possible to use the MIB-II IfIndex
([INTFMIB]).
Rtr Priority
This router's Router Priority. Used in (Backup) Designated Router
election. If set to 0, the router will be ineligible to become
(Backup) Designated Router.
Options
The optional capabilities supported by the router, as documented
in Section A.2.
HelloInterval
The number of seconds between this router's Hello packets.
RouterDeadInterval
The number of seconds before declaring a silent router down.
Designated Router ID
The sending router's view of the identity of the Designated Router
for this network. The Designated Router is identified by its
Router ID. It is set to 0.0.0.0 if there is no Designated Router.
Backup Designated Router ID
The sending router's view of the identity of the Backup Designated
Router for this network. The Backup Designated Router is
identified by its IP Router ID. It is set to 0.0.0.0 if there is
no Backup Designated Router.
Neighbor ID
The Router IDs of each router on the network with neighbor state
1-Way or greater.
A.3.3. The Database Description Packet
Database Description packets are OSPF packet type 2. These packets
are exchanged when an adjacency is being initialized. They describe
the contents of the link-state database. Multiple packets may be
used to describe the database. For this purpose, a poll-response
procedure is used. One of the routers is designated to be the master
and the other is the slave. The master sends Database Description
packets (polls) that are acknowledged by Database Description packets
sent by the slave (responses). The responses are linked to the polls
via the packets' DD sequence numbers.
Coltun, et al. Standards Track [Page 63]
^L
RFC 5340 OSPF for IPv6 July 2008
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+
| 3 | 2 | Packet Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+
| Router ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+
| Area ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+
| Checksum | Instance ID | 0 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+
| 0 | Options |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+
| Interface MTU | 0 |0|0|0|0|0|I|M|MS|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+
| DD sequence number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+
| |
+- -+
| |
+- An LSA Header -+
| |
+- -+
| |
+- -+
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+
| ... |
The OSPF Database Description Packet
The format of the Database Description packet is very similar to both
the Link State Request packet and the Link State Acknowledgment
packet. The main part of all three is a list of items, each item
describing a piece of the link-state database. The sending of
Database Description packets is documented in Section 10.8 of
[OSPFV2]. The reception of Database Description packets is
documented in Section 10.6 of [OSPFV2].
Options
The optional capabilities supported by the router, as documented
in Section A.2.
Interface MTU
The size in bytes of the largest IPv6 datagram that can be sent
out the associated interface without fragmentation. The MTUs of
common Internet link types can be found in Table 7-1 of [MTUDISC].
Coltun, et al. Standards Track [Page 64]
^L
RFC 5340 OSPF for IPv6 July 2008
Interface MTU should be set to 0 in Database Description packets
sent over virtual links.
I-bit
The Init bit. When set to 1, this packet is the first in the
sequence of Database Description packets.
M-bit
The More bit. When set to 1, it indicates that more Database
Description packets are to follow.
MS-bit
The Master/Slave bit. When set to 1, it indicates that the router
is the master during the Database Exchange process. Otherwise,
the router is the slave.
DD sequence number
Used to sequence the collection of Database Description packets.
The initial value (indicated by the Init bit being set) should be
unique. The DD sequence number then increments until the complete
database for both the master and slave routers have been
exchanged.
The rest of the packet consists of a (possibly partial) list of the
link-state database's pieces. Each LSA in the database is described
by its LSA header. The LSA header is documented in Appendix A.4.2.
It contains all the information required to uniquely identify both
the LSA and the LSA's current instance.
A.3.4. The Link State Request Packet
Link State Request packets are OSPF packet type 3. After exchanging
Database Description packets with a neighboring router, a router may
find that parts of its link-state database are out-of-date. The Link
State Request packet is used to request the pieces of the neighbor's
database that are more up-to-date. Multiple Link State Request
packets may need to be used.
A router that sends a Link State Request packet has in mind the
precise instance of the database pieces it is requesting. Each
instance is defined by its LS sequence number, LS checksum, and LS
age, although these fields are not specified in the Link State
Request packet itself. The router may receive even more recent LSA
instances in response.
The sending of Link State Request packets is documented in Section
10.9 of [OSPFV2]. The reception of Link State Request packets is
documented in Section 10.7 of [OSPFV2].
Coltun, et al. Standards Track [Page 65]
^L
RFC 5340 OSPF for IPv6 July 2008
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 3 | 3 | Packet Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Router ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Area ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Checksum | Instance ID | 0 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 0 | LS Type |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Link State ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Advertising Router |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... |
The OSPF Link State Request Packet
Each LSA requested is specified by its LS type, Link State ID, and
Advertising Router. This uniquely identifies the LSA without
specifying its instance. Link State Request packets are understood
to be requests for the most recent instance of the specified LSAs.
A.3.5. The Link State Update Packet
Link State Update packets are OSPF packet type 4. These packets
implement the flooding of LSAs. Each Link State Update packet
carries a collection of LSAs one hop further from their origin.
Several LSAs may be included in a single packet.
Link State Update packets are multicast on those physical networks
that support multicast/broadcast. In order to make the flooding
procedure reliable, flooded LSAs are acknowledged in Link State
Acknowledgment packets. If retransmission of certain LSAs is
necessary, the retransmitted LSAs are always carried by unicast Link
State Update packets. For more information on the reliable flooding
of LSAs, consult Section 4.5.
Coltun, et al. Standards Track [Page 66]
^L
RFC 5340 OSPF for IPv6 July 2008
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 3 | 4 | Packet Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Router ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Area ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Checksum | Instance ID | 0 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| # LSAs |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+- +-+
| LSAs |
+- +-+
| ... |
The OSPF Link State Update Packet
# LSAs
The number of LSAs included in this update.
The body of the Link State Update packet consists of a list of LSAs.
Each LSA begins with a common 20-byte header, described in
Appendix A.4.2. Detailed formats of the different types of LSAs are
described Appendix A.4.
A.3.6. The Link State Acknowledgment Packet
Link State Acknowledgment packets are OSPF packet type 5. To make
the flooding of LSAs reliable, flooded LSAs are explicitly or
implicitly acknowledged. Explicit acknowledgment is accomplished
through the sending and receiving of Link State Acknowledgment
packets. The sending of Link State Acknowledgment packets is
documented in Section 13.5 of [OSPFV2]. The reception of Link State
Acknowledgment packets is documented in Section 13.7 of [OSPFV2].
Multiple LSAs MAY be acknowledged in a single Link State
Acknowledgment packet. Depending on the state of the sending
interface and the sender of the corresponding Link State Update
packet, a Link State Acknowledgment packet is sent to the multicast
address AllSPFRouters, the multicast address AllDRouters, or to a
neighbor's unicast address (see Section 13.5 of [OSPFV2] for
details).
Coltun, et al. Standards Track [Page 67]
^L
RFC 5340 OSPF for IPv6 July 2008
The format of this packet is similar to that of the Data Description
packet. The body of both packets is simply a list of LSA headers.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 3 | 5 | Packet Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Router ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Area ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Checksum | Instance ID | 0 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+- -+
| |
+- An LSA Header -+
| |
+- -+
| |
+- -+
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... |
The OSPF Link State Acknowledgment Packet
Each acknowledged LSA is described by its LSA header. The LSA header
is documented in Appendix A.4.2. It contains all the information
required to uniquely identify both the LSA and the LSA's current
instance.
A.4. LSA Formats
This document defines eight distinct types of LSAs. Each LSA begins
with a standard 20-byte LSA header. This header is explained in
Appendix A.4.2. Succeeding sections describe each LSA type
individually.
Each LSA describes a piece of the OSPF routing domain. Every router
originates a router-LSA. A network-LSA is advertised for each link
by its Designated Router. A router's link-local addresses are
advertised to its neighbors in link-LSAs. IPv6 prefixes are
advertised in intra-area-prefix-LSAs, inter-area-prefix-LSAs, AS-
external-LSAs, and NSSA-LSAs. Location of specific routers can be
advertised across area boundaries in inter-area-router-LSAs. All
LSAs are then flooded throughout the OSPF routing domain. The
Coltun, et al. Standards Track [Page 68]
^L
RFC 5340 OSPF for IPv6 July 2008
flooding algorithm is reliable, ensuring that all routers common to a
flooding scope have the same collection of LSAs associated with that
flooding scope. (See Section 4.5 for more information concerning the
flooding algorithm.) This collection of LSAs is called the link-
state database.
From the link-state database, each router constructs a shortest-path
tree with itself as root. This yields a routing table (see Section
11 of [OSPFV2]). For details on the routing table build process, see
Section 4.8.
A.4.1. IPv6 Prefix Representation
IPv6 addresses are bit strings of length 128. IPv6 routing
protocols, and OSPF for IPv6 in particular, advertise IPv6 address
prefixes. IPv6 address prefixes are bit strings whose length ranges
between 0 and 128 bits (inclusive).
Within OSPF, IPv6 address prefixes are always represented by a
combination of three fields: PrefixLength, PrefixOptions, and Address
Prefix. PrefixLength is the length in bits of the prefix.
PrefixOptions is an 8-bit field describing various capabilities
associated with the prefix (see Appendix A.4.1.1). Address Prefix is
an encoding of the prefix itself as an even multiple of 32-bit words,
padding with zero bits as necessary. This encoding consumes
((PrefixLength + 31) / 32) 32-bit words.
The default route is represented by a prefix of length 0.
Examples of IPv6 Prefix representation in OSPF can be found in
Appendix A.4.5, Appendix A.4.7, Appendix A.4.8, Appendix A.4.9, and
Appendix A.4.10.
A.4.1.1. Prefix Options
Each prefix is advertised along with an 8-bit field of capabilities.
These serve as input to the various routing calculations. For
example, they can indicate that prefixes are to be ignored in some
cases or are to be marked as not readvertisable in others.
0 1 2 3 4 5 6 7
+--+--+--+--+--+-+--+--+
| | | |DN| P|x|LA|NU|
+--+--+--+--+--+-+--+--+
The PrefixOptions Field
Coltun, et al. Standards Track [Page 69]
^L
RFC 5340 OSPF for IPv6 July 2008
NU-bit
The "no unicast" capability bit. If set, the prefix should be
excluded from IPv6 unicast calculations. If not set, it should be
included.
LA-bit
The "local address" capability bit. If set, the prefix is
actually an IPv6 interface address of the Advertising Router.
Advertisement of local interface addresses is described in
Section 4.4.3.9. An implementation MAY also set the LA-bit for
prefixes advertised with a host PrefixLength (128).
x-bit
This bit was previously defined as a "multicast" capability bit.
However, the use was never adequately specified and has been
deprecated for OSPFv3. The bit should be set to 0 and ignored
when received. It may be reassigned in the future.
P-bit
The "propagate" bit. Set on NSSA area prefixes that should be
readvertised by the translating NSSA area border [NSSA].
DN-bit
This bit controls an inter-area-prefix-LSAs or AS-external-LSAs
re-advertisement in a VPN environment as specified in [DN-BIT].
A.4.2. The LSA Header
All LSAs begin with a common 20-byte header. This header contains
enough information to uniquely identify the LSA (LS type, Link State
ID, and Advertising Router). Multiple instances of the LSA may exist
in the routing domain at the same time. It is then necessary to
determine which instance is more recent. This is accomplished by
examining the LS age, LS sequence number, and LS checksum fields that
are also contained in the LSA header.
Coltun, et al. Standards Track [Page 70]
^L
RFC 5340 OSPF for IPv6 July 2008
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Age | LS Type |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Link State ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Advertising Router |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Checksum | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
The LSA Header
LS Age
The time in seconds since the LSA was originated.
LS Type
The LS type field indicates the function performed by the LSA.
The high-order three bits of LS type encode generic properties of
the LSA, while the remainder (called LSA function code) indicate
the LSA's specific functionality. See Appendix A.4.2.1 for a
detailed description of LS type.
Link State ID
The originating router's identifier for the LSA. The combination
of the Link State ID, LS type, and Advertising Router uniquely
identify the LSA in the link-state database.
Advertising Router
The Router ID of the router that originated the LSA. For example,
in network-LSAs this field is equal to the Router ID of the
network's Designated Router.
LS sequence number
Successive instances of an LSA are given successive LS sequence
numbers. The sequence number can be used to detect old or
duplicate LSA instances. See Section 12.1.6 in [OSPFV2] for more
details.
LS checksum
The Fletcher checksum of the complete contents of the LSA,
including the LSA header but excluding the LS age field. See
Section 12.1.7 in [OSPFV2] for more details.
Coltun, et al. Standards Track [Page 71]
^L
RFC 5340 OSPF for IPv6 July 2008
length
The length in bytes of the LSA. This includes the 20-byte LSA
header.
A.4.2.1. LSA Type
The LS type field indicates the function performed by the LSA. The
high-order three bits of LS type encode generic properties of the
LSA, while the remainder (called LSA function code) indicate the
LSA's specific functionality. The format of the LS type is as
follows:
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
|U |S2|S1| LSA Function Code |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
LSA Type
The U-bit indicates how the LSA should be handled by a router that
does not recognize the LSA's function code. Its values are:
U-bit LSA Handling
-------------------------------------------------------------
0 Treat the LSA as if it had link-local flooding scope
1 Store and flood the LSA as if the type is understood
U-Bit
The S1 and S2 bits indicate the flooding scope of the LSA. The
values are:
S2 S1 Flooding Scope
-------------------------------------------------------------
0 0 Link-Local Scoping - Flooded only on originating link
0 1 Area Scoping - Flooded only in originating area
1 0 AS Scoping - Flooded throughout AS
1 1 Reserved
Flooding Scope
The LSA function codes are defined as follows. The origination and
processing of these LSA function codes are defined elsewhere in this
document, except for the NSSA-LSA (see [NSSA]) and 0x2006, which was
previously used by MOSPF (see [MOSPF]). MOSPF has been deprecated
for OSPFv3. As shown below, each LSA function b code also implies a
specific setting for the U, S1, and S2 bits.
Coltun, et al. Standards Track [Page 72]
^L
RFC 5340 OSPF for IPv6 July 2008
LSA Function Code LS Type Description
----------------------------------------------------
1 0x2001 Router-LSA
2 0x2002 Network-LSA
3 0x2003 Inter-Area-Prefix-LSA
4 0x2004 Inter-Area-Router-LSA
5 0x4005 AS-External-LSA
6 0x2006 Deprecated (may be reassigned)
7 0x2007 NSSA-LSA
8 0x0008 Link-LSA
9 0x2009 Intra-Area-Prefix-LSA
LSA Function Code
A.4.3. Router-LSAs
Router-LSAs have LS type equal to 0x2001. Each router in an area
originates one or more router-LSAs. The complete collection of
router-LSAs originated by the router describe the state and cost of
the router's interfaces to the area. For details concerning the
construction of router-LSAs, see Section 4.4.3.2. Router-LSAs are
only flooded throughout a single area.
Coltun, et al. Standards Track [Page 73]
^L
RFC 5340 OSPF for IPv6 July 2008
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
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Age |0|0|1| 1 |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Link State ID |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Advertising Router |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Sequence Number |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Checksum | Length |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 0 |Nt|x|V|E|B| Options |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | 0 | Metric |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Interface ID |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Neighbor Interface ID |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Neighbor Router ID |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | 0 | Metric |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Interface ID |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Neighbor Interface ID |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Neighbor Router ID |
+-+-+-+--+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... |
Router-LSA Format
A single router may originate one or more router-LSAs, distinguished
by their Link State IDs (which are chosen arbitrarily by the
originating router). The Options field and V, E, and B bits should
be the same in all router-LSAs from a single originator. However, in
the case of a mismatch, the values in the LSA with the lowest Link
State ID take precedence. When more than one router-LSA is received
from a single router, the links are processed as if concatenated into
a single LSA.
Coltun, et al. Standards Track [Page 74]
^L
RFC 5340 OSPF for IPv6 July 2008
Bit V
When set, the router is an endpoint of one or more fully adjacent
virtual links having the described area as transit area (V is for
virtual link endpoint).
Bit E
When set, the router is an AS boundary router (E is for external).
Bit B
When set, the router is an area border router (B is for border).
Bit x
This bit was previously used by MOSPF (see [MOSPF]) and has been
deprecated for OSPFv3. The bit should be set to 0 and ignored
when received. It may be reassigned in the future.
Bit Nt
When set, the router is an NSSA border router that is
unconditionally translating NSSA-LSAs into AS-external-LSAs (Nt
stands for NSSA translation). Note that such routers have their
NSSATranslatorRole area configuration parameter set to Always.
(See [NSSA].)
Options
The optional capabilities supported by the router, as documented
in Appendix A.2.
The following fields are used to describe each router interface. The
Type field indicates the kind of interface being described. It may
be an interface to a transit network, a point-to-point connection to
another router, or a virtual link. The values of all the other
fields describing a router interface depend on the interface's Type
field.
Type
The kind of interface being described. One of the following:
Type Description
---------------------------------------------------
1 Point-to-point connection to another router
2 Connection to a transit network
3 Reserved
4 Virtual link
Router Link Types
Coltun, et al. Standards Track [Page 75]
^L
RFC 5340 OSPF for IPv6 July 2008
Metric
The cost of using this router interface for outbound traffic.
Interface ID
The Interface ID assigned to the interface being described. See
Section 4.1.2 and Appendix C.3.
Neighbor Interface ID
The Interface ID the neighbor router has associated with the link,
as advertised in the neighbor's Hello packets. For transit (type
2) links, the link's Designated Router is the neighbor described.
For other link types, the sole adjacent neighbor is described.
Neighbor Router ID
The Router ID the of the neighbor router. For transit (type 2)
links, the link's Designated Router is the neighbor described.
For other link types, the sole adjacent neighbor is described.
For transit (Type 2) links, the combination of Neighbor Interface ID
and Neighbor Router ID allows the network-LSA for the attached link
to be found in the link-state database.
A.4.4. Network-LSAs
Network-LSAs have LS type equal to 0x2002. A network-LSA is
originated for each broadcast and NBMA link in the area that includes
two or more adjacent routers. The network-LSA is originated by the
link's Designated Router. The LSA describes all routers attached to
the link including the Designated Router itself. The LSA's Link
State ID field is set to the Interface ID that the Designated Router
has been advertising in Hello packets on the link.
The distance from the network to all attached routers is zero. This
is why the Metric fields need not be specified in the network-LSA.
For details concerning the construction of network-LSAs, see
Section 4.4.3.3.
Coltun, et al. Standards Track [Page 76]
^L
RFC 5340 OSPF for IPv6 July 2008
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Age |0|0|1| 2 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Link State ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Advertising Router |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Checksum | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 0 | Options |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Attached Router |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... |
Network-LSA Format
Attached Router
The Router IDs of each of the routers attached to the link.
Actually, only those routers that are fully adjacent to the
Designated Router are listed. The Designated Router includes
itself in this list. The number of routers included can be
deduced from the LSA header's length field.
A.4.5. Inter-Area-Prefix-LSAs
Inter-area-prefix-LSAs have LS type equal to 0x2003. These LSAs are
the IPv6 equivalent of OSPF for IPv4's type 3 summary-LSAs (see
Section 12.4.3 of [OSPFV2]). Originated by area border routers, they
describe routes to IPv6 address prefixes that belong to other areas.
A separate inter-area-prefix-LSA is originated for each IPv6 address
prefix. For details concerning the construction of inter-area-
prefix-LSAs, see Section 4.4.3.4.
For stub areas, inter-area-prefix-LSAs can also be used to describe a
(per-area) default route. Default summary routes are used in stub
areas instead of flooding a complete set of external routes. When
describing a default summary route, the inter-area-prefix-LSA's
PrefixLength is set to 0.
Coltun, et al. Standards Track [Page 77]
^L
RFC 5340 OSPF for IPv6 July 2008
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Age |0|0|1| 3 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Link State ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Advertising Router |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Checksum | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 0 | Metric |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PrefixLength | PrefixOptions | 0 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Address Prefix |
| ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Inter-Area-Prefix-LSA Format
Metric
The cost of this route. Expressed in the same units as the
interface costs in router-LSAs. When the inter-area-prefix-LSA is
describing a route to a range of addresses (see Appendix C.2), the
cost is set to the maximum cost to any reachable component of the
address range.
PrefixLength, PrefixOptions, and Address Prefix
Representation of the IPv6 address prefix, as described in
Appendix A.4.1.
A.4.6. Inter-Area-Router-LSAs
Inter-area-router-LSAs have LS type equal to 0x2004. These LSAs are
the IPv6 equivalent of OSPF for IPv4's type 4 summary-LSAs (see
Section 12.4.3 of [OSPFV2]). Originated by area border routers, they
describe routes to AS boundary routers in other areas. To see why it
is necessary to advertise the location of each ASBR, consult Section
16.4 in [OSPFV2]. Each LSA describes a route to a single router.
For details concerning the construction of inter-area-router-LSAs,
see Section 4.4.3.5.
Coltun, et al. Standards Track [Page 78]
^L
RFC 5340 OSPF for IPv6 July 2008
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Age |0|0|1| 4 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Link State ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Advertising Router |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Checksum | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 0 | Options |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 0 | Metric |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Destination Router ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Inter-Area-Router-LSA Format
Options
The optional capabilities supported by the router, as documented
in Appendix A.2.
Metric
The cost of this route. Expressed in the same units as the
interface costs in router-LSAs.
Destination Router ID
The Router ID of the router being described by the LSA.
A.4.7. AS-External-LSAs
AS-external-LSAs have LS type equal to 0x4005. These LSAs are
originated by AS boundary routers and describe destinations external
to the AS. Each LSA describes a route to a single IPv6 address
prefix. For details concerning the construction of AS-external-LSAs,
see Section 4.4.3.6.
AS-external-LSAs can be used to describe a default route. Default
routes are used when no specific route exists to the destination.
When describing a default route, the AS-external-LSA's PrefixLength
is set to 0.
Coltun, et al. Standards Track [Page 79]
^L
RFC 5340 OSPF for IPv6 July 2008
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Age |0|1|0| 5 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Link State ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Advertising Router |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Checksum | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |E|F|T| Metric |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PrefixLength | PrefixOptions | Referenced LS Type |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Address Prefix |
| ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+- -+
| |
+- Forwarding Address (Optional) -+
| |
+- -+
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| External Route Tag (Optional) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Referenced Link State ID (Optional) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
AS-external-LSA Format
bit E
The type of external metric. If bit E is set, the metric
specified is a Type 2 external metric. This means the metric is
considered larger than any intra-AS path. If bit E is zero, the
specified metric is a Type 1 external metric. This means that it
is expressed in the same units as other LSAs (i.e., the same units
as the interface costs in router-LSAs).
bit F
If set, a Forwarding Address has been included in the LSA.
bit T
If set, an External Route Tag has been included in the LSA.
Coltun, et al. Standards Track [Page 80]
^L
RFC 5340 OSPF for IPv6 July 2008
Metric
The cost of this route. Interpretation depends on the external
type indication (bit E above).
PrefixLength, PrefixOptions, and Address Prefix
Representation of the IPv6 address prefix, as described in
Appendix A.4.1.
Referenced LS Type
If non-zero, an LSA with this LS type is to be associated with
this LSA (see Referenced Link State ID below).
Forwarding address
A fully qualified IPv6 address (128 bits). Included in the LSA if
and only if bit F has been set. If included, data traffic for the
advertised destination will be forwarded to this address. It MUST
NOT be set to the IPv6 Unspecified Address (0:0:0:0:0:0:0:0) or an
IPv6 Link-Local Address (Prefix FE80/10). While OSPFv3 routes are
normally installed with link-local addresses, an OSPFv3
implementation advertising a forwarding address MUST advertise a
global IPv6 address. This global IPv6 address may be the next-hop
gateway for an external prefix or may be obtained through some
other method (e.g., configuration).
External Route Tag
A 32-bit field that MAY be used to communicate additional
information between AS boundary routers. Included in the LSA if
and only if bit T has been set.
Referenced Link State ID
Included if and only if Reference LS Type is non-zero. If
included, additional information concerning the advertised
external route can be found in the LSA having LS type equal to
"Referenced LS Type", Link State ID equal to "Referenced Link
State ID", and Advertising Router the same as that specified in
the AS-external-LSA's link-state header. This additional
information is not used by the OSPF protocol itself. It may be
used to communicate information between AS boundary routers. The
precise nature of such information is outside the scope of this
specification.
All, none, or some of the fields labeled Forwarding address, External
Route Tag, and Referenced Link State ID MAY be present in the AS-
external-LSA (as indicated by the setting of bit F, bit T, and
Referenced LS Type respectively). When present, Forwarding Address
always comes first, External Route Tag next, and the Referenced Link
State ID last.
Coltun, et al. Standards Track [Page 81]
^L
RFC 5340 OSPF for IPv6 July 2008
A.4.8. NSSA-LSAs
NSSA-LSAs have LS type equal to 0x2007. These LSAs are originated by
AS boundary routers within an NSSA and describe destinations external
to the AS that may or may not be propagated outside the NSSA (refer
to [NSSA]). Other than the LS type, their format is exactly the same
as AS-external LSAs as described in Appendix A.4.7.
A global IPv6 address MUST be selected as forwarding address for
NSSA-LSAs that are to be propagated by NSSA area border routers. The
selection should proceed the same as OSPFv2 NSSA support [NSSA] with
additional checking to ensure IPv6 link-local address are not
selected.
A.4.9. Link-LSAs
Link-LSAs have LS type equal to 0x0008. A router originates a
separate link-LSA for each attached physical link. These LSAs have
link-local flooding scope; they are never flooded beyond the
associated link. Link-LSAs have three purposes:
1. They provide the router's link-local address to all other routers
attached to the link.
2. They inform other routers attached to the link of a list of IPv6
prefixes to associate with the link.
3. They allow the router to advertise a collection of Options bits
in the network-LSA originated by the Designated Router on a
broadcast or NBMA link.
For details concerning the construction of links-LSAs, see
Section 4.4.3.8.
A link-LSA's Link State ID is set equal to the originating router's
Interface ID on the link.
Coltun, et al. Standards Track [Page 82]
^L
RFC 5340 OSPF for IPv6 July 2008
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Age |0|0|0| 8 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Link State ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Advertising Router |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Checksum | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Rtr Priority | Options |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+- -+
| |
+- Link-local Interface Address -+
| |
+- -+
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| # prefixes |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PrefixLength | PrefixOptions | 0 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Address Prefix |
| ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PrefixLength | PrefixOptions | 0 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Address Prefix |
| ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Link-LSA Format
Rtr Priority
The Router Priority of the interface attaching the originating
router to the link.
Options
The set of Options bits that the router would like set in the
network-LSA that will be originated by the Designated Router on
broadcast or NBMA links.
Coltun, et al. Standards Track [Page 83]
^L
RFC 5340 OSPF for IPv6 July 2008
Link-local Interface Address
The originating router's link-local interface address on the link.
# prefixes
The number of IPv6 address prefixes contained in the LSA.
The rest of the link-LSA contains a list of IPv6 prefixes to be
associated with the link.
PrefixLength, PrefixOptions, and Address Prefix
Representation of an IPv6 address prefix, as described in
Appendix A.4.1.
A.4.10. Intra-Area-Prefix-LSAs
Intra-area-prefix-LSAs have LS type equal to 0x2009. A router uses
intra-area-prefix-LSAs to advertise one or more IPv6 address prefixes
that are associated with a local router address, an attached stub
network segment, or an attached transit network segment. In IPv4,
the first two were accomplished via the router's router-LSA and the
last via a network-LSA. In OSPF for IPv6, all addressing information
that was advertised in router-LSAs and network-LSAs has been removed
and is now advertised in intra-area-prefix-LSAs. For details
concerning the construction of intra-area-prefix-LSA, see
Section 4.4.3.9.
A router can originate multiple intra-area-prefix-LSAs for each
router or transit network. Each such LSA is distinguished by its
unique Link State ID.
Coltun, et al. Standards Track [Page 84]
^L
RFC 5340 OSPF for IPv6 July 2008
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Age |0|0|1| 9 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Link State ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Advertising Router |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| LS Checksum | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| # Prefixes | Referenced LS Type |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Referenced Link State ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Referenced Advertising Router |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PrefixLength | PrefixOptions | Metric |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Address Prefix |
| ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| PrefixLength | PrefixOptions | Metric |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Address Prefix |
| ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Intra-Area-Prefix LSA Format
# prefixes
The number of IPv6 address prefixes contained in the LSA.
Referenced LS Type, Referenced Link State ID, and Referenced
Advertising Router
Identifies the router-LSA or network-LSA with which the IPv6
address prefixes should be associated. If Referenced LS Type is
0x2001, the prefixes are associated with a router-LSA, Referenced
Link State ID should be 0, and Referenced Advertising Router
should be the originating router's Router ID. If Referenced LS
Type is 0x2002, the prefixes are associated with a network-LSA,
Referenced Link State ID should be the Interface ID of the link's
Designated Router, and Referenced Advertising Router should be the
Designated Router's Router ID.
Coltun, et al. Standards Track [Page 85]
^L
RFC 5340 OSPF for IPv6 July 2008
The rest of the intra-area-prefix-LSA contains a list of IPv6
prefixes to be associated with the router or transit link, as well as
their associated costs.
PrefixLength, PrefixOptions, and Address Prefix
Representation of an IPv6 address prefix, as described in
Appendix A.4.1.
Metric
The cost of this prefix. Expressed in the same units as the
interface costs in router-LSAs.
Appendix B. Architectural Constants
Architectural constants for the OSPF protocol are defined in Appendix
B of [OSPFV2]. The only difference for OSPF for IPv6 is that
DefaultDestination is encoded as a prefix with length 0 (see
Appendix A.4.1).
Appendix C. Configurable Constants
The OSPF protocol has quite a few configurable parameters. These
parameters are listed below. They are grouped into general
functional categories (area parameters, interface parameters, etc.).
Sample values are given for some of the parameters.
Some parameter settings need to be consistent among groups of
routers. For example, all routers in an area must agree on that
area's parameters. Similarly, all routers attached to a network must
agree on that network's HelloInterval and RouterDeadInterval.
Some parameters may be determined by router algorithms outside of
this specification (e.g., the address of a host connected to the
router via a SLIP line). From OSPF's point of view, these items are
still configurable.
C.1. Global Parameters
In general, a separate copy of the OSPF protocol is run for each
area. Because of this, most configuration parameters are defined on
a per-area basis. The few global configuration parameters are listed
below.
Coltun, et al. Standards Track [Page 86]
^L
RFC 5340 OSPF for IPv6 July 2008
Router ID
This is a 32-bit number that uniquely identifies the router in the
Autonomous System. If a router's OSPF Router ID is changed, the
router's OSPF software should be restarted before the new Router
ID takes effect. Before restarting due to a Router ID change, the
router should flush its self-originated LSAs from the routing
domain (see Section 14.1 of [OSPFV2]). Otherwise, they will
persist for up to MaxAge seconds.
Because the size of the Router ID is smaller than an IPv6 address, it
cannot be set to one of the router's IPv6 addresses (as is commonly
done for IPv4). Possible Router ID assignment procedures for IPv6
include: a) assign the IPv6 Router ID as one of the router's IPv4
addresses or b) assign IPv6 Router IDs through some local
administrative procedure (similar to procedures used by manufacturers
to assign product serial numbers).
The Router ID of 0.0.0.0 is reserved and SHOULD NOT be used.
C.2. Area Parameters
All routers belonging to an area must agree on that area's
configuration. Disagreements between two routers will lead to an
inability for adjacencies to form between them, with a resulting
hindrance to the flow of both routing protocol information and data
traffic. The following items must be configured for an area:
Area ID
This is a 32-bit number that identifies the area. The Area ID of
0 is reserved for the backbone.
List of address ranges
Address ranges control the advertisement of routes across area
boundaries. Each address range consists of the following items:
[IPv6 prefix, prefix length]
Describes the collection of IPv6 addresses contained in the
address range.
Status
Set to either Advertise or DoNotAdvertise. Routing information
is condensed at area boundaries. External to the area, at most
a single route is advertised (via a inter-area-prefix-LSA) for
each address range. The route is advertised if and only if the
address range's Status is set to Advertise. Unadvertised
ranges allow the existence of certain networks to be
intentionally hidden from other areas. Status is set to
Advertise by default.
Coltun, et al. Standards Track [Page 87]
^L
RFC 5340 OSPF for IPv6 July 2008
ExternalRoutingCapability
Whether AS-external-LSAs will be flooded into/throughout the area.
If AS-external-LSAs are excluded from the area, the area is called
a stub area or NSSA. Internal to stub areas, routing to external
destinations will be based solely on a default inter-area route.
The backbone cannot be configured as a stub or NSSA area. Also,
virtual links cannot be configured through stub or NSSA areas.
For more information, see Section 3.6 of [OSPFV2] and [NSSA].
StubDefaultCost
If the area has been configured as a stub area, and the router
itself is an area border router, then the StubDefaultCost
indicates the cost of the default inter-area-prefix-LSA that the
router should advertise into the area. See Section 12.4.3.1 of
[OSPFV2] for more information.
NSSATranslatorRole and TranslatorStabilityInterval
These area parameters are described in Appendix D of [NSSA].
Additionally, an NSSA Area Border Router (ABR) is also required to
allow configuration of whether or not an NSSA default route is
advertised in an NSSA-LSA. If advertised, its metric and metric
type are configurable. These requirements are also described in
Appendix D of [NSSA].
ImportSummaries
When set to enabled, prefixes external to the area are imported
into the area via the advertisement of inter-area-prefix-LSAs.
When set to disabled, inter-area routes are not imported into the
area. The default setting is enabled. This parameter is only
valid for stub or NSSA areas.
C.3. Router Interface Parameters
Some of the configurable router interface parameters (such as Area
ID, HelloInterval, and RouterDeadInterval) actually imply properties
of the attached links. Therefore, these parameters must be
consistent across all the routers attached to that link. The
parameters that must be configured for a router interface are:
IPv6 link-local address
The IPv6 link-local address associated with this interface. May
be learned through auto-configuration.
Coltun, et al. Standards Track [Page 88]
^L
RFC 5340 OSPF for IPv6 July 2008
Area ID
The OSPF area to which the attached link belongs.
Instance ID
The OSPF protocol instance associated with this OSPF interface.
Defaults to 0.
Interface ID
32-bit number uniquely identifying this interface among the
collection of this router's interfaces. For example, in some
implementations it may be possible to use the MIB-II IfIndex
([INTFMIB]).
IPv6 prefixes
The list of IPv6 prefixes to associate with the link. These will
be advertised in intra-area-prefix-LSAs.
Interface output cost(s)
The cost of sending a packet on the interface, expressed in the
link-state metric. This is advertised as the link cost for this
interface in the router's router-LSA. The interface output cost
MUST always be greater than 0.
RxmtInterval
The number of seconds between LSA retransmissions for adjacencies
belonging to this interface. Also used when retransmitting
Database Description and Link State Request packets. This should
be well over the expected round-trip delay between any two routers
on the attached link. The setting of this value should be
conservative or needless retransmissions will result. Sample
value for a local area network: 5 seconds.
InfTransDelay
The estimated number of seconds it takes to transmit a Link State
Update packet over this interface. LSAs contained in the update
packet must have their age incremented by this amount before
transmission. This value should take into account the
transmission and propagation delays of the interface. It MUST be
greater than 0. Sample value for a local area network: 1 second.
Router Priority
An 8-bit unsigned integer. When two routers attached to a network
both attempt to become the Designated Router, the one with the
highest Router Priority takes precedence. If there is still a
tie, the router with the highest Router ID takes precedence. A
router whose Router Priority is set to 0 is ineligible to become
the Designated Router on the attached link. Router Priority is
only configured for interfaces to broadcast and NBMA networks.
Coltun, et al. Standards Track [Page 89]
^L
RFC 5340 OSPF for IPv6 July 2008
HelloInterval
The length of time, in seconds, between Hello packets that the
router sends on the interface. This value is advertised in the
router's Hello packets. It MUST be the same for all routers
attached to a common link. The smaller the HelloInterval, the
faster topological changes will be detected. However, more OSPF
routing protocol traffic will ensue. Sample value for a X.25 PDN:
30 seconds. Sample value for a local area network (LAN): 10
seconds.
RouterDeadInterval
After ceasing to hear a router's Hello packets, the number of
seconds before its neighbors declare the router down. This is
also advertised in the router's Hello packets in their
RouterDeadInterval field. This should be some multiple of the
HelloInterval (e.g., 4). This value again MUST be the same for
all routers attached to a common link.
LinkLSASuppression
Indicates whether or not origination of a link-LSA is suppressed.
If set to "enabled" and the interface type is not broadcast or
NBMA, the router will not originate a link-LSA for the link. This
implies that other routers on the link will ascertain the router's
next-hop address using a mechanism other than the link-LSA (see
Section 4.8.2). The default value is "disabled" for interface
types described in this specification. It is implicitly
"disabled" if the interface type is broadcast or NBMA. Future
interface types MAY specify a different default.
C.4. Virtual Link Parameters
Virtual links are used to restore/increase connectivity of the
backbone. Virtual links may be configured between any pair of area
border routers having interfaces to a common (non-backbone) area.
The virtual link appears as a point-to-point link with no global IPv6
addresses in the graph for the backbone. The virtual link must be
configured in both of the area border routers.
A virtual link appears in router-LSAs (for the backbone) as if it
were a separate router interface to the backbone. As such, it has
most of the parameters associated with a router interface (see
Appendix C.3). Virtual links do not have link-local addresses, but
instead use one of the router's global-scope IPv6 addresses as the IP
source in OSPF protocol packets it sends on the virtual link. Router
Priority is not used on virtual links. Interface output cost is not
configured on virtual links, but is dynamically set to be the cost of
the transit area intra-area path between the two endpoint routers.
The parameter RxmtInterval may be configured and should be well over
Coltun, et al. Standards Track [Page 90]
^L
RFC 5340 OSPF for IPv6 July 2008
the expected round-trip delay between the two routers. This may be
hard to estimate for a virtual link; it is better to err on the side
of making it too long.
A virtual link is defined by the following two configurable
parameters: the Router ID of the virtual link's other endpoint and
the (non-backbone) area that the virtual link traverses (referred to
as the virtual link's transit area). Virtual links cannot be
configured through stub or NSSA areas. Additionally, an Instance ID
may be configured for virtual links from different protocol instances
in order to utilize the same transit area (without requiring
different Router IDs for demultiplexing).
C.5. NBMA Network Parameters
OSPF treats an NBMA network much like it treats a broadcast network.
Since there may be many routers attached to the network, a Designated
Router is selected for the network. This Designated Router then
originates a network-LSA listing all routers attached to the NBMA
network.
However, due to the lack of broadcast capabilities, it may be
necessary to use configuration parameters in the Designated Router
selection. These parameters will only need to be configured in those
routers that are themselves eligible to become the Designated Router
(i.e., those routers whose Router Priority for the network is non-
zero), and then only if no automatic procedure for discovering
neighbors exists:
List of all other attached routers
The list of all other routers attached to the NBMA network. Each
router is configured with its Router ID and IPv6 link-local
address on the network. Also, for each router listed, that
router's eligibility to become the Designated Router must be
defined. When an interface to an NBMA network first comes up, the
router only sends Hello packets to those neighbors eligible to
become the Designated Router until such time that a Designated
Router is elected.
PollInterval
If a neighboring router has become inactive (Hello packets have
not been seen for RouterDeadInterval seconds), it may still be
necessary to send Hello packets to the dead neighbor. These Hello
packets will be sent at the reduced rate PollInterval, which
should be much larger than HelloInterval. Sample value for a PDN
X.25 network: 2 minutes.
Coltun, et al. Standards Track [Page 91]
^L
RFC 5340 OSPF for IPv6 July 2008
C.6. Point-to-Multipoint Network Parameters
On point-to-multipoint networks, it may be necessary to configure the
set of neighbors that are directly reachable over the point-to-
multipoint network. Each neighbor is configured with its Router ID
and IPv6 link-local address on the network. Designated Routers are
not elected on point-to-multipoint networks, so the Designated Router
eligibility of configured neighbors is not defined.
C.7. Host Route Parameters
Host prefixes are advertised in intra-area-prefix-LSAs. They
indicate either local router addresses, router interfaces to point-
to-point networks, looped router interfaces, or IPv6 hosts that are
directly connected to the router (e.g., via a PPP connection). For
each host directly connected to the router, the following items must
be configured:
Host IPv6 prefix
An IPv6 prefix belonging to the directly connected host. This
must not be a valid IPv6 global prefix.
Cost of link to host
The cost of sending a packet to the host, in terms of the link-
state metric. However, since the host probably has only a single
connection to the Internet, the actual configured cost(s) in many
cases is unimportant (i.e., will have no effect on routing).
Area ID
The OSPF area to which the host's prefix belongs.
Coltun, et al. Standards Track [Page 92]
^L
RFC 5340 OSPF for IPv6 July 2008
Authors' Addresses
Rob Coltun
Acoustra Productions
3204 Brooklawn Terrace
Chevy Chase, MD 20815
USA
Dennis Ferguson
Juniper Networks
1194 N. Mathilda Avenue
Sunnyvale, CA 94089
USA
EMail: dennis@juniper.net
John Moy
Sycamore Networks, Inc
10 Elizabeth Drive
Chelmsford, MA 01824
USA
EMail: jmoy@sycamorenet.com
Acee Lindem (editor)
Redback Networks
102 Carric Bend Court
Cary, NC 27519
USA
EMail: acee@redback.com
Coltun, et al. Standards Track [Page 93]
^L
RFC 5340 OSPF for IPv6 July 2008
Full Copyright Statement
Copyright (C) The IETF Trust (2008).
This document is subject to the rights, licenses and restrictions
contained in BCP 78, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND
THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF
THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in BCP 78 and BCP 79.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
http://www.ietf.org/ipr.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at
ietf-ipr@ietf.org.
Coltun, et al. Standards Track [Page 94]
^L
|