File: rfc1786.txt

package info (click to toggle)
doc-rfc 20120225-2
  • links: PTS, VCS
  • area: non-free
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 461,380 kB
  • ctags: 166
  • sloc: xml: 204,780; perl: 240; sh: 59; makefile: 10
file content (4651 lines) | stat: -rw-r--r-- 133,643 bytes parent folder | download | duplicates (6)
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






Network Working Group                                           T. Bates
Request for Comments: 1786            MCI Telecommunications Corporation
Category: Informational                                        E. Gerich
                                                             Merit, Inc.
                                                            L. Joncheray
                                                             Merit, Inc.
                                                          J-M. Jouanigot
                                                                    CERN
                                                           D. Karrenberg
                                                                RIPE NCC
                                                             M. Terpstra
                                                      Bay Networks, Inc.
                                                                   J. Yu
                                                             Merit, Inc.
                                                              March 1995


                 Representation of IP Routing Policies
                         in a Routing Registry
                              (ripe-81++)

Status of this Memo

   This memo provides information for the Internet community. This memo
   does not specify an Internet standard of any kind. Distribution of
   this memo is unlimited.

Abstract

   This document was originally published as a RIPE document known as
   ripe-181 but is also being published as an Informational RFC to reach
   a larger audience than its original scope. It has received community
   wide interest and acknowledgment throughout the Internet service
   provider community and will be used as the basic starting point for
   future work on Internet Routing Registries and routing policy
   representation.  It can also be referred to as ripe-81++.  This
   document is an update to the original `ripe-81'[1] proposal for
   representing and storing routing polices within the RIPE database. It
   incorporates several extensions proposed by Merit Inc.[2] and gives
   details of a generalized IP routing policy representation to be used
   by all Internet routing registries. It acts as both tutorial and
   provides details of database objects and attributes that use and make
   up a routing registry.








Bates, et al.                                                   [Page 1]

RFC 1786        Representing IP Routing Policies in a RR      March 1995





                           Table of Contents




   1. Introduction ................................................    3

   2. Organization of this Document ...............................    3

   3.  General Representation of Policy Information ...............    5

   4. The Routing Registry and the RIPE Database ..................   11

   5. The Route Object ............................................   16

   6. The Autonomous System Object ................................   26

   7. AS Macros ...................................................   36

   8. The Community Object ........................................   38

   9. Representation of Routing Policies ..........................   41

   10. Future Extensions ..........................................   50

   11. References .................................................   51

   12. Security Considerations ....................................   52

   13. Authors' Addresses .........................................   53

   Appendix A - Syntax for the "aut-num" object ...................   55

   Appendix B - Syntax for the "community" object .................   68

   Appendix C - Syntax for the "as-macro" object ..................   72

   Appendix D - Syntax for the "route" object .....................   76

   Appendix E - List of reserved words ............................   80

   Appendix F - Motivations for RIPE-81++ .........................   81

   Appendix G - Transition strategy ...............................   83




Bates, et al.                                                   [Page 2]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


1.  Introduction

   This document is a much revised version of the RIPE routing registry
   document known as ripe-81 [1].  Since its inception in February, 1993
   and the establishment of the RIPE routing registry, several additions
   and clarifications have come to light which can be better presented
   in a single updated document rather than separate addenda.

   Some of the text remains the same the as the original ripe-81
   document keeping its tutorial style mixed with details of the RIPE
   database objects relating to routing policy representation.  However
   this document does not repeat the background and historical remarks
   in ripe-81. For these please refer to the original document.  It
   should be noted that whilst this document specifically references the
   RIPE database and the RIPE routing registry one can easily read
   "Regional routing registry" in place of RIPE as this representation
   is certainly general and flexible enough to be used outside of the
   RIPE community incorporating many ideas and features from other
   routing registries in this update.

   This document was originally published as a RIPE document known as
   ripe-181 but is also being published as an Informational RFC to reach
   a larger audience than its original scope. It has received large
   interest and acknowledgment within the Internet service provider
   community and will be used as the basic starting point for future
   work on Internet Routing Registries and routing policy
   representation.  It but can also be referred to as ripe-81++.

   We would like to acknowledge many people for help with this document.
   Specifically, Peter Lothberg who was a co-author of the original
   ripe-81 document for his many ideas as well as Gilles Farrache,
   Harvard Eidnes, Dale Johnson, Kannan Varadhan and Cengiz Alaettinoglu
   who all provided valuable input.  We would also like to thank the
   RIPE routing working group for their review and comment. Finally, we
   like to thank Merit Inc. for many constructive comments and ideas and
   making the routing registry a worldwide Internet service. We would
   also like to acknowledge the funding provided by the PRIDE project
   run in conjunction with the RARE Technical Program, RIPE and the RIPE
   NCC without which this paper would not have been possible.

2.  Organization of this Document

   This document acts as both a basic tutorial for understanding routing
   policy and provides details of objects and attributes used within an
   Internet routing registry to store routing policies. Section 3
   describes general issues about IP routing policies and their
   representation in routing registries. Experienced readers may wish to
   skip this section.  Section 4 provides an overview of the RIPE



Bates, et al.                                                   [Page 3]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   database, its basic concepts, schema and objects which make up the
   database itself.  It highlights the way in which the RIPE database
   splits routing information from allocation information.  Sections 5,
   6, 7 and 8 detail all the objects associated with routing policy
   representation.  Section 9 gives a fairly extensive "walk through" of
   how these objects are used for expressing routing policy and the
   general principles behind their use. Section 10 provides a list of
   references used throughout this document.  Appendix A, B, C and D
   document the formal syntax for the database objects and attributes.
   Appendix F details the main changes from ripe-81 and motivations for
   these changes. Appendix G tackles the issues of transition from
   ripe-81 to ripe-81++.







































Bates, et al.                                                   [Page 4]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


3.  General Representation of Policy Information

   Networks, Network Operators and Autonomous Systems

   Throughout this document an effort is made to be consistent with
   terms so as not to confuse the reader.

   When we talk about "networks" we mean physical networks which have a
   unique classless IP network number: Layer 3 entities. We do not mean
   organizations.

   We call the organizations operating networks "network operators".
   For the sake of the examples we divide network operators into two
   categories: "service providers" and "customers". A "service provider"
   is a network operator who operates a network to provide Internet
   services to different organizations, its "customers".  The
   distinction between service providers and customers is not clear cut.
   A national research networking organization frequently acts as a
   service provider to Universities and other academic organizations,
   but in most cases it buys international connectivity from another
   service provider. A University networking department is a customer of
   the research networking organization but in turn may regard
   University departments as its customers.

   An Autonomous System (AS) is a group of IP networks having a single
   clearly defined routing policy which is run by one or more network
   operators. Inside ASes IP packets are routed using one or more
   Interior Routing Protocols (IGPs). In most cases interior routing
   decisions are based on metrics derived from technical parameters like
   topology, link speeds and load.  The entity we refer to as an AS is
   frequently and more generally called a routing domain with the AS
   just being an implementation vehicle. We have decided to use the term
   AS exclusively because it relates more directly with the database
   objects and routing tools. By using only one term we hope to reduce
   the number of concepts and to avoid confusion. The academically
   inclined reader may forgive us.

   ASes exchange routing information with other ASes using Exterior
   Routing Protocols (EGPs).  Exterior routing decisions are frequently
   based on policy based rules rather than purely on technical
   parameters.  Tools are needed to configure complex policies and to
   communicate those policies between ASes while still ensuring proper
   operation of the Internet as a whole. Some EGPs like BGP-3 [8] and
   BGP-4 [9] provide tools to filter routing information according to
   policy rules and more. None of them provides a mechanism to publish
   or communicate the policies themselves. Yet this is critical for
   operational coordination and fault isolation among network operators
   and thus for the operation of the global Internet as a whole.  This



Bates, et al.                                                   [Page 5]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   document describes a "Routing Registry" providing this functionality.

   Routing Policies

   The exchange of routing information between ASes is subject to
   routing policies. Consider the case of two ASes, X and Y exchanging
   routing information:


                NET1 ......  ASX  <--->  ASY  ....... NET2


   ASX knows how to reach a network called NET1.  It does not matter
   whether NET1 is belonging to ASX or some other AS which exchanges
   routing information with ASX either directly or indirectly; we just
   assume that ASX knows how to direct packets towards NET1. Likewise
   ASY knows how to reach NET2.

   In order for traffic from NET2 to NET1 to flow between ASX and ASY,
   ASX has to announce NET1 to ASY using an external routing protocol.
   This states that ASX is willing to accept traffic directed to NET1
   from ASY. Policy thus comes into play first in the decision of ASX to
   announce NET1 to ASY.

   In addition ASY has to accept this routing information and use it.
   It is ASY's privilege to either use or disregard the information that
   ASX is willing to accept traffic for NET1. ASY might decide not to
   use this information if it does not want to send traffic to NET1 at
   all or if it considers another route more appropriate to reach NET1.

   So in order for traffic in the direction of NET1 to flow between ASX
   and ASY, ASX must announce it to ASY and ASY must accept it from ASX:



















Bates, et al.                                                   [Page 6]

RFC 1786        Representing IP Routing Policies in a RR      March 1995



                    resulting packet flow towards NET1
                  <<===================================
                                    |
                                    |
                     announce NET1  |  accept NET1
                    --------------> + ------------->
                                    |
                        AS X        |    AS Y
                                    |
                     <------------- + <--------------
                       accept NET2  |  announce NET2
                                    |
                                    |
                   resulting packet flow towards NET2
                   ===================================>>


   Ideally, and seldom practically, the announcement and acceptance
   policies of ASX and ASY are identical.

   In order for traffic towards NET2 to flow, announcement and
   acceptance of NET2 must be in place the other way round. For almost
   all applications connectivity in just one direction is not useful at
   all.

   Usually policies are not configured for each network separately but
   for groups of networks.  In practise these groups are almost always
   defined by the networks forming one or more ASes.



   Routing Policy limitations

   It is important to realize that with current destination based
   forwarding technology routing policies must eventually be expressed
   in these terms. It is relatively easy to formulate reasonable
   policies in very general terms which CANNOT be expressed in terms of
   announcing and accepting networks. With current technology such
   policies are almost always impossible to implement.


   The generic example of a reasonable but un-implementable routing is a
   split of already joined packet streams based on something other than
   destination address.  Once traffic for the same destination network
   passes the same router, or the same AS at our level of abstraction,
   it will take exactly the same route to the destination (disregarding
   special cases like "type of service" routing, load sharing and



Bates, et al.                                                   [Page 7]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   routing instabilities).

   In a concrete example AS Z might be connected to the outside world by
   two links.  AS Z wishes to reserve these links for different kinds of
   traffic, let's call them black and white traffic.  For this purpose
   the management of AS Z keeps two lists of ASes, the black and the
   white list.  Together these lists comprise all ASes in the world
   reachable from AS Z.

                            "W"
                           <--->
                       ...           AS Z .... NET 3
                           <--->
                            "B"

   It is quite possible to implement the policy for traffic originating
   in AS Z: AS Z will only accept announcements for networks in white
   ASes on the white link and will only accept announcements for
   networks in black ASes on the black link.  This causes traffic from
   networks within AS Z towards white ASes to use the white link and
   likewise traffic for black ASes to use the black link.

   Note that this way of implementing things makes it necessary to
   decide on the colour of each new AS which appears before traffic can
   be sent to it from AS Z.  A way around this would be to accept only
   white announcements via the white link and to accept all but white
   announcements on the black link.  That way traffic from new ASes
   would automatically be sent down the black link and AS Z management
   would only need to keep the list of white ASes rather than two lists.

   Now for the unimplementable part of the policy.  This concerns
   traffic towards AS Z.  Consider the following topology:

           B AS ---)                    "W"
           W AS ---)                    --->
           B AS ---)>>  AS A  ---> ...           AS Z .... NET 3
           B AS ---)                    --->
           W AS ---)                    "B"

   As seen from AS Z there are both black and white ASes "behind" AS A.
   Since ASes can make routing decisions based on destination only, AS A
   and all ASes between AS A and the two links connecting AS Z can only
   make the same decision for traffic directed at a network in AS Z, say
   NET 3.  This means that traffic from both black and white ASes
   towards NET 3 will follow the same route once it passes through AS A.
   This will either be the black or the white route depending on the
   routing policies of AS A and all ASes between it and AS Z.




Bates, et al.                                                   [Page 8]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   The important thing to note is that unless routing and forwarding
   decisions can be made based on both source and destination addresses,
   policies like the "black and white" example cannot be implemented in
   general because "once joined means joined forever".


   Access Policies

   Access policies contrary to routing policies are not necessarily
   defined in terms of ASes. The very simplest type of access policy is
   to block packets from a specific network S from being forwarded to
   another network D. A common example is when some inappropriate use of
   resources on network D has been made from network S and the problem
   has not been resolved yet. Other examples of access policies might be
   resources only accessible to networks belonging to a particular
   disciplinary group or community of interest.  While most of these
   policies are better implemented at the host or application level,
   network level access policies do exist and are a source of
   connectivity problems which are sometimes hard to diagnose. Therefore
   they should also be documented in the routing registry according to
   similar requirements as outlined above.



   Routing vs. Allocation information

   The RIPE database contains both routing registry and address space
   allocation registry information. In the past the database schema
   combined this information. Because RIPE was tasked with running both
   an allocation and routing registry it seemed natural to initially
   combine these functions.  However, experience has shown that a clear
   separation of routing information from allocation is desirable. Often
   the maintainer of the routing information is not the same as the
   maintainer of the allocation information.  Moreover, in other parts
   of the world there are different registries for each kind of
   information.

   Whilst the actual routing policy objects will be introduced in the
   next section it is worthy of note that a transition from the current
   objects will be required. Appendix G details the basic steps of such
   a transition.

   This split in information represents a significant change in the
   representational model of the RIPE database. Appendix F expands on
   the reasons for this a little more.






Bates, et al.                                                   [Page 9]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   Tools

   The network operators will need a series of tools for policy routing.
   Some tools are already available to perform some of the tasks. Most
   notably, the PRIDE tools [3] from the PRIDE project started in
   September 1993 as well as others produced by Merit Inc [4] and CERN
   [5].

   These tools will enable them to use the routing policy stored in the
   RIPE routing registry to perform such tasks as check actual routing
   against policies defined, ensure consistency of policies set by
   different operators, and simulate the effects of policy changes.

   Work continues on producing more useful tools to service the Internet
   community.




































Bates, et al.                                                  [Page 10]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


4.  The Routing Registry and the RIPE Database

   One of the activities of RIPE is to maintain a  database  of European
   IP networks, DNS domains and their contact persons along with various
   other kinds of network management information. The database content
   is public and can be queried using the whois protocol as well as
   retrieved as a whole.  This supports NICs/NOCs all over Europe  and
   beyond  to  perform their respective tasks.

   The RIPE database combines both allocation registry and routing
   registry functions.  The RIPE allocation registry contains data about
   address space allocated to specific enterprises and/or delegated to
   local registries as well as data about the domain name space. The
   allocation registry is described in separate documents [6,7] and
   outside the scope of this document.


   Database Objects

   Each object in the database describes a single entity in the real
   world.  This  basic  principle  means that information about  that
   entity  should  only  be  represented  in   the corresponding
   database  object and not be repeated in other objects.  The whois
   service can automatically display referenced objects where
   appropriate.

   The types of objects stored in the RIPE database are summarized in
   the table below:


   R   Object      Describes                        References
   ____________________________________________________________________

   B   person      contact persons

   A   inetnum     IP address space                 person
   A   domain      DNS domain                       person

   R   aut-num     autonomous system                person
                                                    (aut-num,community)
   R   as-macro    a group of autonomous systems    person, aut-num
   R   community   community                        person
   R   route       a route being announced          aut-num, community

   R   clns        CLNS address space and routing   person


   The first column indicates whether the object is part of the
   allocation registry (A), the routing registry (R) or both (B).  The


Bates, et al.                                                  [Page 11]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   last column indicates the types of objects referenced by the
   particular type of object.  It can be seen that almost all objects
   reference contact persons.

   Objects are described by attributes  value  pairs,  one  per line.
   Objects  are  separated by empty lines. An attribute that consists of
   multiple lines should  have  the  attribute name  repeated on
   consecutive lines.  The information stored about network 192.87.45.0
   consists  of  three  objects,  one inetnum object and two person
   objects and looks like this:









































Bates, et al.                                                  [Page 12]

RFC 1786        Representing IP Routing Policies in a RR      March 1995



   inetnum:   192.87.45.0
   netname:   RIPE-NCC
   descr:     RIPE Network Coordination Centre
   descr:     Amsterdam, Netherlands
   country:   NL
   admin-c:   Daniel Karrenberg
   tech-c:    Marten Terpstra
   rev-srv:   ns.ripe.net
   rev-srv:   ns.eu.net
   notify:    ops@ripe.net
   changed:   tony@ripe.net 940110
   source:    RIPE

   person:    Daniel Karrenberg
   address:   RIPE Network Coordination Centre (NCC)
   address:   Kruislaan 409
   address:   NL-1098 SJ Amsterdam
   address:   Netherlands
   phone:     +31 20 592 5065
   fax-no:    +31 20 592 5090
   e-mail:    dfk@ripe.net
   nic-hdl:   DK58
   changed:   ripe-dbm@ripe.net 920826
   source:    RIPE

   person:    Marten Terpstra
   address:   RIPE Network Coordination Centre (NCC)
   address:   PRIDE Project
   address:   Kruislaan 409
   address:   NL-1098 SJ Amsterdam
   address:   Netherlands
   phone:     +31 20 592 5064
   fax-no:    +31 20 592 5090
   e-mail:    Marten.Terpstra@ripe.net
   nic-hdl:   MT2
   notify:    marten@ripe.net
   changed:   marten@ripe.net 931230
   source:    RIPE



   Objects are stored and retrieved in this tag/value format.  The RIPE
   NCC does not provide differently formatted reports because any
   desired format can easily be produced from this generic one.






Bates, et al.                                                  [Page 13]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   Routing Registry Objects

   The main objects comprising the routing registry are "aut-num" and
   "route", describing an autonomous system and a route respectively. It
   should be noted that routes not described in the routing registry
   should never be routed in the Internet itself.

   The autonomous system (aut-num) object provides contact information
   for the AS and describes the routing policy of that AS.  The routing
   policy is described by enumerating all neighboring ASes with which
   routing information is exchanged.  For each neighbor the routing
   policy is described in terms of exactly what is being sent
   (announced) and allowed in (accepted).  It is important to note that
   this is exactly the part of the global policy over which an AS has
   direct control. Thus each aut-num object describes what can indeed be
   implemented and enforced locally by the AS concerned.  Combined
   together all the aut-num objects provide the global routing graph and
   permit to deduce the exact routing policy between any two ASes.

   While the aut-num objects describe how routing information is
   propagated, the route object describes a single route injected into
   the external routing mesh. The route object references the AS
   injecting (originating) the route and thereby indirectly provides
   contact information for the originating AS. This reference also
   provides the primary way of grouping routes into larger collections.
   This is necessary because describing routing policy on the level of
   single routes would be awkward to impractical given the number of
   routes in the Internet which is about 20,000 at the time of this
   writing.  Thus routing policy is most often defined for groups of
   routes by originating AS.  This method of grouping is well supported
   by current exterior routing protocols.  The route object also
   references community objects described below to provide another
   method of grouping routes.  Modification of aut-num object itself and
   the referencing by route objects is strictly protected to provide
   network operators control over the routing policy description and the
   routes originated by their ASes.

   Sometimes even keeping track of groups of routes at the AS level is
   cumbersome. Consider the case of policies described at the transit
   provider level which apply transitively to all customers of the
   transit provider. Therefore another level of grouping is provided by
   the as-macro object which provides groups of ASes which can be
   referenced in routing policies just like single ASes. Membership of
   as-macro groups is also strictly controlled.

   Sometimes there is a need to group routes on different criteria than
   ASes for purposes like statistics or local access policies. This is
   provided by the community object.  A community object is much like an



Bates, et al.                                                  [Page 14]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   AS but without a routing policy.  It just describes a group of
   routes. This is not supported at all by exterior routing protocols
   and depending on aggregation of routes may not be generally usable to
   define routing policies.  It is suitable for local policies and non-
   routing related purposes.

   These routing related objects will be described in detail in the
   sections below.











































Bates, et al.                                                  [Page 15]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


5.  The Route Object

   As stated in the previous chapter routing and address space
   allocation information are now clearly separated.  This is performed
   with the introduction of the route object. The route object will
   contain all the information regarding a routing announcement.

   All routing related attributes are removed from the inetnum object.
   Some old attributes are obsoleted: connect, routpr-l, bdryg-l, nsf-
   in, nsf-out, gateway).  The currently useful routing attributes are
   moved to the route object: aut-sys becomes origin, ias-int will be
   encoded as part of the inet-rtr [15] object and comm-list simply
   moves.  See [6] for detail of the "inetnum" object definition.


   The information in the old inetnum object

   inetnum:   192.87.45.0
   netname:   RIPE-NCC
   descr:     RIPE Network Coordination Centre
   descr:     Amsterdam, Netherlands
   country:   NL
   admin-c:   Daniel Karrenberg
   tech-c:    Marten Terpstra
   connect:   RIPE NSF WCW
   aut-sys:   AS3333
   comm-list: SURFNET
   ias-int:   192.87.45.80  AS1104
   ias-int:   192.87.45.6   AS2122
   ias-int:   192.87.45.254 AS2600
   rev-srv:   ns.ripe.net
   rev-srv:   ns.eu.net
   notify:    ops@ripe.net
   changed:   tony@ripe.net 940110
   source:    RIPE


   will be distributed over two objects:













Bates, et al.                                                  [Page 16]

RFC 1786        Representing IP Routing Policies in a RR      March 1995



   inetnum:   192.87.45.0
   netname:   RIPE-NCC
   descr:     RIPE Network Coordination Centre
   descr:     Amsterdam, Netherlands
   country:   NL
   admin-c:   Daniel Karrenberg
   tech-c:    Marten Terpstra
   rev-srv:   ns.ripe.net
   rev-srv:   ns.eu.net
   notify:    ops@ripe.net
   changed:   tony@ripe.net 940110
   source:    RIPE

   route:       192.87.45.0/24
   descr:       RIPE Network Coordination Centre
   origin:      AS3333
   comm-list:   SURFNET
   changed:     dfk@ripe.net 940427
   source:      RIPE



   The route object is used to represent a single route originated into
   the Internet routing mesh.  The actual syntax is given in Appendix D.
   However, there are several important aspects of the attributes worthy
   of note.


   The value of the route attribute will be a classless address.  It
   represents the exact route being injected into the routing mesh.  The
   representation of classless addresses is described in [10].


   The value of the origin attribute will be an AS reference of the form
   AS1234 referring to an aut-num object.  It represents the AS
   injecting this route into the routing mesh.  The "aut-num" object
   (see below) thus referenced provides all the contact information for
   this route.


   Special cases: There can only be a single originating AS in each
   route object.  However in todays Internet sometimes a route is
   injected by more than one AS. This situation is potentially dangerous
   as it can create conflicting routing policies for that route and
   requires coordination between the originating ASes.  In the routing
   registry this is represented by multiple route objects.




Bates, et al.                                                  [Page 17]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   This is a departure from the one route (net), one AS principle of the
   ripe-81 routing registry. The consequences for the different tools
   based in the routing registry will need to be evaluated and possibly
   additional consistency checking of the database is needed.


   The examples below will illustrate the usage of the route object
   further.  Suppose three chunks of address space of 2 different
   enterprises represented by the following inetnum objects:


   Examples


   inetnum:   193.0.1.0
   netname:   ENT-1
   descr:     Enterprise 1
    ...

   inetnum:   193.0.8.0
   netname:   ENT-2
   descr:     Enterprise 2
    ...

   inetnum:   193.0.9.0
   netname:   ENT-2-SPEC
   descr:     Enterprise 2
    ...


   Supposing that the Enterprises have their own AS numbers straight
   application of routing without aggregation would yield:


   route:       193.0.1.0/24
   descr:       Enterprise 1
   origin:      AS1
    ...

   route:       193.0.8.0/24
   descr:       Enterprise 2
   origin:      AS2
    ...

   route:       193.0.9.0/24
   descr:       Enterprise 2
   origin:      AS2
    ...



Bates, et al.                                                  [Page 18]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   NB: This representation can be achieved by straight translation from
   the ripe-81 representation. See Appendix G for more details.


   Homogeneous Aggregation

   The two chunks of address space of Enterprise 2 can be represented by
   one aggregate route turning two route objects into one and
   potentially saving routing table space for one route.


   route:       193.0.8.0/23
   descr:       Enterprise 2
   origin:      AS2
    ...


   Note that AS2 can also decide to originate all routes mentioned so
   far, two 24-bit prefixes and one 23-bit prefix. This case would be
   represented by storing all three route objects in the database. In
   this particular example the additional routes will not add any
   functionality however and only increase the amount of routes
   announced unnecessarily.


   Heterogeneous Aggregation

   Consider the following case however:


   route:       193.0.8.0/24
   descr:       Enterprise 2
   origin:      AS2
    ...

   route:       193.0.9.0/24
   descr:       Enterprise 2 / Special
   origin:      AS2
   comm-list:   SPECIAL
    ...


   Now the prefix 193.0.9.0/24 belongs to community SPECIAL (this
   community may well not be relevant to routing) and the other prefix
   originated by AS2 does not. If AS2 aggregates these prefixes into the
   193.0.8.0/23 prefix, routing policies based on the community value
   SPECIAL cannot be implemented in general, because there is no way to
   distinguish between the special and the not-so-special parts of AS2.



Bates, et al.                                                  [Page 19]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   If another AS has the policy to accept only routes to members of
   community SPECIAL it cannot implement it, because accepting the route
   to 193.0.8.0/23 would also route to 193.0.8.0/24 and not accepting
   this route would lose connectivity to the special part 193.0.9.0/24.
   We call aggregate routes consisting of components belonging to
   different communities or even different ASes "heterogeneous
   aggregates".

   The major problem introduced with heterogeneous aggregates is that
   once the homogeneous more specific routes are withdrawn one cannot
   tell if a more specific part of the heterogeneous route has a
   different policy. However, it can be counter argued that knowing this
   policy is of little use since a routing policy based on the less
   specific heterogeneous aggregate only cannot be implemented. In fact,
   this displays a facet of CIDR itself in that one may actually trade
   off implementing slight policy variations over announcing a larger
   (albeit heterogeneous in terms of policy) aggregate to save routing
   table space.

   However, it is still useful to be able to document these variations
   in policy especially when this homogeneous more specific route is
   just being withdrawn. For this one can use the "withdrawn" attribute.
   The withdrawn attribute can serve to both indicate that a less
   specific aggregate is in fact heterogeneous and also allow the
   general documenting of route withdrawal.

   So there has to be a way for AS2 to document this even if it does not
   originate the route to 193.0.9.0/24 any more.  This can be done with
   the "withdrawn" attribute of the route object.  The aggregate route
   to 193.0.8.0/23 is now be registered as:


   route:       193.0.8.0/23
   descr:       Enterprise 2
   origin:      AS2
    ...


   With the two homogeneous routes marked as withdrawn from the Internet
   routing mesh but still preserving their original routing information.











Bates, et al.                                                  [Page 20]

RFC 1786        Representing IP Routing Policies in a RR      March 1995



   route:       193.0.8.0/24
   descr:       Enterprise 2
   origin:      AS2
   withdrawn:   940701
    ...

   route:       193.0.9.0/24
   descr:       Enterprise 2 / Special
   origin:      AS2
   comm-list:   SPECIAL
   withdrawn:   940701
    ...


   It should be noted that the date value used in the withdrawn
   attribute can only be in the past.


   Proxy Aggregation

   The next step of aggregation are aggregates consisting of more than
   one AS. This generally means one AS is aggregating on behalf of
   another. It is called proxy aggregation. Proxy aggregation should be
   done with great care and always be coordinated with other providers
   announcing the same route.

   Consider the following:


   route:       193.0.0.0/20
   descr:       All routes known by AS1 in a single package
   origin:      AS1
    ...



   route:       193.0.1.0/24
   descr:       Foo
   origin:      AS1
   withdrawn:   940310
    ...









Bates, et al.                                                  [Page 21]

RFC 1786        Representing IP Routing Policies in a RR      March 1995



   route:       193.0.8.0/24
   descr:       Bar
   origin:      AS2
   withdrawn:   940310
    ...



   route:       193.0.9.0/24
   descr:       Bar-2
   origin:      AS2
   withdrawn:   940310
   comm-list:   SPECIAL
    ...





   If AS1 announced no other routes to a single homed neighboring AS,
   that neighbor can in general either take that route or leave it but
   not differentiate between AS1 and AS2.

   Note: If the neighbor was previously configured to accept routes
   originating in AS2 but not in AS1 they lose connectivity to AS2 as
   well.  This means that proxy aggregation has to be done carefully and
   in a well coordinated fashion. The information in the withdrawn route
   object can help to achieve that.


   Aggregates with Holes

   If we assume that the world of our example still consists of only
   three chunks of address space the aggregate above contains what are
   called holes, parts of an aggregate that are not reachable via the
   originator of the route.  From the routing information itself one
   cannot tell whether these are holes and what part of the route falls
   inside one.  The only way to tell is to send a packet there and see
   whether it gets to the destination, or an ICMP message is received
   back, or there is silence.  On the other hand announcing aggregates
   with holes is quite legitimate.  Consider a 16-bit aggregate with
   only one 24-bit prefix unreachable.  The savings in routing table
   size by far outweigh the hole problem.

   For operational reasons however it is very useful to register these
   holes in the routing registry. Consider the case where a remote
   network operator experiences connectivity problems to addresses



Bates, et al.                                                  [Page 22]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   inside an aggregate route.  If the packets are getting to the AS
   announcing the aggregate and there are no more specific routes, the
   normal cause of action is to get in touch with the originating AS of
   the aggregate route and ask them to fix the problem. If the address
   falls into a hole this is futile. Therefore problem diagnosis can be
   sped up and unnecessary calls prevented by registering the holes in
   the routing registry. We do this by using the "hole" attribute. In
   our example the representation would be:


   route:       193.0.0.0/20
   descr:       All routes known by AS1
   origin:      AS1
   hole:        193.0.0.0/24
   hole:        193.0.2.0/23
   hole:        193.0.4.0/22
   hole:        193.0.10.0/23
   hole:        193.0.12.0/22
    ...


   Note: there would also be two routes with the withdrawn attribute as
   displayed above (i.e. 193.0.8.0/24 and 193.0.9.0/24).  It is not
   mandatory to document all holes. It is recommended all holes routed
   by another service provider are documented.

   Multiple Proxy Aggregation

   Finally suppose that AS2 decides to announce the same aggregate, as
   in the previous example, they would add the following route object to
   the registry:


   route:       193.0.0.0/20
   descr:       All routes known by AS2
   origin:      AS2
   hole:        193.0.0.0/24
   hole:        193.0.2.0/23
   hole:        193.0.4.0/22
   hole:        193.0.10.0/23
   hole:        193.0.12.0/22
    ...


   Both AS1 and AS2 will be notified that there already is a route to
   the same prefix in the registry.





Bates, et al.                                                  [Page 23]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   This multiple proxy aggregation is very dangerous to do if the sub-
   aggregates of the route are not the same. It is still dangerous when
   the sub-aggregates are consistent but connectivity to the sub-
   aggregates varies widely between the originators.



   Route object update procedures

   Adding a route object will have to be authorised by the maintainer of
   the originating AS. The actual implementation of this is outside the
   scope of this document.  This guarantees that an AS guardian has full
   control over the registration of the routes it announces [11].


   What is an Inter-AS network ?

   An inter-AS network (Inter-AS IP networks are those networks are
   currently called FIXes, IXFs, DMZs, NAPs, GIX and many other
   acronyms) exists for the purpose of passing traffic and routing
   information between different autonomous systems.  The most simple
   example of an inter-AS network is a point-to-point link, connecting
   exactly two ASes.  Each end of such a link is connected to an
   interface of router belonging to each of the autonomous systems.
   More complex examples are broadcast type networks with multiple
   interfaces connecting multiple ASes with the possibility of more than
   one connection per AS.  Consider the following example of three
   routers 1, 2 and 3 with interfaces a through f  connected by two
   inter-AS networks X and Y:


                              X              Y
                     a1b     ---    c2d     ---    e3f



   Suppose that network X is registered in the routing registry as  part
   of AS1 and net Y as part of AS3. If traffic passes from left to right
   prtraceroute will report the following  sequence  of  interfaces  and
   ASes:

           a in AS1
           c in AS1
           e in AS3


   The traceroute algorithm enumerates only the receiving interfaces on
   the way to the destination.  In the example this leads to the passage



Bates, et al.                                                  [Page 24]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   of AS2 going unnoticed.  This is confusing to the user and will also
   generate exceptions when the path found is checked against the
   routing registry.


   For operational monitoring tools such as prtraceroute it is necessary
   to know which interface on an inter-AS network belongs to which AS.
   If AS information is not known about interfaces on an inter-AS
   network, tools like prtraceroute cannot determine correctly which
   ASes are being traversed.


   All interfaces on inter-AS networks will are described in a separate
   object know as the `inet-rtr' object [15].





































Bates, et al.                                                  [Page 25]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


6.  The Autonomous System Object


   Autonomous Systems

   An Autonomous System (AS) is a group of IP networks operated by one
   or more network operators which has a single and clearly defined
   external routing policy.

   An AS has a unique number associated with it which is used both in
   exchange of exterior routing information and as an identifier of the
   AS itself.  Exterior routing protocols such as BGP and EGP are used
   to exchange routing information between ASes.

   In routing terms an AS will normally use one or more interior gateway
   protocols (IGPs) in conjunction with some sort of common agreed
   metrics when exchanging network information within its own AS.

   The term AS is often confused or even misused as a convenient way of
   grouping together a set of networks which belong under the same
   administrative umbrella even if within that group of networks there
   are various different routing policies.  We provide the "community"
   concept for such use.  ASes can strictly have only one single
   external routing policy.

   The creation of an AS should be done in a conscious and well
   coordinated manner to avoid creating ASes for the sake of it, perhaps
   resulting in the worst case scenario of one AS per routing
   announcement.  It should be noted that there is a limited number of
   AS numbers available. Also creating an AS may well increase the
   number of AS paths modern EGPs will have to keep track of. This
   aggravates what is known as "the routing table growth problem".  This
   may mean that by applying the general rules for the creation and
   allocation of an AS below, some re-engineering may well be needed.
   However, this may be the only way to actually implement the desired
   routing policy anyway.  The creation and allocation of an AS should
   be done with the following recommendations in mind:


    +   Creation of an AS is only required when exchanging routing
        information with other ASes.  Some router implementations make
        use of an AS number as a form of tagging to identify the routing
        process.  However, it should be noted that this tag does not
        need to be unique unless routing information is indeed exchanged
        with other ASes.






Bates, et al.                                                  [Page 26]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


    +   For a simple case of customer networks connected to a single
        service provider, the IP network should normally be a member of
        the service providers AS. In terms of routing policy the IP
        network has exactly the same policy as the service provider and
        there is no need to make any distinction in routing information.
        This idea may at first seem slightly alien to some, but it
        highlights the clear distinction in the use of the AS number as
        a representation of routing policy as opposed to some form of
        administrative use.


    +   If a network operator connects to more than one AS with
        different routing policies then they need to create their own
        AS.  In the case of multi-homed customer networks connected to
        two service providers there are at least two different routing
        policies to a given customer network.  At this point the
        customer networks will be part of a single AS and this AS would
        be distinct from either of the service providers ASes.  This
        allows the customer the ability of having a different
        representation of policy and preference to the different service
        providers.  This is the ONLY case where a network operator
        should create its own AS number.


    +   As a general rule one should always try to populate the AS with
        as many routes as possible, providing all routes conform to the
        same routing policy.


   Each AS is represented in the RIPE database by both an aut-num object
   and the route objects representing the routes originated by the AS.
   The aut-num object stores descriptive, administrative and contact
   information about the AS as well as the routing policies of the AS in
   relation to all neighboring ASes.

   The origin attributes of the route  objects define the set of routes
   originated by the AS. Each route object can have exactly one origin
   attribute.  Route objects can only be created and updated by the
   maintainer of the AS and not by those immediately responsible for the
   particular routes referenced therein.  This ensures that operators,
   especially service providers, remain in control of AS routing
   announcements.


   The AS object itself is used to represent a description of
   administrative details and the routing policies of the AS itself. The
   AS object definition is depicted as follows.




Bates, et al.                                                  [Page 27]

RFC 1786        Representing IP Routing Policies in a RR      March 1995



   Example:

   aut-num:  AS1104
   descr:    NIKHEF-H Autonomous system
   as-in:    from AS1213 100 accept AS1213
   as-in:    from AS1913 100 accept AS1913
   as-in:    from AS1755 150 accept ANY
   as-out:   to AS1213 announce ANY
   as-out:   to AS1913 announce ANY
   as-out:   to AS1755 announce AS1104 AS1913 AS1213
   tech-c:   Rob Blokzijl
   admin-c:  Eric Wassenaar
   guardian: as-guardian@nikhef.nl
   changed:  ripe-dbm@ripe.net 920910
   source:   RIPE



   See Appendix A for a complete syntax definition of the "aut-num"
   object.


   It should be noted that this representation provides two things:

       + a set of routes.

       + a description of administrative details and routing policies.

   The set of routes can be used to generate network list based
   configuration information as well as configuration information for
   exterior routing protocols knowing about ASes. This means an AS can
   be defined and is useful even if it does not use routing protocols
   which know about the AS concept.

















Bates, et al.                                                  [Page 28]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   Description of routing policies between ASs with multiple connections
   - "interas-in/interas-out"

   The following section is only relevant for ASes which use different
   policies on multiple links to the same neighboring AS. Readers not
   doing this may want to skip this section.

   Description of multiple connections between ASs defines how two ASs
   have chosen to set different policies for the use of each or some of
   the connections between the ASs.  This description is necessary only
   if the ASs are connected in more than one way and the routing policy
   and differs at these two connections.



   Example:


                   LINK1
      193.0.1.1 +----------+ 193.0.1.2
                |          |
   AS1------AS2==           ==AS3-----AS4
                |          |
      193.0.1.5 +----------+ 193.0.1.6
                    LINK2



        Note: LINK here denotes the peer connection points between
        ASs.  It is not necessarily just a serial link.  It could
        be ethernet or any other type of connection as well.  It
        can also be a peer session where the address is the same at
        one end and different at the other end.


   It may be that AS2 wants to use LINK2 only for traffic towards AS4.
   LINK1 is used for traffic to AS3 and as backup to AS4, should LINK2
   fail.  To implement this policy, one would use the attribute
   "interas-in" and "interas-out."  This attribute permits ASs to
   describe their local decisions based on its preference such as
   multi-exit-discriminators (MEDs) as used in some inter-domain routing
   protocols (BGP4, IDRP) and to communicate those routing decisions.
   This information would be useful in resolving problems when some
   traffic paths changed from traversing AS3's gateway in Timbuktu
   rather than the gateway in Mogadishu.  The exact syntax is given in
   Appendix A.  However, if we follow this example through in terms of
   AS2 we would represent this policy as follows:




Bates, et al.                                                  [Page 29]

RFC 1786        Representing IP Routing Policies in a RR      March 1995



   Example:

   aut-num: AS2
   as-in: from AS3 10 accept AS3 AS4
   as-out: to AS3 announce AS1 AS2
   interas-in:from AS3 193.0.1.1/32 193.0.1.2/32 (pref=5) accept AS3
   interas-in:from AS3 193.0.1.1/32 193.0.1.2/32 (pref=9) accept AS4
   interas-in:from AS3 193.0.1.5/32 193.0.1.6/32 (pref=7) accept AS4
    ...



   Here we see additional policy information between two ASs in terms of
   the IP addresses of the connection.  The parentheses and keyword are
   syntactic placeholders to add the readability of the attributes.  If
   pref=MED is specified the preference indicated by the remote AS via
   the multi-exit- discriminator metric such as BGP is used.  Of course
   this type on inter-AS policy should always be bilaterally agreed upon
   to avoid asymmetry and in practice there may need  to be
   corresponding interas-out attributes in the policy representation of
   AS3.


   The interas-out attribute is similar to interas-in as as-out is to
   as-in.  The one major difference being that interas-out allows you to
   associate an outgoing metric with each route. It is important to note
   that this metric is just passed to the peer AS and it is at the peer
   AS's discretion to use or ignore it.  A special value of IGP
   specifies that the metric passed to the receiving AS will be derived
   from the IGP of the sending AS. In this way the peer AS can choose
   the optimal link for its traffic as determined by the sending AS.

   If we look at the corresponding interas-out for AS3 we would see the
   following:

   Example:

aut-num: AS3
as-in: from AS2 10 accept AS1 A2
as-out: to AS2 announce AS3 AS4
interas-out:to AS2 193.0.1.2/32 193.0.1.1/32 (metric-out=5) announce AS3
interas-out:to AS2 193.0.1.2/32 193.0.1.1/32 (metric-out=9) announce AS4
interas-out:to AS2 193.0.1.6/32 193.0.1.5/32 (metric-out=7) announce AS4
 ...






Bates, et al.                                                  [Page 30]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   Descriptions of interas policies do  not  replace  the  global
   policy described  in as-in, as-out and other policy attributes which
   should be specified too.  If the global policy mentions  more  routes
   than the combined local policies then local preferences for these
   routes are assumed to be equal for all links.

   Any route specified in interas-in/out and not specified in as-in/out
   is assumed not accepted/announced between the ASes concerned.
   Diagnostic tools should flag this inconsistency as an error.  It
   should be noted that if an interas-in or interas-out policy is
   specified then it is mandatory to specify the corresponding global
   policy in the as-in or as-out line. Please note there is no relevance
   in the cost associated with as-in and the preferences used in
   interas-in.

   The interaction of interas-in/interas-out with as-in/as-out

   Although formally defined above, the rules associated with policy
   described in terms of interas-in and interas-out with respect to as-
   in and as-out are worthy of clarification for implementation.

   When using interas-in or interas-out policy descriptions, one must
   always make sure the set of policies described between two ASes is
   always equal to or a sub-set of the policy described in the global
   as-in or as-out policy. When a sub-set is described remember the
   remaining routes are implicitly shared across all connections. It is
   an error for the interas policies to describe a superset of the
   global policies, i.e. to announce or accept more routes than the
   global policies.

   When defining complex interas based policies it is advisable to
   ensure that any possible ambiguities are not present by explicitly
   defining your policy with respect to the global as-in and as-out
   policy.

   If we look at a simple example, taking just in-bound announcements to
   simplify things. If we have the following global policy:


   aut-num: AS1
   as-in: from AS2 10 accept AS100 OR {10.0.0.0/8}

   Suppose there are three peerings between AS1 and AS2, known as L1-R1,
   L2-R2 and L3-R3 respectively. The actual policy of these connections
   is to accept AS100 equally on these three links and just route
   10.0.0.0/8 on L3-R3. The simple way to mention this exception is to
   just specify an interas policy for L3-R3:




Bates, et al.                                                  [Page 31]

RFC 1786        Representing IP Routing Policies in a RR      March 1995



   interas-in: from AS2 L3 R3 (pref=100) accept {10.0.0.0/8}


   The implicit rule that all routes not mentioned in interas policies
   are accepted on all links with equal preference ensures the desired
   result.

   The same policy can be written explicitly as:

   interas-in: from AS2 L1 R1 (pref=100) accept AS100
   interas-in: from AS2 L2 R2 (pref=100) accept AS100
   interas-in: from AS2 L3 R3 (pref=100) accept AS100 OR {10.0.0.0/8}


   Whilst this may at first sight seem obvious, the problem arises when
   not all connections are mentioned. For example, if we specified only
   an interas-in line for L3-R3 as below:

   aut-num: AS1
   as-in: from AS2 10 accept AS100 OR {10.0.0.0/8}
   interas-in: from AS2 L3 R3 (pref=100) accept AS100 OR {10.0.0.0/8}


   then the policy for the other links according to the rules above
   would mean they were equal to the global policy minus the sum of the
   local policies (i.e. ((AS100 OR {10.0.0.0/0}) / (AS100 OR
   {10.0.0.0/0})) = empty) which in this case would mean nothing is
   accepted on connections L1-R1 and L2-R2 which is incorrect.

   Another example: If we only registered  the  policy  for  link  L2-
   R2:

   interas-in: from AS2 L2 R2 (pref=100) accept AS100

   The implicit policy for both L1-R1 and L3-R3 would be as follows:

   interas-in: from AS2 L1 R1 (pref=100) accept {10.0.0.0/8}
   interas-in: from AS2 L3 R3 (pref=100) accept {10.0.0.0/8}


   This is derived as the set of global policies minus the set of
   interas-in policies (in this case just accept AS100 as it was the
   L2-R2 interas-in policy we registered) with equal cost for the
   remaining connection. This again is clearly not what was intended.






Bates, et al.                                                  [Page 32]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   We strongly recommend that you always mention all policies for all
   interas connections explicitly, to avoid these possible errors. One
   should always ensure the set of the interas policies is equal to the
   global policy. Clearly if interas policies differ in complex ways it
   is worth considering splitting the AS in question into separate ASes.
   However, this is beyond the direct scope of this document.

   It should also be noted there is no direct relationship between the
   cost used in as-in and the preference used in interas-in.










































Bates, et al.                                                  [Page 33]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   How to describe the exclusion policy of a certain AS - "as-exclude"

   Some ASes have a routing policy based on the exclusion of certain
   routes if for whatever reason a certain AS is used as transit.
   Whilst, this is in general not good practice as it makes implicit
   assumptions on topology with asymmetry a possible outcome if not
   coordinated, this case needs to be accommodated within the routing
   policy representation.

   The way this is achieved is by making use of the "as-exclude"
   attribute. The precise syntax of this attribute can be found in
   Appendix A along with the rest of the defined syntax for the "aut-
   num" object. However, some explanation of the use of this attribute
   is useful. If we have the following example topology.

   Example:


              AS4--------AS3
    |          |          |
    |          |          |
   AS1--------AS2--------AS5


   With a simple corresponding policy like so:


   Example:

   aut-num: AS1
   as-in:  from AS2 100 accept ANY
   as-out: to AS2 announce AS1
   as-exclude: exclude AS4 to ANY
    ....


   We see an interesting policy. What this says in simple terms is AS1
   doesn't want to reach anything if it transits AS4. This can be a
   perfectly valid policy. However, it should be realized that if for
   whatever reason AS2 decides to route to AS3 via AS4 then immediately
   AS1 has no connectivity to AS3 or if AS1 is running default to AS2
   packets from AS1 will still flow via AS4. The important point about
   this is that whilst AS1 can advise its neighbors of its policy it has
   no direct control on how it can enforce this policy to neighbors
   upstream.






Bates, et al.                                                  [Page 34]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   Another interesting scenario to highlight the unexpected result of
   using such an "as-exclude" policy. If we assume in the above example
   AS2 preferred AS4 to reach AS3 and AS1 did not use default routing
   then as stated AS1 would have no connectivity to AS3. Now lets
   suppose that for example the link between AS2 and AS4 went down for
   some reason. Like so:

   Example:



              AS4--------AS3
                          |
                          |
   AS1--------AS2--------AS5


   Suddenly AS1 now has connectivity to AS3. This unexpected behavior
   should be considered when created policies based on the "as-exclude"
   attribute.

   The second problem with this type of policy is the potential of
   asymmetry. In the original example we saw the correct policy from
   AS1's point of view but if ASes with connectivity through AS4 do not
   use a similar policy you have asymmetric traffic and policy.  If an
   AS uses such a policy they must be aware of the consequences of its
   use. Namely that the specified routes which transit the AS (i.e.
   routing announcements with this AS in the AS path information) in
   question will be excluded.  If not coordinated this can easily cause
   asymmetry or even worse loss of connectivity to unknown ASes behind
   (or in front for that matter) the transit AS in question.  With this
   in mind this attribute can only be viewed as a form of advisory to
   other service providers. However, this does not preclude its use with
   policy based tools if the attribute exists.

   By having the ability to specify a route keyword based on any of the
   four notations given in the syntax it allows the receiving AS to
   specify what routes it wishes to exclude through a given transit AS
   to a network granularity.












Bates, et al.                                                  [Page 35]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


7.  AS Macros

   It may be difficult to keep track of each and every new AS that is
   represented in the routing registry.  A convenient way around this is
   to define an `AS Macro' which essentially is a convenient way to
   group ASes. This is done so that each and every AS guardian does not
   have to add a new AS to it's routing policy as described by the as-in
   and as-out attributes of it's AS object.

   However, it should be noted that this creates an implicit trust on
   the guardian of the AS-Macro.

   An AS-Macro can be used in <routing policy expressions> for the "as-
   in" and "as-out" attributes in the aut-num object. The AS-Macro
   object is then used to derive the list or group of ASes.

   A simple example would be something like:


   Example:

   aut-num: AS786
   as-in:   from AS1755 100 accept AS-EBONE AND NOT AS1104
   as-out   to AS1755 announce AS786
    .....


   Where the as-macro object for AS-EBONE is as follows:


   as-macro:  AS-EBONE
   descr:     ASes routed by EBONE
   as-list:   AS2121 AS1104 AS2600 AS2122
   as-list:   AS1103 AS1755 AS2043
   guardian:  guardian@ebone.net
    ......


   So the policy would be evaluated to:


   aut-num: AS786
   as-in:   from AS1755 100 accept (AS2121 OR AS1104 OR AS2600 OR AS2122
   as-in:   from AS1755 100 accept AS1103 OR AS1755 OR
   as-in:   from AS1755 100 accept AS2043) AND NOT AS1104
    ......





Bates, et al.                                                  [Page 36]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   It should be noted that the above examples incorporates the rule for
   line wrapping as defined in Appendix A for policy lines.  See
   Appendix C for a definition on the AS-Macro syntax.
















































Bates, et al.                                                  [Page 37]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


8.  The Community Object

   A community is a group of routes that cannot be represented by an AS
   or a group of ASes.  It is in some circumstances useful to define a
   group of routes that have something in common.  This could be a
   special access policy to a supercomputer centre, a group of routes
   used for a specific mission, or a disciplinary group that is
   scattered among several autonomous systems.  Also these communities
   could be useful to group routes for the purpose of network
   statistics.

   Communities do not exchange routing information, since they do not
   represent an autonomous system.  More specifically, communities do
   not define routing policies, but access or usage policies. However,
   they can be used as in conjunction with an ASes routing policy to
   define a set of routes the AS sets routing policy for.

   Communities should be defined in a strict manner, to avoid creating
   as many communities as there are routes, or even worse.  Communities
   should be defined following the two rules below;


    +   Communities must have a global meaning.  Communities that have
        no global meaning, are used only in a local environment and
        should be avoided.


    +   Communities  must not be defined to express non-local policies.
        It should be avoided that a community is created because some
        other organization forces a policy upon your organization.
        Communities must only be defined to express a policy defined by
        your organization.



   Community examples

   There are some clear examples of communities:


   BACKBONE -
        all customers of a given backbone service provider even though
        they can have various different routing policies and hence
        belong to different ASes. This would be extremely useful for
        statistics collection.






Bates, et al.                                                  [Page 38]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   HEPNET -
        the High Energy Physics community partly shares infrastructure
        with other organizations, and the institutes it consists of are
        scattered all over Europe, often being part of a non HEPNET
        autonomous system. To allow statistics, access or part of a
        routing policy , a community HEPNET, consisting of all routes
        that are part of HEPNET, conveniently groups all these routes.


   NSFNET -
        the National Science Foundation Network imposes an acceptable
        use policy on routes that wish to make use of it. A community
        NSFNET could imply the set of routes that comply with this
        policy.


   MULTI -
        a large multinational corporation that does not have its own
        internal infrastructure, but connects to the various parts of
        its organizations by using local service providers that connect
        them all together, may decide to define a community to restrict
        access to their networks, only by networks that are part of this
        community. This way a corporate network could be defined on
        shared infrastructure. Also, this community could be used by any
        of the service providers to do statistics for the whole of the
        corporation, for instance to do topology or bandwidth planning.


   Similar to Autonomous systems, each community is represented in the
   RIPE database by both a community object and community tags on the
   route objects representing the routes belonging to the community.
   The community object stores descriptive, administrative and contact
   information about the community.

   The community tags on the route objects define the set of routes
   belonging to a community.  A route can have multiple community tags.
   The community tags can only be created and updated by the "guardian"
   of the community and not by those directly responsible for the
   particular network.  This ensures that community guardians remain in
   control of community membership.

   Here's an example of how this might be represented in terms of the
   community tags within the network object.  We have an example where
   the route 192.16.199.0/24 has a single routing policy (i.e.  that of
   AS 1104), but is part of several different communities of interest.
   We use the tag "comm-list" to represent the list of communities
   associated with this route.  NIKHEF-H uses the service provider
   SURFNET (a service provider with customers with more than one routing



Bates, et al.                                                  [Page 39]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   policy), is also part of the High Energy Physics community as well as
   having the ability to access the Supercomputer at CERN (the community
   `CERN-SUPER', is somewhat national, but is intended as an example of
   a possible use of an access policy constraint).


   Example:

   route:     192.16.199.0/24
   descr:     Local Ethernet
   descr:     NIKHEF section H
   origin:    AS1104
   comm-list: HEPNET CERN-SUPER SURFNET
   changed:   ripe-dbm@ripe.net 920604
   source:    RIPE



   In the above examples some communities have been defined. The
   community object itself will take the following format:


   Example:

   community:  SURFNET
   descr:      Dutch academic research network
   authority:  SURFnet B.V.
   guardian:   comm-guardian@surfnet.nl
   admin-c:    Erik-Jan Bos
   tech-c:     Erik-Jan Bos
   changed:    ripe-dbm@ripe.net 920604
   source:     RIPE

   For a complete explanation of the syntax please refer to Appendix B.

















Bates, et al.                                                  [Page 40]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


9.  Representation of Routing Policies

   Routing policies of an AS are represented in the autonomous system
   object. Initially we show some examples, so the reader is familiar
   with the concept of how routing information is represented, used and
   derived. Refer to Appendix A, for the full syntax of the "aut-num"
   object.

   The topology of routing exchanges is represented by listing how
   routing information is exchanged with each neighboring AS.  This is
   done separately for both incoming and outgoing routing information.
   In order to provide backup and back door paths a relative cost is
   associated with incoming routing information.


   Example 1:


                               AS1------AS2


   This specifies a simple routing exchange of two presumably isolated
   ASes.  Even if either of them has routing information about routes in
   ASes other than AS1 and AS2, none of that will be announced to the
   other.

   aut-num:   AS1
   as-out:    to AS2 announce AS1
   as-in:     from AS2 100 accept AS2

   aut-num:   AS2
   as-out:    to AS1 announce AS2
   as-in:     from AS1 100 accept AS1


   The number 100 in the in-bound specifications is a relative cost,
   which is used for backup and back door routes. The absolute value is
   of no significance. The relation between different values within the
   same AS object is.  A lower value means a lower cost. This is
   consciously similar to the cost based preference scheme used with DNS
   MX RRs.


   Example 2:

   Now suppose that AS2 is connected to one more AS, besides AS1, and
   let's call that AS3:




Bates, et al.                                                  [Page 41]

RFC 1786        Representing IP Routing Policies in a RR      March 1995




                           AS1------AS2------AS3



   In this case there are two reasonable routing policies:

     a) AS2 just wants to exchange traffic with both AS1 and AS3 itself
        without passing traffic between AS1 and AS3.

     b) AS2 is willing to pass traffic between AS3 and AS1, thus acting
        as a transit AS


   Example 2a:

   In the first case AS1's representation in the routing registry will
   remain unchanged as will be the part of AS2's representation
   describing the routing exchange with AS1. A description of the
   additional routing exchange with AS3 will be added to AS2's
   representation:


   aut-num:   AS1
   as-out:    to AS2 announce AS1
   as-in:     from AS2 100 accept AS2

   aut-num:   AS2
   as-out:    to AS1 announce AS2
   as-in:     from AS1 100 accept AS1
   as-out:    to AS3 announce AS2
   as-in:     from AS3 100 accept AS3

   aut-num:   AS3
   as-out:    to AS2 announce AS3
   as-in:     from AS2 100 accept AS2


   Note that in this example, AS2 keeps full control over its resources.
   Even if AS3 and AS1 were to allow each others routes in from AS2, the
   routing information would not flow because AS2 is not announcing it.
   Of course AS1 and AS3 could just send traffic to each other to AS2
   even without AS2 announcing the routes, hoping that AS2 will forward
   it correctly. Such questionable practices however are beyond the
   scope of this document.





Bates, et al.                                                  [Page 42]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   Example 2b:

   If contrary to the previous case, AS1 and AS3 are supposed to have
   connectivity to each other via AS2, all AS objects have to change:


   aut-num:   AS1
   as-out:    to AS2 announce AS1
   as-in:     from AS2 100 accept AS2 AS3

   aut-num:   AS2
   as-out:    to AS1 announce AS2 AS3
   as-in:     from AS1 100 accept AS1
   as-out:    to AS3 announce AS2 AS1
   as-in:     from AS3 100 accept AS3

   aut-num:   AS3
   as-out:    to AS2 announce AS3
   as-in:     from AS2 100 accept AS1 AS2



   Note that the amount of routing information exchanged with a neighbor
   AS is defined in terms of routes belonging to ASes.  In BGP terms
   this is the AS where the routing information originates and the
   originating AS information carried in BGP could be used to implement
   the desired policy.  However, using BGP or the BGP AS-path
   information is not required to implement the policies thus specified.
   Configurations based on route lists can easily be generated from the
   database.  The AS path information, provided by BGP can then be used
   as an additional checking tool as desired.

   The specification understands one special expression and this can be
   expressed as a boolean expression:


   ANY - means any routing information known. For output this means that
        all routes an AS knows about are announced. For input it means
        that anything is accepted from the neighbor AS.












Bates, et al.                                                  [Page 43]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   Example 3:

   AS4 is a stub customer AS, which only talks to service provider
   AS123.


                                    |
                                    |
                            -----AS123------AS4
                                    |
                                    |



   aut-num: AS4
   as-out:  to AS123 announce AS4
   as-in:   from AS123 100 accept ANY

   aut-num: AS123
   as-in:   from AS4 100 accept AS4
   as-out:  to AS4 announce ANY
   <further neighbors>



   Since AS4 has no other way to reach the outside world than AS123 it
   is not strictly necessary for AS123 to send routing information to
   AS4.  AS4 can simply send all traffic for which it has no explicit
   routing information to AS123 by default.  This strategy is called
   default routing.  It is expressed in the routing registry by adding
   one or more default tags to the autonomous system which uses this
   strategy.  In the example above this would look like:


   aut-num: AS4
   as-out:  to AS123 announce AS4
   default: AS123 100

   aut-num: AS123
   as-in:   from AS4 100 accept AS4
   <further neighbors>










Bates, et al.                                                  [Page 44]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   Example 4:

   AS4 now connects to a different operator, AS5.  AS5 uses AS123 for
   outside connectivity but has itself no direct connection to AS123.
   AS5 traffic to and from AS123 thus has to pass AS4.  AS4 agrees to
   act as a transit AS for this traffic.


                              |
                              |
                       -----AS123------AS4-------AS5
                              |
                              |



   aut-num:    AS4
   as-out:     to AS123 announce AS4 AS5
   as-in:      from AS123 100 accept ANY
   as-out:     to AS5 announce ANY
   as-in:      from AS5 50 accept AS5

   aut-num:    AS5
   as-in:      from AS4 100 accept ANY
   as-out:     to AS4 announce AS5

   aut-num:    AS123
   as-in:      from AS4 100 accept AS4 AS5
   as-out:     to AS4 announce ANY
   <further neighbors>



   Now AS4 has two sources of external routing information. AS5 which
   provides only information about its own routes and AS123 which
   provides information about the external world. Note that AS4 accepts
   information about AS5 from both AS123 and AS5 although AS5
   information cannot come from AS123 since AS5 is connected only via
   AS4 itself. The lower cost of 50 for the announcement from AS5 itself
   compared to 100 from AS123 ensures that AS5 is still believed even in
   case AS123 will unexpectedly announce AS5.

   In this example too, default routing can be used by AS5 much like in
   the previous example.  AS4 can also use default routing towards
   AS123:






Bates, et al.                                                  [Page 45]

RFC 1786        Representing IP Routing Policies in a RR      March 1995



   aut-num:    AS4
   as-out:     to AS123 announce AS4 AS5
   default:    AS123 11
   as-in:      from AS5 50 accept AS5

   Note no announcements to AS5, they default to us.

   aut-num:    AS5
   as-out:     to AS4 announce AS5
   default:    AS4 100

   aut-num:    AS123
   as-in:      from AS4 100 announce AS4 AS5
   <further neighbors>


   Note that the relative cost associated with default routing is
   totally separate from the relative cost associated with in-bound
   announcements.  The default route will never be taken if an explicit
   route is known to the destination.  Thus an explicit route can never
   have a higher cost than the default route.  The relative cost
   associated with the default route is only useful in those cases where
   one wants to configure multiple default routes for redundancy.

   Note also that in this example the configuration using default routes
   has a subtly different behavior than the one with explicit routes: In
   case the AS4-AS5 link fails AS4 will send traffic to AS5 to AS123
   when using the default configuration. Normally this makes not much
   difference as there will be no answer and thus little traffic.  With
   certain datagram applications which do not require acknowledgments
   however, significant amounts of traffic may be uselessly directed at
   AS123.  Similarly default routing should not be used if there are
   stringent security policies which prescribe any traffic intended for
   AS5 to ever touch AS123.

   Once the situation gets more complex using default routes can lead to
   unexpected results or even defeat the routing policies established
   when links fail. As an example consider how Example 5a) below could
   be implemented using default routing.  Therefore, generally it can be
   said that default routing should only be used in very simple
   topologies.









Bates, et al.                                                  [Page 46]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   Example 5:

   In a different example AS4 has a private connection to AS6 which in
   turn is connected to the service provider AS123:


                                   |
                                   |
                            -----AS123------AS4
                                   |          |
                                   |          |
                                   |          |
                                 AS6 ---------+


   There are a number of policies worth examining in this case:


     a) AS4 and AS6 wish to exchange traffic between themselves
        exclusively via the private link between themselves; such
        traffic should never pass through the backbone (AS123).  The
        link should never be used for transit traffic, i.e. traffic not
        both originating in and destined for AS4 and AS6.


     b) AS4 and AS6 wish to exchange traffic between themselves via the
        private link between themselves.  Should the link fail, traffic
        between AS4 and AS6 should be routed via AS123.  The link should
        never be used for transit traffic.


     c) AS4 and AS6 wish to exchange traffic between themselves via the
        private link between themselves.  Should the link fail, traffic
        between AS4 and AS6 should be routed via AS123.  Should the
        connection between AS4 and AS123 fail, traffic from AS4 to
        destinations behind AS123 can pass through the private link and
        AS6's connection to AS123.


     d) AS4 and AS6 wish to exchange traffic between themselves via the
        private link between themselves.  Should the link fail, traffic
        between AS4 and AS6 should be routed via AS123.  Should the
        backbone connection of either AS4 or AS6 fail, the traffic of
        the disconnected AS should flow via the other AS's backbone
        connection.






Bates, et al.                                                  [Page 47]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   Example 5a:



   aut-num:   AS4
   as-in:     from AS123 100 accept NOT AS6
   as-out:    to AS123 announce AS4
   as-in:     from AS6 50 accept AS6
   as-out:    to AS6 announce AS4

   aut-num:   AS123
   as-in:     from AS4 100 accept AS4
   as-out:    to AS4 announce ANY
   as-in:     from AS6 100 accept AS6
   as-out:    to AS6 announce ANY
   <further neighbors>

   aut-num:    AS6
   as-in:      from AS123 100 accept NOT AS4
   as-out:     to AS123 announce AS6
   as-in:      from AS4 50 accept AS4
   as-out:     to AS4 announce AS6



   Note that here the configuration is slightly inconsistent. AS123 will
   announce AS6 to AS4 and AS4 to AS6. These announcements will be
   filtered out on the receiving end.  This will implement the desired
   policy.  Consistency checking tools might flag these cases however.






















Bates, et al.                                                  [Page 48]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   Example 5b:



   aut-num:   AS4
   as-in:     from AS123 100 accept ANY
   as-out:    to AS123 announce AS4
   as-in:     from AS6 50 accept AS6
   as-out:    AS6 AS4

   aut-num:   AS123
   as-in:     AS4 100 AS4
   as-out:    AS4 ANY
   as-in:     AS6 100 AS6
   as-out:    AS6 ANY
   <further neighbors>

   aut-num:   AS6
   as-in:     from AS123 100 accept ANY
   as-out:    to AS123 announce AS6
   as-in:     from AS4 50 accept AS4
   as-out:    to AS4 announce AS6



   The thing to note here is that in the ideal operational case, `all
   links working' AS4 will receive announcements for AS6 from both AS123
   and AS6 itself.  In this case the announcement from AS6 will be
   preferred because of its lower cost and thus the private link will be
   used as desired.  AS6 is configured as a mirror image.





















Bates, et al.                                                  [Page 49]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   Example 5c:

   The new feature here is that should the connection between AS4 and
   AS123 fail, traffic from AS4 to destinations behind AS123 can pass
   through the private link and AS6's connection to AS123.


   aut-num:  AS4
   as-in:    from AS123 100 accept ANY
   as-out:   to AS123 announce AS4
   as-in:    from AS6 50 accept AS6
   as-in:    from AS6 110 accept ANY
   as-out:   to AS6 AS4

   aut-num:  AS123
   as-in:    from AS4 1 accept AS4
   as-out:   to AS4 announce ANY
   as-in:    from AS6 1 accept AS6
   as-in:    from AS6 2 accept AS4
   as-out:   to AS6 announce ANY
   <further neighbors>

   aut-num:  AS6
   as-in:    from AS123 100 accept ANY
   as-out:   to AS123 AS6 announce AS4
   as-in:    from AS4 50 accept AS4
   as-out:   to AS4 announce ANY



   Note that it is important to make sure to propagate routing
   information for both directions in backup situations like this.
   Connectivity in just one direction is not useful at all for almost
   all applications.

   Note also that in case the AS6-AS123 connection breaks, AS6 will only
   be able to talk to AS4. The symmetrical case (5d) is left as an
   exercise to the reader.

10.  Future Extensions

   We envision that over time the requirements for describing routing
   policy will evolve. The routing protocols will evolve to support the
   requirements and the routing policy description syntax will need to
   evolve as well. For that purpose, a separate document will describe
   experimental syntax definitions for policy description.  This
   document [14] will be updated when new objects or attributes are
   proposed or modified.



Bates, et al.                                                  [Page 50]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


11.  References

   [1]  Bates, T., Jouanigot, J-M., Karrenberg, D., Lothberg, P.,
        Terpstra, M., "Representation of IP Routing Policies in the RIPE
        Database", RIPE-81, February 1993.

   [2]  Merit Network Inc.,"Representation of Complex Routing Policies
        of an Autonomous System", Work in Progress, March 1994.

   [3]  PRIDE Tools Release 1.
        See ftp.ripe.net:pride/tools/pride-tools-1.tar.Z.

   [4]  Merit Inc. RRDB Tools.
        See rrdb.merit.edu:pub/meritrr/*

   [5]  The Network List Compiler.
        See dxcoms.cern.ch:pub/ripe-routing-wg/nlc-2.2d.tar

   [6]  Lord, A., Terpstra, M., "RIPE Database Template for Networks and
        Persons", RIPE-119, October 1994.

   [7]  Karrenberg, D., "RIPE Database Template for Domains", RIPE-49,
        April 1992.

   [8]  Lougheed, K., Rekhter, Y., "A Border Gateway Protocol 3 (BGP-
        3)", RFC1267, October 1991.

   [9]  Rekhter, Y., Li, T., "A Border Gateway Protocol 4 (BGP-4)",
        RFC-1654, May 1994.

   [10] Bates, T., Karrenberg, D., Terpstra, M., "Support for Classless
        Internet Addresses in the RIPE Database", RIPE-121, October
        1994.

   [11] Karrenberg, D., "Authorisation and Notification of Changes in
        the RIPE Database", RIPE-120, October 1994.

   [12] Bates, T., "Support of Guarded fields within the RIPE Database",
        ripe-117, July 1994.

   [13] Estrin, D., Li, T., Rekhter, Y., Varadhan, K., Zappala, D.,
        "Source Demand Routing: Packet Format and Forwarding
        Specification (Version 1)", Work in Progress, March 1994.

   [14] Joncheray, L., "Experimental Objects and attributes for the
        Routing Registry", RIPE-182, October1994.

   [15] Bates, T., "Specifying an `Internet Router' in the Routing



Bates, et al.                                                  [Page 51]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


        Registry", RIPE-122, October 1994.

   [16] Bates, T., Karrenberg, D., Terpstra, M., "RIPE Database
        Transition Plan", RIPE-123, October 1994.

12.  Security Considerations

   Security issues are beyond the scope of this memo.











































Bates, et al.                                                  [Page 52]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


13.  Authors' Addresses


   Tony Bates
   MCI Telecommunications Corporation
   2100 Reston Parkway
   Reston, VA 22094
   USA
   +1 703 715 7521
   Tony.Bates@mci.net


   Elise Gerich
   The University of Michigan
   Merit Computer Network
   1075 Beal Avenue
   Ann Arbor, MI 48109
   USA
   +1 313 936 2120
   epg@merit.edu


   Laurent Joncheray
   The University of Michigan
   Merit Computer Network
   1075 Beal Avenue
   Ann Arbor, MI 48109
   USA
   +1 313 936 2065
   lpj@merit.edu


   Jean-Michel Jouanigot
   CERN, European Laboratory for Particle Physics
   CH-1211 Geneva 23
   Switzerland
   +41 22 767 4417
   Jean-Michel.Jouanigot@cern.ch


   Daniel Karrenberg
   RIPE Network Coordination Centre
   Kruislaan 409
   NL-1098 SJ Amsterdam
   The Netherlands
   +31 20 592 5065
   D.Karrenberg@ripe.net




Bates, et al.                                                  [Page 53]

RFC 1786        Representing IP Routing Policies in a RR      March 1995



   Marten Terpstra
   Bay Networks, Inc.
   2 Federal St
   Billerica, MA 01821
   USA
   +1 508 436 8036
   marten@BayNetworks.com


   Jessica Yu
   The University of Michigan
   Merit Computer Network
   1075 Beal Avenue
   Ann Arbor, MI 48109
   USA
   +1 313 936 2655
   jyy@merit.edu

































Bates, et al.                                                  [Page 54]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


Appendix A - Syntax for the aut-num object.

   Here is a summary of the tags associated with aut-num object itself
   and their status. The first column specifies the attribute, the
   second column whether this attribute is mandatory in the aut-num
   object, and the third column whether this specific attribute can
   occur only once per object [single], or more than once [multiple].
   When specifying multiple lines per attribute, the attribute name must
   be repeated. See [6] the example for the descr: attribute.


   aut-num:      [mandatory]          [single]
   as-name:      [optional]           [single]
   descr:        [mandatory]          [multiple]
   as-in:        [optional]           [multiple]
   as-out:       [optional]           [multiple]
   interas-in:   [optional]           [multiple]
   interas-out:  [optional]           [multiple]
   as-exclude:   [optional]           [multiple]
   default:      [optional]           [multiple]
   tech-c:       [mandatory]          [multiple]
   admin-c:      [mandatory]          [multiple]
   guardian:     [mandatory]          [single]
   remarks:      [optional]           [multiple]
   notify:       [optional]           [multiple]
   mnt-by:       [optional]           [multiple]
   changed:      [mandatory]          [multiple]
   source:       [mandatory]          [single]


   Each attribute has the following syntax:


   aut-num:
        The autonomous system number.  This must be a uniquely allocated
        autonomous system number from an AS registry (i.e. the RIPE NCC,
        the Inter-NIC, etc).

        Format:
             AS<positive integer between 1 and 65535>

        Example:

             aut-num: AS1104

        Status: mandatory, only one line allowed





Bates, et al.                                                  [Page 55]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


as-name:
     The name associated with this AS. This should as short but as
     informative as possible.

     Format:
          Text consisting of capitals, dashes ("-") and digits, but must
          start with a capital.

     Example:

          as-name: NIKHEF-H

     Status: single, only one line allowed

descr:
     A short description of the Autonomous System.

     Format:
          free text

     Example:

          descr: NIKHEF section H
          descr: Science Park Watergraafsmeer
          descr: Amsterdam

     Status: mandatory, multiple lines allowed

as-in:
     A description of accepted routing information between AS peers.

     Format:
          from <aut-num> <cost> accept <routing policy expression>

          The keywords from and accept are optional and can be omitted.

          <aut-num> refers to your AS neighbor.

          <cost> is a positive integer used to express a relative cost
          of routes learned. The lower the cost the more preferred the
          route.

          <routing policy expression> can take the following formats.

          1.   A list of one or more ASes, AS Macros, Communities or
               Route Lists.

               A Route List is a list of routes in prefix length format,



Bates, et al.                                                  [Page 56]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


               separated by commas, and surrounded by curly brackets
               (braces, i.e. `{' and '}').


               Examples:

                    as-in: from AS1103 100 accept AS1103
                    as-in: from AS786  105 accept AS1103
                    as-in: from AS786   10 accept AS786 HEPNET
                    as-in: from AS1755 110 accept AS1103 AS786
                    as-in: from AS3333 100 accept {192.87.45.0/16}


          2.   A set of KEYWORDS.  The following KEYWORD is currently
               defined:


               ANY  this means anything the neighbor AS knows.

          3.   A logical expression of either 1 or 2 above The current
               logical operators are defined as:

               AND
               OR
               NOT

               This operators are defined as true BOOLEAN operators even
               if the operands themselves do not appear to be BOOLEAN.
               Their operations are defined as follows:

               Operator       Operation      Example

                  OR          UNION          AS1 OR AS2
                                             |
                                             +-> all routes in AS1
                                                 or AS2.

                  AND         INTERSECTION   AS1 AND HEPNET
                                             |
                                             +-> a route in AS1 and
                                                 belonging to
                                                 community HEPNET.

                  NOT         COMPLEMENT     NOT AS3
                                             |
                                             +-> any route except
                                                 AS3 routes.




Bates, et al.                                                  [Page 57]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


               Rules are grouped together using parenthesis i.e "(" and
               ")".

               The ordering of evaluation of operators and there
               association is as follows:

               Operator        Associativity

                  ()           left to right
                 NOT           right to left
                 AND           left to right
                  OR           left to right


               NOTE: if no logical operator is given between ASes, AS-
               macros, Communities, Route Lists and KEYWORDS it is
               implicitly evaluated as an `OR' operation.  The OR can be
               left out for conciseness. However, please note the
               operators are still evaluated as below so make sure you
               include parentheses whenever needed.  To highlight this
               here is a simple example. If we denoted a policy of for
               example; from AS1755 I accept all routes except routes
               from AS1, A2 and AS3 and you enter the following as-in
               line.


               as-in: from AS1755 100 accept NOT AS1 AS2 AS3


               This will be evaluated as:


               as-in: from AS1755 100 accept NOT AS1 OR AS2 OR AS3


               Which in turn would be evaluated like this:

               (NOT AS1) OR AS2 OR AS3
               -> ((ANY except AS1) union AS2) union AS3)
               --> (ANY except AS1)

               This is clearly incorrect and not the desired result. The
               correct syntax should be:


               as-in: from AS1755 100 accept NOT (AS1 AS2 AS3)





Bates, et al.                                                  [Page 58]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


               Producing the following evaluation:


               NOT (AS1 OR AS2 OR AS3)
               -> (ANY) except (union of AS1, AS2, AS3)


               Which depicts the desired routing policy.
               Note that can also be written as below which is perhaps
               somewhat clearer:


               as-in: from AS1755 100 accept ANY AND NOT
               as-in: from AS1755 100 accept (AS1 OR AS2 OR AS3)


     Examples:

          as-in: from AS1755 100 accept ANY AND NOT (AS1234 OR AS513)
          as-in: from AS1755 150 accept AS1234 OR {35.0.0.0/8}

          A rule can be wrapped over lines providing the associated
          <aut-num>, <cost> values and from and accept keywords are
          repeated and occur on consecutive lines.

     Example:

          as-in: from AS1755 100 accept ANY AND NOT (AS1234 AS513)

             and

          as-in: from AS1755 100 accept ANY AND NOT (
          as-in: from AS1755 100 accept AS1234 AS513)

          are evaluated to the same result. Please note that the
          ordering of these continuing lines is significant.

     Status: optional, multiple lines allowed













Bates, et al.                                                  [Page 59]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


as-out:
     A description of generated routing information sent to other AS
     peers.

     Format:
          to <aut-num> announce <routing policy expression

          The to and announce keywords are optional and can be omitted.

          <aut-num> refers to your AS neighbor.

          <routing policy expression> is explained in the as-in
          attribute definition above.

     Example:

          as-out: to AS1104 announce AS978
          as-out: to AS1755 announce ANY
          as-out: to AS786 announce ANY AND NOT (AS978)

     Status: optional, multiple lines allowed

interas-in:
     Describes incoming local preferences on an inter AS connection.

     Format:
          from <aut-num> <local-rid> <neighbor-rid> <preference> accept
          <routing policy expression>

          The keywords from and accept are optional and can be omitted.

          <aut-num> is an autonomous system as defined in as-in.

          <local-rid> contains the IP address of the border router in
          the AS describing the policy.  IP address must be in prefix
          length format.

          <neighbor-rid> contains the IP address of neighbor AS's border
          router from which this AS accept routes defined in the
          <routing policy expression>.  IP addresses must be in prefix
          length format.

          <preference> is defined as follows:

          (<pref-type>=<value>)

          It should be noted the parenthesis "(" and ")" and the
          "<pref-type>" keyword must be present for this preference to



Bates, et al.                                                  [Page 60]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


          be valid.

          <pref-type> currently only supports "pref".  It could be
          expanded to other type of preference such as TOS/QOS as
          routing technology matures.

          <value> can take one of the following values:

          <cost>
               <cost> is a positive integer used to express a relative
               cost of routes learned. The lower the cost the more
               preferred the route. This <cost> value is only comparable
               to other interas-in attributes, not to as-in attributes.

          MED
               This indicates the AS will use the
               MUTLI_EXIT_DISCRIMINATOR (MED) metric, as implemented in
               BGP4 and IDRP, sent from its neighbor AS.

               NOTE: Combinations of MED and <cost> should be avoided
               for the same destinations.

               CAVEAT: The pref-type values may well be enhanced in the
               future as more inter-ASs routing protocols introduce
               other metrics.

               Any route specified in interas-in and not specified in
               as-in is assumed not accepted between the ASes concerned.
               Diagnostic tools should flag this inconsistency as an
               error.  It should be noted that if an interas-in policy
               is specified then it is mandatory to specify the
               corresponding global policy in the as-in line. Please
               note there is no relevance in the cost associated with
               as-in and the preferences used in interas-in.
          <routing policy expression> is an expression as defined in
          as-in above.

     Examples:

          NB: This line is wrapped for readability.
          interas-in: from AS1104 192.(pref=10)/accept.AS786.AS987
          interas-in: from AS1104 192.87.45.(pref=20)2accept.AS987
          interas-in: from AS1103 192.87.45.2(pref=MED)8accept2ANY

     Status: optional, multiple lines allowed






Bates, et al.                                                  [Page 61]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


interas-out:

     Format:
          to <aut-num> <local-rid> <neighbor-rid> [<metric>] announce
          <routing policy expression>

          The keywords to and announce are optional and can be omitted.

          The definitions of <aut-num>, <local-rid> <neighbor-rid>, and
          <routing policy expression> are identical to those defined in
          interas-in.

          <metric> is optional and is defined as follows:

          (<metric-type>=<value>)

          It should be noted the parenthesis "(" and ")" and the
          keywords of "<metric-type>" must be present for this metric to
          be valid.

          <metric-type> currently only supports "metric-out".  It could
          be expanded to other type of preference such as TOS/QOS as
          routing technology matures.
          <value> can take one of the following values:

          <num-metric>
               <num-metric> is a pre-configured metric for out-bound
               routes. The lower the cost the more preferred the route.
               This <num-metric> value is literally passed by the
               routing protocol to the neighbor. It is expected that it
               is used there which is indicated by pref=MED on the
               corresponding interas-in attribute.  It should be noted
               that whether to accept the outgoing metric or not is
               totally within the discretion of the neighbor AS.

          IGP
               This indicates that the metric reflects the ASs internal
               topology cost. The topology is reflected here by using
               MED which is derived from the AS's IGP metric.

               NOTE: Combinations of IGP and <num-metric> should be
               avoided for the same destinations.

               CAVEAT: The metric-out values may well be enhanced in the
               future as more interas protocols make use of metrics.

               Any route specified in interas-out and not specified in
               as-out is assumed not announced between the ASes



Bates, et al.                                                  [Page 62]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


               concerned. Diagnostic tools should flag this
               inconsistency as an error.  It should be noted that if an
               interas-out policy is specified then it is mandatory to
               specify the corresponding global policy in the as-out
               line.

     Examples:

          interas-out:ntoiAS1104p192.87.45.254/32t192.87.45.80/32
          interas-out: to AS1104m192.87.45.254/32n192.87.45.80/32
          interas-out: to AS1103 192.87.45.254/325192.87.45.80/32
                                    (metric-out=IGP) announce ANY

     Status: optional, multiple lines allowed

as-exclude:
     A list of transit ASes to ignore all routes from.

     Format:
          exclude <aut-num> to <exclude-route-keyword>

          Keywords exclude and to are optional and can again be omitted.

          <aut-num> refers to the transit AS in question.

          an <exclude-route-keyword> can be ONE of the following.

          1.   <aut-num>

          2.   AS macro

          3.   Community

          4.   ANY

     Examples:

          as-exclude: exclude AS690 to HEPNET

          This means exclude any HEPNET routes which have a route via
          AS690.

          as-exclude: exclude AS1800 to AS-EUNET

          This means exclude any AS-EUNET routes which have a route via
          AS1800.

          as-exclude: exclude AS1755 to AS1104



Bates, et al.                                                  [Page 63]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


          This means exclude any AS1104 route which have a route via
          AS1755.

          as-exclude: exclude AS1104 to ANY

          This means exclude all routes which have a route via AS1104.

     Status: optional, multiple lines allowed

default:
     An indication of how default routing is done.

     Format:
          <aut-num> <relative cost> <default-expression>

          where <aut-num> is the AS peer you will default route to,

          and <relative cost> is the relative cost is a positive integer
          used to express a preference for default. There is no
          relationship to the cost used in the as-in tag. The AS peer
          with the lowest cost is used for default over ones with higher
          costs.

          <default-expression> is optional and provides information on
          how a default route is selected. It can take the following
          formats:

          1.   static. This indicates that a default is statically
               configured to this AS peer.

          2.   A route list with the syntax as described in the as-in
               attribute. This indicates that this list of routes is
               used to generate a default route. A special but valid
               value in this is the special route used by some routing
               protocols to indicate default: 0.0.0.0/0

          3.   default. This is the same as {0.0.0.0/0}. This means that
               the routing protocol between these two peers generates a
               true default.

     Examples:

          default: AS1755 10
          default: AS786   5 {140.222.0.0/16, 192.87.45.0/24}
          default: AS2043 15 default

     Status: optional, multiple lines allowed




Bates, et al.                                                  [Page 64]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


tech-c:
     Full name or uniquely assigned NIC-handle of a technical contact
     person. This is someone to be contacted for technical problems such
     as misconfiguration.

     Format:
          <firstname> <initials> <lastname> or <nic-handle>

     Example:

          tech-c: John E Doe
          tech-c: JED31

     Status: mandatory, multiple lines allowed

admin-c:
     Full name or uniquely assigned NIC-handle of an administrative
     contact person. In many cases this would be the name of the
     guardian.

     Format:
          <firstname> <initials> <lastname>  or  <nic-handle>

     Example:

          admin-c: Joe T Bloggs
          admin-c: JTB1

     Status: mandatory, multiple lines allowed

guardian:
     Mailbox of the guardian of the Autonomous system.

     Format:
          <email-address>

          The <email-address> should be in RFC822 domain format wherever
          possible.

     Example:

          guardian: as1104-guardian@nikhef.nl

     Status: mandatory, only one line and e-mail address allowed







Bates, et al.                                                  [Page 65]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


remarks:
     Remarks/comments, to be used only for clarification.

     Format:
          free text

     Example:

          remarks: Multihomed AS talking to AS1755 and AS786
          remarks: Will soon connect to AS1104 also.

     Status: optional, multiple lines allowed

notify:
     The notify attribute contains an email address to which
     notifications of changes to this object should be sent. See also
     [11].

     Format:
          <email-address>

          The <email-address> should be in RFC822 domain syntax wherever
          possible.

     Example:

          notify: Marten.Terpstra@ripe.net

     Status: optional, multiple lines allowed

mnt-by:
     The mnt-by attribute contains a registered maintainer name.  See
     also [11].

     Format:
          <registered maintainer name>

     Example:

          mnt-by: RIPE-DBM

     Status: optional, multiple lines allowed

changed:
     Who changed this object last, and when was this change made.

     Format:
          <email-address> YYMMDD



Bates, et al.                                                  [Page 66]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


          <email-address> should be the address of the person who made
          the last change. YYMMDD denotes the date this change was made.

     Example:

          changed: johndoe@terabit-labs.nn 900401

     Status: mandatory, multiple lines allowed

source:
     Source of the information.

     This is used to separate information from different sources kept by
     the same database software. For RIPE database entries the value is
     fixed to RIPE.

     Format:
          RIPE
     Status: mandatory, only one line allowed
































Bates, et al.                                                  [Page 67]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


Appendix B - Syntax details for the community object.

   Here is a summary of the tags associated with community object itself
   and their status. The first column specifies the attribute, the
   second column whether this attribute is mandatory in the community
   object, and the third column whether this specific attribute can
   occur only once per object [single], or more than once [multiple].
   When specifying multiple lines per attribute, the attribute name must
   be repeated. See [6] the example for the descr: attribute.


   community:      [mandatory]          [single]
   descr:          [mandatory]          [multiple]
   authority:      [mandatory]          [single]
   guardian:       [mandatory]          [single]
   tech-c:         [mandatory]          [multiple]
   admin-c:        [mandatory]          [multiple]
   remarks:        [optional]           [multiple]
   notify:         [optional]           [multiple]
   mnt-by:         [optional]           [multiple]
   changed:        [mandatory]          [multiple]
   source:         [mandatory]          [single]


   Each attribute has the following syntax:


   community:
        Name of the community. The name of the community should be
        descriptive of the community it describes.

        Format:
             Upper case text string which cannot start with "AS" or any
             of the <routing policy expression> KEYWORDS. See Appendix
             A.

        Example:

             community: WCW

        Status: mandatory, only one line allowed










Bates, et al.                                                  [Page 68]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   descr:
        A short description of the community represented.

        Format:
             free text

        Example:

             descr: Science Park Watergraafsmeer
             descr: Amsterdam

        Status: mandatory, multiple lines allowed

   authority:
        The formal authority for this community. This could be an
        organisation, institute, committee, etc.

        Format:
             free text

        Example:

             authority:  WCW LAN Committee

        Status: mandatory, only one line allowed

   guardian:
        Mailbox of the guardian of the community.

        Format:
             <email-address>

             The <email-address> should be in RFC822 domain format
             wherever possible.

        Example:

             guardian: wcw-guardian@nikhef.nl

        Status: mandatory, only one line and email address allowed

   tech-c:
        Full name or uniquely assigned NIC-handle of an technical
        contact person for this community.







Bates, et al.                                                  [Page 69]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


        Format:
             <firstname> <initials> <lastname> or <nic-handle>

        Example:

             tech-c: John E Doe
             tech-c: JED31

        Status: mandatory, multiple lines allowed

   admin-c:
        Full name or uniquely assigned NIC-handle of an administrative
        contact person. In many cases this would be the name of the
        guardian.

        Format:
             <firstname> <initials> <lastname> or <nic-handle>

        Example:

             admin-c: Joe T Bloggs
             admin-c: JTB1

        Status: mandatory, multiple lines allowed

   remarks:
        Remarks/comments, to be used only for clarification.

        Format:
             free text

        Example:

             remarks: Temporary community
             remarks: Will be removed after split into ASes

        Status: optional, multiple lines allowed

   notify:
        The notify attribute contains an email address to which
        notifications of changes to this object should be send. See also
        [11].

        Format:
             <email-address>

             The <email-address> should be in RFC822 domain syntax
             wherever possible.



Bates, et al.                                                  [Page 70]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


        Example:

             notify: Marten.Terpstra@ripe.net

        Status: optional, multiple lines allowed

   mnt-by:
        The mnt-by attribute contains a registered maintainer name.  See
        also [11].

        Format:
             <registered maintainer name>

        Example:

             mnt-by: RIPE-DBM

        Status: optional, multiple lines allowed

   changed:
        Who changed this object last, and when was this change made.

        Format:
             <email-address> YYMMDD

             <email-address> should be the address of the person who
             made the last change. YYMMDD denotes the date this change
             was made.

        Example:

             changed: johndoe@terabit-labs.nn 900401

        Status: mandatory, multiple lines allowed

   source:
        Source of the information.

        This is used to separate information from different sources kept
        by the same database software. For RIPE database entries the
        value is fixed to RIPE.

        Format:
             RIPE
        Status: mandatory, only one line allowed






Bates, et al.                                                  [Page 71]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


Appendix C - AS Macros syntax definition.

   Here is a summary of the tags associated with as-macro object itself
   and their status. The first column specifies the attribute, the
   second column whether this attribute is mandatory in the as-macro
   object, and the third column whether this specific attribute can
   occur only once per object [single], or more than once [multiple].
   When specifying multiple lines per attribute, the attribute name must
   be repeated. See [6] the example for the descr: attribute.


   as-macro:     [mandatory]          [single]
   descr:        [mandatory]          [multiple]
   as-list:      [mandatory]          [multiple]
   guardian:     [mandatory]          [single]
   tech-c:       [mandatory]          [multiple]
   admin-c:      [mandatory]          [multiple]
   remarks:      [optional]           [multiple]
   notify:       [optional]           [multiple]
   mnt-by:       [optional]           [multiple]
   changed:      [mandatory]          [multiple]
   source:       [mandatory]          [single]


   Each attribute has the following syntax:


   as-macro:
        The name of a macro containing at least two Autonomous Systems
        grouped together for ease of administration.

        Format:
             AS-<string>

             The <string> should be in upper case and not contain any
             special characters.

        Example:

             as-macro: AS-EBONE

        Status: mandatory, only one line allowed

   descr:
        A short description of the Autonomous System Macro.

        Format:
             free text



Bates, et al.                                                  [Page 72]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


        Example:

             descr:  Macro for EBONE connected ASes

        Status: mandatory, multiple lines allowed

   as-list:
        The list of ASes or other AS macros that make up this macro. It
        should be noted that recursive use of AS macros is to be
        encouraged.

        Format:
             <aut-num> <as-macro> ...

             See Appendix A for <aut-num> definition.

        Example:

             as-list: AS786 AS513 AS1104
             as-list: AS99 AS-NORDUNET

        Status: mandatory, multiple lines allowed

   guardian:
        Mailbox of the guardian of this AS macro.

        Format:
             <email-address>

             The <email-address> should be in RFC822 domain format
             wherever possible.

        Example:

             guardian: as-ebone-guardian@ebone.net

        Status: mandatory, only one line and e-mail address allowed

   tech-c:
        Full name or uniquely assigned NIC-handle of a technical contact
        person for this macro. This is someone to be contacted for
        technical problems such as misconfiguration.

        Format:
             <firstname> <initials> <lastname> or <nic-handle>






Bates, et al.                                                  [Page 73]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


        Examples:

             tech-c: John E Doe
             tech-c: JED31

        Status: mandatory, multiple lines allowed

   admin-c:
        Full name or uniquely assigned NIC-handle of an administrative
        contact person. In many cases this would be the name of the
        guardian.

        Format:
             <firstname> <initials> <lastname> or <nic-handle>

        Examples:

             admin-c: Joe T Bloggs
             admin-c: JTB1

        Status: mandatory, multiple lines allowed

   remarks:
        Remarks/comments, to be used only for clarification.

        Format:
             free text

        Example:

             remarks: AS321 will be removed from this Macro shortly

        Status: optional, multiple lines allowed

   notify:
        The notify attribute contains an email address to which
        notifications of changes to this object should be send. See also
        [11].

        Format:
             <email-address>

             The <email-address> should be in RFC822 domain syntax
             wherever possible.

        Example:

             notify: Marten.Terpstra@ripe.net



Bates, et al.                                                  [Page 74]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


        Status: optional, multiple lines allowed

   mnt-by:
        The mnt-by attribute contains a registered maintainer name.  See
        also [11].

        Format:
             <registered maintainer name>

        Example:

             mnt-by: RIPE-DBM

        Status: optional, multiple lines allowed

   changed:
        Who changed this object last, and when was this change made.

        Format:
             <email-address> YYMMDD

             <email-address> should be the address of the person who
             made the last change. YYMMDD denotes the date this change
             was made.

        Example:

             changed: johndoe@terabit-labs.nn 900401

        Status: mandatory, multiple lines allowed

   source:
        Source of the information.

        This is used to separate information from different sources kept
        by the same database software. For RIPE database entries the
        value is fixed to RIPE.

        Format:
             RIPE
        Status: mandatory, only one line allowed










Bates, et al.                                                  [Page 75]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


Appendix D - Syntax for the "route" object.

   There is a summary of the tags associated with route object itself
   and their status. The first column specifies the attribute, the
   second column whether this attribute is mandatory in the community
   object, and the third column whether this specific attribute can
   occur only once per object [single], or more than once [multiple].
   When specifying multiple lines per attribute, the attribute name must
   be repeated. See [6] the example for the descr: attribute.


   route:          [mandatory]          [single]
   descr:          [mandatory]          [multiple]
   origin:         [mandatory]          [single]
   hole:           [optional]           [multiple]
   withdrawn:      [optional]           [single]
   comm-list:      [optional]           [multiple]
   remarks:        [optional]           [multiple]
   notify:         [optional]           [multiple]
   mnt-by:         [optional]           [multiple]
   changed:        [mandatory]          [multiple]
   source:         [mandatory]          [single]


   Each attribute has the following syntax:


   route:
        Route being announced.

        Format:
             Classless representation of a route with the RIPE database
             known as the "prefix length" representation. See [10] for
             more details on classless representations.

        Examples:

             route: 192.87.45.0/24

             This represents addressable bits 192.87.45.0 to
             192.87.45.255.

             route: 192.1.128.0/17

             This represents addressable bits 192.1.128.0 to
             192.1.255.255.

        Status: mandatory, only one line allowed



Bates, et al.                                                  [Page 76]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   origin:
        The autonomous system announcing this route.

        Format:
             <aut-num>

             See Appendix A for <aut-num> syntax.

        Example:

             origin: AS1104

        Status: mandatory, only one line allowed

   hole:
        Denote the parts of the address space covered this route object
        to which the originator does not provide connectivity. These
        holes may include routes that are being currently routed by
        another provider (e.g., a customer using that space has moved to
        a different service provider).  They may also include space that
        has not yet been assigned to any customer.

        Format:
             Classless representation of a route with the RIPE database
             known as the "prefix length" representation. See [10] for
             more details on classless representations. It should be
             noted that this sub-aggregate must be a component of that
             registered in the route object.

        Example:

             hole: 193.0.4.0/24

        Status: optional, multiple lines allowed

   withdrawn:
        Used to denote the day this route has been withdrawn from the
        Internet routing mesh. This will be usually be used when a less
        specific aggregate route is now routed the more specific (i.e.
        this route) is not need anymore.

        Format:
             YYMMDD

             YYMMDD denotes the date this route was withdrawn.






Bates, et al.                                                  [Page 77]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


        Example:

             withdrawn: 940711

        Status: optional, one line allowed.

   comm-list:
        List of one or more communities this route is part of.

        Format:
             <community> <community> ...

             See Appendix B for <community> definition.

        Example:

             comm-list: HEP LEP

        Status: optional, multiple lines allowed

   remarks:
        Remarks/comments, to be used only for clarification.

        Format:
             free text

        Example:

             remarks: Multihomed AS talking to AS1755 and AS786
             remarks: Will soon connect to AS1104 also.

        Status: optional, multiple lines allowed

   notify:
        The notify attribute contains an email address to which
        notifications of changes to this object should be send. See also
        [11].

        Format:
             <email-address>

             The <email-address> should be in RFC822 domain syntax
             wherever possible.

        Example:

             notify: Marten.Terpstra@ripe.net




Bates, et al.                                                  [Page 78]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


        Status: optional, multiple lines allowed

   mnt-by:
        The mnt-by attribute contains a registered maintainer name.  See
        also [11].

        Format:
             <registered maintainer name>

        Example:

             mnt-by: RIPE-DBM

        Status: optional, multiple lines allowed

   changed:
        Who changed this object last, and when was this change made.

        Format:
             <email-address> YYMMDD

             <email-address> should be the address of the person who
             made the last change. YYMMDD denotes the date this change
             was made.

        Example:

             changed: johndoe@terabit-labs.nn 900401

        Status: mandatory, multiple lines allowed

   source:
        Source of the information.

        This is used to separate information from different sources kept
        by the same database software. For RIPE database entries the
        value is fixed to RIPE.

        Format:
             RIPE
        Status: mandatory, only one line allowed










Bates, et al.                                                  [Page 79]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


Appendix E - List of reserved words

   The following list of words are reserved for use within the
   attributes of the AS object. The use of these words is solely for the
   purpose of clarity. All keywords must be lower case.


           accept
           announce
           exclude
           from
           to
           transit


   Examples of the usage of the reserved words are:

   as-in: from <neighborAS> accept <route>

   as-out: to <neighborAS> announce <route>

   as-exclude: exclude <ASpath> to <destination>

   as-transit: transit <ASpath> to <destination>

   default: from <neighborAS> accept <route>

   default: to <neighborAS> announce <route>


   Note: that as-transit is an experimental attribute. See section 10.




















Bates, et al.                                                  [Page 80]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


Appendix F - Motivations for RIPE-81++

   This appendix gives motivations for the major changes in this
   proposal from ripe-81.

   The main goals of the routing registry rework are:


     SPLIT
        Separate the allocation and routing registry functions into
        different database objects. This will facilitate data management
        if the Internet registry and routing registry functions are
        separated (like in other parts of the world). It will also make
        more clear what is part of the routing registry and who has
        authority to change allocation vs. routing data.


      CIDR
        Add the possibility to specify classless routes in the routing
        registry.  Classless routes are being used in Internet
        production now.  Aggregation information in the routing registry
        is necessary for network layer troubleshooting. It is also
        necessary because aggregation influences routing policies
        directly.


     CALLOC
        Add the possibility to allocate address space on classless
        boundaries in the allocation registry. This is a way to preserve
        address space.


     CLEAN
        To clean up some of the obsolete and unused parts of the routing
        registry.


   The major changes are now discussed in turn:


   Introduce Classless Addresses

   CIDR, CALLOC


   Introduce route object.

   SPLIT, CIDR and CALLOC.



Bates, et al.                                                  [Page 81]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


   Delete obsolete attributes from inetnum.

   CLEAN.


   Delete RIPE-DB and LOCAL from routing policy expressions.

   CLEAN


   Allow multiple ASes to originate the same route

   Because it is being done. CIDR. Made possible by SPLIT.






































Bates, et al.                                                  [Page 82]

RFC 1786        Representing IP Routing Policies in a RR      March 1995


Appendix G - Transition strategy from RIPE-81 to RIPE-81++

Transition from the routing registry described by ripe-81 to the routing
registry described in this document is a straightforward process once
the new registry functions have been implemented in the database
software and are understood by the most commonly used registry tools.
The routing related attributes in the classful inetnum objects of ripe-
81 can be directly translated into new routing objects. Then these
attributes can be deleted from the inetnum object making that object if
conform to the new schema.

Proposed transition steps:


  1) Implement classless addresses and new object definition in the
     database software.


  2) Make common tools understand the new schema and prefer it if both
     old and new are present.


  3) Invite everyone to convert their data to the new format.  This can
     be encouraged by doing conversions automatically and proposing them
     to maintainers.


  4) At a flag day remove all remaining routing information from the
     inetnum objects.  Before the flag day all usage of obsoleted
     inetnum attributes has to cease and all other routing registry
     functions have to be taken over by the new objects and attributes.




















Bates, et al.                                                  [Page 83]