summaryrefslogtreecommitdiff
path: root/doc/rfc/rfc994.txt
blob: abe8c9b8994a440eddbc07bee00cb11b36e92cf5 (plain) (blame)
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
Network Working Group                                   ANSI X3S3.3 86-80
Request for Comments: 994                             ISO TC97/SC6/N 3998
                                                               March 1986





                                 I S O
             INTERNATIONAL ORGANIZATION FOR STANDARDIZATION
              ORGANISATION INTERNATIONALE DE NORMALISATION

     ______________________________________________________________________
    |                                                                     |
    |                            ISO/TC 97/SC 6                           |
    |                TELECOMMUNICATIONS AND INFORMATION                   |
    |                     EXCHANGE BETWEEN SYSTEMS                        |
    |                       Secretariat: USA (ANSI)                       |
    |                                                                     |
    |                                                                     |
    |_____________________________________________________________________|




Title:  Final Text of DIS 8473, Protocol for Providing the Connectionless-
        mode Network Service

Source:  DIS 8473 Editor

























ISO 8473                                                        [Page 1]
^L
RFC 994                                                    December 1986


Contents

1   Scope and Field of Application                                         6

2   References                                                             7


SECTION ONE. GENERAL                                                       9

3   Definitions                                                            9
    3.1   Reference Model Definitions  . . . . . . . . . . . . . . . . .   9
    3.2   Service Conventions Definitions  . . . . . . . . . . . . . . .   9
    3.3   Network Layer Architecture Definitions . . . . . . . . . . . .   9
    3.4   Network Layer Addressing Definitions . . . . . . . . . . . . .  10
    3.5   Additional Definitions . . . . . . . . . . . . . . . . . . . .  10

4   Symbols and Abbreviations                                             11
    4.1   Data Units   . . . . . . . . . . . . . . . . . . . . . . . . .  11
    4.2   Protocol Data Units  . . . . . . . . . . . . . . . . . . . . .  11
    4.3   Protocol Data Unit Fields  . . . . . . . . . . . . . . . . . .  11
    4.4   Parameters . . . . . . . . . . . . . . . . . . . . . . . . . .  11
    4.5   Miscellaneous  . . . . . . . . . . . . . . . . . . . . . . . .  11

5   Overview of the Protocol                                              12
    5.1   Internal Organization of the Network Layer . . . . . . . . . .  12
    5.2   Subsets of the Protocol  . . . . . . . . . . . . . . . . . . .  12
    5.3   Addresses and Titles . . . . . . . . . . . . . . . . . . . . .  13
          5.3.1   Addresses  . . . . . . . . . . . . . . . . . . . . . .  13
          5.3.2   Network-entity Titles  . . . . . . . . . . . . . . . .  13
    5.4   Service Provided by the Network Layer  . . . . . . . . . . . .  14
    5.5   Underlying Service Assumed by the Protocol . . . . . . . . . .  14
          5.5.1   Subnetwork Points of Attachment  . . . . . . . . . . .  15
          5.5.2   Subnetwork Quality of Service  . . . . . . . . . . . .  15
          5.5.3   Subnetwork User Data   . . . . . . . . . . . . . . . .  16
          5.5.4   Subnetwork Dependent Convergence Functions . . . . . .  16
    5.6   Service Assumed from Local Environment . . . . . . . . . . . .  16


SECTION  TWO.  SPECIFICATION  OF  THE  PROTOCOL                           18

6   Protocol Functions                                                    18
    6.1   PDU Composition Function . . . . . . . . . . . . . . . . . . .  18
    6.2   PDU Decomposition Function . . . . . . . . . . . . . . . . . .  19
    6.3   Header Format Analysis Function  . . . . . . . . . . . . . . .  19










ISO 8473                                                        [Page 2]
^L
RFC 994                                                    December 1986


    6.4   PDU Lifetime Control Function  . . . . . . . . . . . . . . . .  20
    6.5   Route PDU Function . . . . . . . . . . . . . . . . . . . . . .  20
    6.6   Forward PDU Function . . . . . . . . . . . . . . . . . . . . .  21
    6.7   Segmentation Function  . . . . . . . . . . . . . . . . . . . .  21
    6.8   Reassembly Function  . . . . . . . . . . . . . . . . . . . . .  22
    6.9   Discard PDU Function . . . . . . . . . . . . . . . . . . . . .  23
    6.10  Error Reporting Function . . . . . . . . . . . . . . . . . . .  24
          6.10.1  Overview . . . . . . . . . . . . . . . . . . . . . . .  24
          6.10.2  Requirements . . . . . . . . . . . . . . . . . . . . .  25
          6.10.3  Processing of Error Reports  . . . . . . . . . . . . .  25
          6.10.4  Relationship of Data PDU Options to Error Reports  . .  26
    6.11  PDU Header Error Detection . . . . . . . . . . . . . . . . . .  27
    6.12  Padding Function . . . . . . . . . . . . . . . . . . . . . . .  28
    6.13  Security . . . . . . . . . . . . . . . . . . . . . . . . . . .  28
    6.14  Source Routing Function  . . . . . . . . . . . . . . . . . . .  28
    6.15  Record Route Function  . . . . . . . . . . . . . . . . . . . .  29
    6.16  Quality of Service Maintenance Function  . . . . . . . . . . .  30
    6.17  Priority Function  . . . . . . . . . . . . . . . . . . . . . .  31
    6.18  Congestion Notification Function . . . . . . . . . . . . . . .  31
    6.19  Classification of Functions  . . . . . . . . . . . . . . . . .  31

7   Structure and Encoding of PDUs                                        33
    7.1   Structure  . . . . . . . . . . . . . . . . . . . . . . . . . .  33
    7.2   Fixed Part . . . . . . . . . . . . . . . . . . . . . . . . . .  34
          7.2.1   General  . . . . . . . . . . . . . . . . . . . . . . .  34
          7.2.2   Network Layer Protocol Identifier  . . . . . . . . . .  34
          7.2.3   Length Indicator   . . . . . . . . . . . . . . . . . .  35
          7.2.4   Version/Protocol Identifier Extension  . . . . . . . .  35
          7.2.5   PDU Lifetime   . . . . . . . . . . . . . . . . . . . .  35
          7.2.6   Flags  . . . . . . . . . . . . . . . . . . . . . . . .  35
                  7.2.6.1   Segmentation Permitted . . . . . . . . . . .  35
                  7.2.6.2   More Segments  . . . . . . . . . . . . . . .  35
                  7.2.6.3   Error Report   . . . . . . . . . . . . . . .  36
          7.2.7   Type Code  . . . . . . . . . . . . . . . . . . . . . .  36
          7.2.8   PDU Segment Length   . . . . . . . . . . . . . . . . .  36
          7.2.9   PDU Checksum   . . . . . . . . . . . . . . . . . . . .  36
    7.3   Address Part   . . . . . . . . . . . . . . . . . . . . . . . .  37
          7.3.1   General  . . . . . . . . . . . . . . . . . . . . . . .  37
                  7.3.1.1   Destination and Source Addresses . . . . . .  37
    7.4   Segmentation Part  . . . . . . . . . . . . . . . . . . . . . .  38
          7.4.1   Data Unit Identifier . . . . . . . . . . . . . . . . .  38
          7.4.2   Segment Offset . . . . . . . . . . . . . . . . . . . .  38
          7.4.3   PDU Total Length . . . . . . . . . . . . . . . . . . .  39
    7.5   Options Part   . . . . . . . . . . . . . . . . . . . . . . . .  39
          7.5.1   General  . . . . . . . . . . . . . . . . . . . . . . .  39
          7.5.2   Padding  . . . . . . . . . . . . . . . . . . . . . . .  40
          7.5.3   Security . . . . . . . . . . . . . . . . . . . . . . .  40
                  7.5.3.1   Source Address Specific  . . . . . . . . . .  41
                  7.5.3.2   Destination Address Specific . . . . . . . .  41
                  7.5.3.3   Globally Unique Security . . . . . . . . . .  41
          7.5.4   Source Routing   . . . . . . . . . . . . . . . . . . .  41



ISO 8473                                                        [Page 3]
^L
RFC 994                                                    December 1986


          7.5.5   Recording of Route . . . . . . . . . . . . . . . . . .  42
          7.5.6   Quality of Service Maintenance . . . . . . . . . . . .  43
                  7.5.6.1   Source Address Specific  . . . . . . . . . .  43
                  7.5.6.2   Destination Address Specific . . . . . . . .  43
                  7.5.6.3   Globally Unique QoS  . . . . . . . . . . . .  43
          7.5.7   Priority   . . . . . . . . . . . . . . . . . . . . . .  44
    7.6   Data Part  . . . . . . . . . . . . . . . . . . . . . . . . . .  45
    7.7   Data (DT) PDU  . . . . . . . . . . . . . . . . . . . . . . . .  46
          7.7.1   Structure  . . . . . . . . . . . . . . . . . . . . . .  46
          7.7.1.1   Fixed Part . . . . . . . . . . . . . . . . . . . . .  47
          7.7.1.2   Addresses  . . . . . . . . . . . . . . . . . . . . .  47
          7.7.1.3   Segmentation . . . . . . . . . . . . . . . . . . . .  47
          7.7.1.4   Options  . . . . . . . . . . . . . . . . . . . . . .  47
          7.7.1.5   Data   . . . . . . . . . . . . . . . . . . . . . . .  47
    7.8   Inactive Network Layer Protocol  . . . . . . . . . . . . . . .  47
          7.8.1   Network Layer Protocol Id  . . . . . . . . . . . . . .  47
          7.8.2   Data Field   . . . . . . . . . . . . . . . . . . . . .  47
    7.9   Error Report PDU (ER)  . . . . . . . . . . . . . . . . . . . .  48
          7.9.1   Structure  . . . . . . . . . . . . . . . . . . . . . .  48
                  7.9.1.1   Fixed Part . . . . . . . . . . . . . . . . .  49
                  7.9.1.2   Addresses  . . . . . . . . . . . . . . . . .  49
                  7.9.1.3   Options  . . . . . . . . . . . . . . . . . .  49
                  7.9.1.4   Reason for Discard . . . . . . . . . . . . .  50
                  7.9.1.5   Error Report Data Field  . . . . . . . . . .  51

8   Conformance                                                           51
    8.1   Provision of Functions for Conformance . . . . . . . . . . . .  51


List of Tables

1     Service Primitives for Underlying Service  . . . . . . . . . . . .  14
2     Service Primitives for Underlying Service  . . . . . . . . . . . .  14
3     Timer Primitives   . . . . . . . . . . . . . . . . . . . . . . . .  14
4     Categorization of Protocol Functions . . . . . . . . . . . . . . .  32
5     Valid PDU Types  . . . . . . . . . . . . . . . . . . . . . . . . .  36
6     Encoding of Option Parameters  . . . . . . . . . . . . . . . . . .  39
7     Reason for Discard . . . . . . . . . . . . . . . . . . . . . . . .  50
8     Categorization of Functions  . . . . . . . . . . . . . . . . . . .  52


List of Figures

1     Interrelationship of Standards   . . . . . . . . . . . . . . . . .   6
2     PDU Structure  . . . . . . . . . . . . . . . . . . . . . . . . . .  34
3     PDU Header -- Fixed Part . . . . . . . . . . . . . . . . . . . . .  34
4     PDU Header -- Address Part   . . . . . . . . . . . . . . . . . . .  37
5     Address Parameters . . . . . . . . . . . . . . . . . . . . . . . .  38
6     PDU Header -- Segmentation Part  . . . . . . . . . . . . . . . . .  38
7     PDU Header -- Options Part . . . . . . . . . . . . . . . . . . . .  39
8     PDU Header -- Data Field   . . . . . . . . . . . . . . . . . . . .  45



ISO 8473                                                        [Page 4]
^L
RFC 994                                                    December 1986


9     DT PDU   . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  46
10    Inactive Network Layer Protocol  . . . . . . . . . . . . . . . . .  47
11    Error Report PDU . . . . . . . . . . . . . . . . . . . . . . . . .  48



















































ISO 8473                                                        [Page 5]
^L
RFC 994                                                    December 1986


0     Introduction

   This Protocol Standard is one of a set of International Standards
   produced to facilitate the interconnection of open systems. The set
   of standards covers the services and protocols required to achieve
   such interconnection.

   This Protocol Standard is positioned with respect to other related
   standards by the layers defined in the Reference Model for Open Sys-
   tems Interconnection (ISO 7498).  In particular, it is a protocol of
   the Network Layer. This Protocol may be used between network-entities
   in end systems or in Network Layer relay systems (or both).  It pro-
   vides the Connectionless-mode Network Service as defined in Addendum
   1 to the Network Service Definition Covering Connectionless-mode
   Transmission (ISO 8348/AD1).

   The interrelationship of these standards is illustrated in Figure 1
   below:


   --------------------+--- ISO NETWORK SERVICE PROVIDER -----^-----------------
                       |                                      |
                       |                                      |
                       |                                      |
           PROTOCOL    |  REFERENCE TO AIMS  -----------------+
                       |
        SPECIFICATION  |  REFERENCE TO ASSUMPTIONS -----------+
                       |                                      |
                       |                                      |
                       |                                      |
   --------------------+---SUBNETWORK SERVICE DEFINITION(S)---v-----------------

                 Figure 1: Interrelationship of Standards


1     Scope and Field of Application

   This International Standard specifies a protocol which is used to
   provide the Connectionless-mode Network Service as described in Ad-
   dendum 1 to the Network Service Definition Covering Connectionless-
   mode Transmission.  The protocol relies upon the provision of an
   underlying connectionless-mode service by real subnetworks and/or
   data links. The underlying connectionless-mode service assumed by the
   protocol may be obtained either directly, from a connectionless-mode
   real subnetwork, or indirectly, through the operation of an appropri-
   ate Subnetwork Dependent Convergence Function (SNDCF) or Protocol
   (SNDCP) over a connection-mode real subnetwork as described in ISO
   8648, Internal Organization of the Network Layer.






ISO 8473                                                        [Page 6]
^L
RFC 994                                                    December 1986


      This Standard specifies:

      a)  procedures for the connectionless transmission of data and
          control information from one network-entity to a peer
          network-entity;

      b)  the encoding of the protocol data units (PDUs) used for the
          transmission of data and control information, comprising a
          variable-length protocol header format;

      c)  procedures for the correct interpretation of protocol control
          information; and

      d)  the functional requirements for implementations claiming
          conformance to the Standard.

      The procedures are defined in terms of:

      a)  the interactions among peer network-entities through the
          exchange of protocol data units;

      b)  the interactions between a network-entity and a Network Service
          user through the exchange of Network Service primitives; and

      c)  the interactions between a network-entity and an underlying
          service provider through the exchange of service primitives.

2     References

   ISO 7498, Information Processing Systems --- Open Systems Intercon-
   nection --- Basic Reference Model

   DIS 7498/AD1, Information Processing Systems --- Open Systems In-
   terconnection --- Addendum to ISO 7498 Covering Connectionless-mode
   Transmission

   ISO 8348, Information Processing Systems --- Telecommunications and
   Information Exchange between Systems --- Network Service Definition

   ISO 8348/AD1, Information Processing Systems --- Telecommunications
   and Information Exchange between Systems --- Addendum to the Net-
   work Service Definition Covering Connectionless-mode Transmission

   ISO 8348/AD2, Information Processing Systems --- Telecommunications
   and Information Exchange between Systems --- Addendum to the Net-
   work Service Definition Covering Network Layer Addressing*

   DIS 8648, Information Processing Systems --- Telecommunications and
   Information Exchange between Systems --- Internal Organization of the
   Network Layer




ISO 8473                                                        [Page 7]
^L
RFC 994                                                    December 1986


   ISO 8509, Technical Report --- OSI Service Conventions

   ISO 9074, A Formal Description Technique based on an Extended State
   Transition Model
________________________________
     *At present, at the stage of Draft; publication anticipated in
      due course.















































ISO 8473                                                        [Page 8]
^L
RFC 994                                                    December 1986


                          SECTION  ONE.  GENERAL

3     Definitions

3.1   Reference Model Definitions

   This document makes use of the following concepts defined in ISO 7498:

     (a)  End system

     (b)  Network entity

     (c)  Network layer

     (d)  Network protocol

     (e)  Network protocol data unit

     (f)  Network relay

     (g)  Network service

     (h)  Network service access point

     (i)  Network service access point address

     (j)  Routing

     (k)  Service

     (l)  Service data unit

3.2   Service Conventions Definitions

   This Protocol Standard makes use of the following terms from the OSI
   Service Conventions Technical Report (ISO TR 8509):

     (a)  Service provider

     (b)  Service user

3.3   Network Layer Architecture Definitions

   This Protocol Standard makes use of the following terms from the
   Internal Organization of the Network Layer (ISO 8648):

     (a)  Intermediate system

     (b)  Relay system

     (c)  Subnetwork



ISO 8473                                                        [Page 9]
^L
RFC 994                                                    December 1986


3.4   Network Layer Addressing Definitions

   This Protocol Standard makes use of the following terms from ISO 8348/AD2,
   Addendum to the Network Service Definition Covering Network Layer
   addressing:

     (a)  Network addressing domain

     (b)  Network protocol address information

     (c)  Subnetwork point of attachment

3.5   Additional Definitions

   For the purposes of this Protocol Standard, the following definitions
   apply:

     (a)  derived PDU --- a protocol data unit whose fields are identical
          to those of an initial PDU, except that it carries only a segment
          of the user data from an N-UNITDATA request.

     (b)  initial PDU --- a protocol data unit carrying the whole of the
          userq data from an N-UNITDATA request.

     (c)  local matter --- a decision made by a system concerning its
          behavior in the Network Layer that is not prescribed or
          constrained by this Protocol Standard.

     (d)  network-entity title --- an identifier for a network-entity
          which has the same abstract syntax as an NSAP address, and which
          can be used to unambiguously identify a network-entity in an end
          or intermediate system.

     (e)  reassembly --- the act of regenerating an initial PDU from two
          or more derived PDUs.

     (f)  segment --- a distinct unit of data consisting of part or all
          of the user data provided in the N-UNITDATA request and delivered
          in the N-UNITDATA indication.

     (g)  segmentation --- the act of generating two or more derived PDUs
          from an initial or derived PDU. The derived PDUs together carry
          the entire user data of the initial or derived PDU from which they
          were generated.

                                       Note:
          It is possible that such an initial PDU will never actually be
          generated for a particular N-UNITDATA request, owing to the
          immediate application of segmentation.





ISO 8473                                                       [Page 10]
^L
RFC 994                                                    December 1986


4     Symbols and Abbreviations

4.1   Data Units

     NSDU      Network Service Data Unit
     PDU       Protocol Data Unit
     SNSDU     Subnetwork Service Data Unit

4.2     Protocol Data Units
     DT PDU    Data Protocol Data Unit
     ER PDU    Error Report Protocol Data Unit

4.3     Protocol Data Unit Fields

     CS        Checksum
     DA        Destination Address
     DAL       Destination Address Length
     DUID      Data Unit Identifier
     E/R       Error Report Flag
     LI        Length Indicator
     LT        Lifetime
     MS        More Segments Flag
     NLPID     Network Layer Protocol Identifier
     SA        Source Address
     SAL       Source Address Length
     SL        Segment Length
     SO        Segment Offset
     SP        Segmentation Permitted Flag
     TL        Total Lengt
     TP        Type
     V/P       Version/Protocol Identifier Extension

4.4     Parameters

     DA      Destination Address
     QOS     Quality of Service
     SA      Source Address

4.5     Miscellaneous

     CLNP       Connectionless-mode Network Protocol
     NS         Network Service
     NPAI       Network Protocol Address Information
     NSAP       Network Service Access Point
     SDU        Service Data Uni
     SN         Subnetwork
     SNDCF      Subnetwork Dependent Convergence Function
     SNDCP      Subnetwork Dependent Convergence Protocol
     SNICP      Subnetwork Independent Convergence Protocol
     SNPA       Subnetwork Point of Attachment




ISO 8473                                                       [Page 11]
^L
RFC 994                                                    December 1986


5     Overview of the Protocol

5.1   Internal Organization of the Network Layer

   The architectural organization of the Network Layer is described in a
   separate document, Internal Organization of the Network Layer (ISO
   8648). ISO 8648 identifies and categorizes the way in which functions
   can be performed within the Network Layer by Network Layer protocols,
   thus providing a uniform framework for describing how protocols
   operating either individually or cooperatively in the Network Layer
   can be used to provide the OSI Network Service. This protocol is
   designed to be used in the context of the internetworking protocol
   approach to the provision of the Connectionless-mode Network Service
   defined in that Standard.

   This protocol is intended for use in the Subnetwork Independent Con-
   vergence Protocol (SNICP) role.  A protocol which fulfills the SNICP
   role operates to construct the OSI Network Service over a defined set
   of underlying services, performing functions which are necessary to
   support the uniform appearance of the OSI Connectionless-mode Network
   Service over a homogeneous or heterogeneous set of interconnected
   subnetworks.  This protocol is defined to accommodate variability
   where Subnetwork Dependent Convergence Protocols and/or Subnetwork
   Access Protocols do not provide all of the functions necessary to
   support the Connectionless-mode Network Service over all or part of
   the path from one NSAP to another.

   As described in ISO 8648, a protocol at the Network Layer may fulfill
   different roles in different configurations.  Although this protocol
   is designed particularly to be suitable for a SNICP role in the con-
   text of the internetworking protocol approach to the provision of the
   Connectionless-mode Network Service, it may also be used to fulfill
   other roles and may therefore be used in the context of other ap-
   proaches to subnetwork interconnection.

   The specification of this protocol begins with a definition of the
   underlying service which it assumes. This service is made available
   by the operation of other Network Layer protocols or through provi-
   sion of the Data Link Service. The underlying service assumed by this
   protocol is described in Clause 5.5.

5.2     Subsets of the Protocol

   Two proper subsets of the full protocol are defined which permit the
   use of known subnetwork characteristics and are therefore not subnet-
   work independent.

   The Inactive Network Layer protocol subset is a null-function subset
   which can be used when it is known that the source and destination
   end-systems are connected by a single subnetwork, and when none of
   the functions performed by the full protocol is required to provide



ISO 8473                                                       [Page 12]
^L
RFC 994                                                    December 1986


   the Connectionless-mode Network Service between any pair of end-
   systems.

   The Non-segmenting protocol subset permits simplification of the
   header where it is known that the source and destination end-systems
   are connected by subnetworks whose service data unit sizes are
   greater than or equal to a known bound which is large enough so that
   segmentation is not required. This subset is selected by setting the
   Segmentation Permitted flag to zero.

5.3     Addresses and Titles

   The following Clauses describe the addresses and titles used by this
   Protocol.

5.3.1    Addresses

   The Source Address and Destination Address parameters referred to in
   Clause 7.3 of this International Standard are OSI Network Service Ac-
   cess Point Addresses.  The syntax and semantics of an OSI Network
   Service Access Point Address are described in a separate document,
   ISO 8348/AD2, Addendum to the Network Service Definition Covering
   Network Layer Addressing.

   The encoding used by this protocol to convey NSAP Addresses shall be
   the preferred binary encoding specified in ISO 8348/AD2; the entire
   NSAP address, taken as a whole, is represented explicitly as a string
   of binary octets.  This string is conveyed in its entirety in the ad-
   dress fields described in Clause 7.3. The rules governing the genera-
   tion of the preferred binary encoding are described in ISO 8348/AD2.

5.3.2    Network-entity Titles

   A network-entity title is an identifier for a network-entity in an
   endsystem or intermediate-system. Network-entity titles are allocated
   from the same name space as NSAP addresses, and the determination of
   whether an address is an NSAP address or a network-entity title
   depends on the context in which the address is interpreted. The en-
   tries in the Source Routing and Recording of Route parameters defined
   in Clauses 7.5.4 and 7.5.5 are network-entity titles. The Source Ad-
   dress and Destination Address parameters in the Error Report PDU de-
   fined in Clause 7.9.1.2 are also network-entity titles.

   The encoding used by this protocol to convey network-entity titles
   shall also be the preferred binary encoding; again, the entire
   network-entity title, taken as a whole, is represented explicitly as
   a string of binary octets.  This string is conveyed in its entirety
   in the fields described in Clauses 7.5.4, 7.5.5, and 7.9.1.2.






ISO 8473                                                       [Page 13]
^L
RFC 994                                                    December 1986


5.4     Service Provided by the Network Layer

   The service provided by this protocol is the Connectionless-mode Net-
   work Service described in ISO 8348/AD1, Addendum to the Network Ser-
   vice Definition Covering Connectionless-mode Transmission.  The Net-
   work Service primitives provided are summarized in Table 1:

           _____________________________________________________________
          |             PRIMITIVES                    PARAMETERS        |
          |____________________________________________________________ |
          |  N_UNITDATA         .Request    |  N_Source_Address,        |
          |                     .Indication |  N_Destination_Address,   |
          |                                 |  N_Quality_of_Service,    |
          |                                 |  N_Userdata               |
          |_________________________________|___________________________|

               Table 1: Service Primitives for Underlying Service


   The Addendum to the Network Service Definition Covering
   Connectionless-mode Transmission (ISO 8348/AD1) states that the max-
   imum size of a connectionless-mode Network-service-data-unit (NSDU)
   is limited to 64512 octets.

5.5     Underlying Service Assumed by the Protocol

   The underlying service required to support this protocol is defined
   by the following primitives:

           _____________________________________________________________
          |             PRIMITIVES                    PARAMETERS        |
          |____________________________________________________________ |
          |  SN_UNITDATA        .Request    | SN_Source_Address,        |
          |                     .Indication | SN_Destination_Address,   |
          |                                 | SN_Quality_of_Service,    |
          |                                 | SN_Userdata               |
          |_________________________________|___________________________|

               Table 2: Service Primitives for Underlying Service


                                   Note:
   These service primitives are used to describe the abstract interface
   which exists between the ISO 8473 protocol machine and an underlying
   real subnetwork or a Subnetwork Dependent Convergence Function which
   operates over a real subnetwork or real data link to provide the
   required underlying service.







ISO 8473                                                       [Page 14]
^L
RFC 994                                                    December 1986


5.5.1    Subnetwork Points of Attachment

   The source and destination addresses specify the points of attachment
   to a public or private subnetwork(s) involved in the transmission.
   Subnetwork Point of Attachment addresses (SNPAs) are defined by each
   individual subnetwork authority.

   The syntax and semantics of SNPAs are not defined in this Standard.

5.5.2    Subnetwork Quality of Service

   Subnetwork Quality of Service describes aspects of an underlying
   connectionless-mode service which are attributable solely to the
   underlying service.

   Associated with each connectionless-mode transmission, certain meas-
   ures of Quality of Service are requested when the primitive action is
   initiated.  These requested measures (or parameter values and op-
   tions) are based on a priori knowledge of the service(s) made avail-
   able to it by the subnetwork. Knowledge of the nature and type of
   service available is typically obtained prior to an invocation of the
   underlying connectionless-mode service.

   The Quality of Service parameters identified for the underlying
   connectionless-mode service may in some circumstances be directly
   derivable from or mappable onto those identified in the
   Connectionless-mode Network Service.  The following parameters as de-
   fined in ISO 8348/AD1, Addendum to the Network Service Definition
   Covering Connectionlessmode Transmission, may be employed:

     (a)  transit delay;

     (b)  protection against unauthorized access;

     (c)  cost determinants;

     (d)  priority; and

     (e)  residual error probability.


                                    Note:
        For those subnetworks which do not inherently provide Quality of
        Service as a parameter when the primitive action is initiated, it
        is a local matter as to how the semantics of the service requested
        might be preserved. In particular, there may be instances in which
        the Quality of Service requested cannot be maintained.  In such
        circumstances, an attempt shall be made to deliver the protocol
        data unit at whatever Quality of Service is available.





ISO 8473                                                       [Page 15]
^L
RFC 994                                                    December 1986


5.5.3    Subnetwork User Data

   The SN-Userdata is an ordered multiple of octets, and is transferred
   transparently between the specified subnetwork points of attachment.

   The underlying service assumed by the CLNP is required to support a
   service data unit size of at least 512 octets.

   If the minimum service data unit sizes supported by all of the sub-
   networks involved in the transmission of a particular PDU are known
   to be large enough that segmentation is not required, then the Non-
   segmenting protocol subset may be used.


5.5.4    Subnetwork Dependent Convergence Functions

   Subnetwork Dependent Convergence Functions may be performed to pro-
   vide an underlying connectionless-mode service in the case where a
   real subnetwork does not inherently provide the connectionless-mode
   service assumed by the protocol.  If a subnetwork inherently provides
   a connection-mode service, a Subnetwork Dependent Convergence Func-
   tion provides a mapping into the required underlying service.  Sub-
   network Dependent Convergence Functions may also be required in those
   cases where functions assumed from the underlying service are not
   performed.  In some cases, this may require the operation of an ex-
   plicit protocol (i.e., a protocol involving explicit exchanges of
   protocol control information between peer network-entities) in the
   Subnetwork Dependent Convergence Protocol (SNDCP) role. However,
   there may also be cases where the functionality required to fulfill
   the SNDCP role consists simply of a set of rules for manipulating the
   underlying service.

5.6     Service Assumed from Local Environment

   A timer service must be provided to allow the protocol entity to
   schedule events.

   There are three primitives associated with the S-TIMER service:

      1.  the S--TIMER Request,
      2.  the S--TIMER Response, and
      3.  the S--TIMER Cancel.

   The S--TIMER Request primitive indicates to the local environment
   that it should initiate a timer of the specified name and subscript
   and maintain it for the duration specified by the time parameter.

   The S--TIMER Response primitive is initiated by the local environment
   to indicate that the delay requested by the corresponding S-TIMER Re-
   quest primitive has elapsed.




ISO 8473                                                       [Page 16]
^L
RFC 994                                                    December 1986


   The S--TIMER Cancel primitive is an indication to the local environ-
   ment that the specified timer(s) should be canceled. If the subscript
   parameter is not specified, then all timers with the specified name
   are canceled; otherwise, the timer of the given name and subscript is
   cancelled.  If no timers correspond to the parameters specified, the
   local environment takes no action.

   The parameters of the S--TIMER service primitives are specified in
   Table 3.

               __________________________________________________
              |        PRIMITIVES               PARAMETERS      |
              |_________________________________________________|
              |    S--TIMER     .Request  |  S-Time,            |
              |                           |  S-Name,            |
              |                           |  S-Subscript        |
              |                           |                     |
              |                 .Response |  S-Name,            |
              |                           |  S-Subscript        |
              |___________________________|_____________________|

                        Table 3: Timer Primitives


   The time parameter indicates the time duration of the specified ti-
   mer.  An identifiying label is associated with a timer by means of
   the name parameter. The subscript parameter specifies a value to dis-
   tinguish timers with the same name. The name and subscript taken to-
   gether constitute a unique reference to the timer.

   Timers used in association with a specific protocol funtion are de-
   fined under that protocol function.


                                   Note:
       This International Standard does not define specific values for
       the timers. Any derivations described in this Standard are not
       mandatory. Timer values should be chosen so that the requested
       Quality of Service can be provided, given the known characteristics
       of the underlying service.














ISO 8473                                                       [Page 17]
^L
RFC 994                                                    December 1986


              SECTION  TWO.  SPECIFICATION OF THE PROTOCOL


6     Protocol Functions

   This Clause describes the functions performed as part of the Proto-
   col.

   Not all of the functions must be performed by every implementation.
   Clause 6.17 specifies which functions may be omitted, and the correct
   behavior when requested functions are not implemented.

6.1     PDU Composition Function

   This function is responsible for the construction of a protocol data
   unit according to the rules governing the encoding of PDUs given in
   Clause 7.  Protocol Control Information required for delivering the
   data unit to its destination is determined from current state and lo-
   cal information and from the parameters associated with the N-
   UNITDATA Request.

   Network Protocol Address Information (NPAI) for the Source Address
   and Destination Address fields of the PDU header is derived from the
   NS-Source-Address and NS-Destination-Address parameters. The NS-
   Destination-Address and NS-Quality-of-Service parameters, together
   with current state and local information, are used to determine which
   optional functions are to be selected. User data passed from the Net-
   work Service User (NS-Userdata) forms the Data field of the protocol
   data unit.

   During the composition of the protocol data unit, a Data Unit Iden-
   tifier is assigned to distinguish this request to transmit NS-
   Userdata to a particular destination NS User from other such re-
   quests. The originator of the PDU must choose the Data Unit Identif-
   ier so that it remains unique (for this Source and Destination ad-
   dress pair) for the maximum lifetime of the Initial PDU in the net-
   work; this rule applies for any PDUs derived from the Initial PDU as
   a result of the application of the Segmentation Function (see Clause
   6.7).  Derived PDUs are considered to correspond to the same Initial
   PDU, and hence the same N-UNITDATA Request, if they have the same
   Source Address, Destination Address, and Data Unit Identifier.

   The Data Unit Identifier is also available for ancillary functions
   such as error reporting (see Clause 6.10).

   The total length of the PDU in octets is determined by the originator
   and placed in the Total Length field of the PDU header. This field is
   not changed in any Derived PDU for the lifetime of the protocol data
   unit.





ISO 8473                                                       [Page 18]
^L
RFC 994                                                    December 1986


   When the Non-segmenting protocol subset is employed, neither the To-
   tal Length field nor the Data Unit Identifier field is present.  The
   rules governing the PDU composition function are modified in this
   case as follows. During the composition of the protocol data unit,
   the total length of the PDU in octets is determined by the originator
   and placed in the Segment Length field of the PDU header. This field
   is not changed for the lifetime of the PDU. No Data Unit Identifica-
   tion is provided.

6.2     PDU Decomposition Function

   This function is responsible for removing the Protocol Control Infor-
   mation from the protocol data unit.  During this process, information
   pertinent to the generation of the N-UNITDATA Indication is deter-
   mined as follows. The NS-Source-Address and NS-Destination-Address
   parameters of the N-UNITDATA Indication are recovered from the NPAI
   in the Source and Destination Address fields of the PDU header. The
   data field of the PDU received is reserved until all segments of the
   original service data unit have been received; collectively, these
   form the NS-Userdata parameter of the N-UNITDATA Indication.  Infor-
   mation relating to the Quality of Service provided during the
   transmission of the PDU is determined from the Quality of Service and
   other information contained in the Options Part of the PDU header.
   This information constitutes the NS-Quality-of-Service parameter of
   the N-UNITDATA Indication.

6.3     Header Format Analysis Function

   This function determines whether the full protocol described in this
   Standard is employed, or one of the defined proper subsets thereof.
   If the protocol data unit has a Network Layer Protocol Identifier in-
   dicating that this is a standard version of the Protocol, this func-
   tion determines whether a received PDU has reached its destination,
   using the Destination Address provided in the PDU. If the Destination
   Address provided in the PDU identifies an NSAP served by this
   network-entity, then the PDU has reached its destination; if not, it
   must be forwarded.

   If the protocol data unit has a Network Layer Protocol Identifier in-
   dicating that the Inactive Network Layer Protocol subset is in use,
   then no further analysis of the PDU header is required. The network-
   entity in this case determines that either the Subnetwork Point of
   Attachment address encoded as network protocol address information in
   the supporting subnetwork protocol corresponds directly to an NSAP
   address serviced by this network-entity or that an error has oc-
   curred. If the subnetwork protocol data unit has been delivered
   correctly, then the PDU may be decomposed according to the procedures
   described for that particular subnetwork protocol.






ISO 8473                                                       [Page 19]
^L
RFC 994                                                    December 1986


6.4     PDU Lifetime Control Function

   This function is used to enforce the maximum PDU lifetime. It is
   closely associated with the Header Format Analysis function.  This
   function determines whether a PDU received may be forwarded or wheth-
   er its assigned lifetime has expired, in which case it must be dis-
   carded.

   The operation of the PDU Lifetime Control function depends upon the
   Lifetime field in the PDU header.  This field contains, at any time,
   the remaining lifetime of the PDU (represented in units of 500 mil-
   liseconds). The Lifetime of the Initial PDU is determined by the ori-
   ginating network-entity, and placed in the Lifetime field of the PDU.
   When the Segmentation function is applied to a PDU, the value of the
   Lifetime field of the Initial PDU is copied into all of the Derived
   PDUs.

   The Lifetime of the PDU is decremented by every network-entity which
   processes the PDU. When a network-entity processes a PDU, it decre-
   ments the PDU Lifetime by at least one.  The value of the PDU Life-
   time field shall be decremented by more than one if the sum of:

      1.  the transit delay in the underlying service from which the PDU
          was received; and

      2.  the delay within the system processing the PDU

   exceeds or is estimated to exceed 500 milliseconds.  In this case,
   the lifetime field should be decremented by one for each additional
   500 milliseconds of delay. The determination of delay need not be
   precise, but where a precise value cannot be ascertained, the value
   used shall be an overestimate, not an underestimate.

   If the Lifetime field reaches a value of zero before the PDU is
   delivered to the destination, the PDU must be discarded.  The Error
   Reporting function shall be invoked as described in Clause 6.10, Er-
   ror Reporting Function, and may result in the generation of an Error
   Report PDU.  It is a local matter whether the destination network-
   entity performs the Lifetime Control function.

6.5     Route PDU Function

   This function determines the network-entity to which a protocol data
   unit should be forwarded and the underlying service that must be used
   to reach that network-entity, using the Destination Address and the
   total length of the PDU. Where segmentation is required, the Route
   PDU function further determines over which underlying service Derived
   PDUs/segments must be sent in order to reach that network-entity. The
   results of the Route PDU function are passed to the Forward PDU func-
   tion (along with the PDU itself) for further processing.  Selection
   of the underlying service that must be used to reach the "next" sys-



ISO 8473                                                       [Page 20]
^L
RFC 994                                                    December 1986


   tem in the route is initially influenced by the NS-Quality-of- Ser-
   vice parameter of the N-UNITDATA Request, which specifies the QoS re-
   quested by the sending NS User. Whether this QoS is to be provided
   directly by the CLNP, through the selection of the Quality of Service
   Maintenance parameter and other optional parameters, or through the
   QoS facilities offered by each of the underlying services is deter-
   mined prior to invocation of the Forward PDU function.  Route selec-
   tion by intermediate systems may subsequently be influenced by the
   values of the Quality of Service Maintenance parameter (if present),
   and other optional parameters (if present).

6.6     Forward PDU Function

   This function issues an SN-UNITDATA Request primitive (see Clause
   5.5), supplying the subnetwork or SNDCF identified by the Route PDU
   function with the protocol data unit as user data to be transmitted,
   the address information required by that subnetwork or SNDCF to iden-
   tify the "next" system within the subnetwork-specific addressing
   domain (this may be an intermediate-system or the destination end-
   system), and Quality of Service constraints (if any) to be considered
   in the processing of the user data.

   When the PDU to be forwarded is longer than the maximum service data
   user size provided by the underlying service, the Segmentation func-
   tion is applied (See Clause 6.7, which follows).

6.7     Segmentation Function

   Segmentation is performed when the size of the protocol data unit is
   greater than the maximum service data unit size supported by the
   underlying service to be used to transmit the PDU.

   Segmentation consists of composing two or more new PDUs (Derived
   PDUs) from the PDU received. The PDU received may be the Initial PDU,
   or it may be a Derived PDU. All of the header information from the
   PDU to be segmented, with the exception of the segment length and
   checksum fields of the fixed part, and the segment offset of the seg-
   mentation part, is duplicated in each Derived PDU, including all of
   the address part, the data unit identifier and total length of the
   segmentation part, and the options part (if present).

                                   Note:
       The rules for forwarding and segmentation guarantee that the
       header length is the same for all segments (Derived PDUs) of
       the Initial PDU, and is the same as the header length of the
       Initial PDU.  The size of a PDU header will not change due to
       operation of any protocol function.

   The user data encapsulated within the PDU received are divided such
   that the Derived PDUs satisfy the size requirements of the user data
   parameter field of the primitive used to access the underlying ser-



ISO 8473                                                       [Page 21]
^L
RFC 994                                                    December 1986


   vice.

   Derived PDUs are identified as being from the same Initial PDU by
   means of

     (a)  the source address,

     (b)  the destination address, and

     (c)  the data unit identifier.

   Segmentation shall not result in the generation of a Derived PDU con-
   taining less than eight (8) octets of user data.

   The following fields of the PDU header are used in conjunction with
   the Segmentation function:

      (a)  Segment Offset --- identifies, with respect to the start
           of the Initial PDU, the octet at which the segment begins;

      (b)  Segment Length --- specifies the number of octets in the
           Derived PDU, including both header and data;

      (c)  More Segments Flag --- is set to one if this Derived PDU
           does not contain, as its final octet of user data, the final
           octet of the Initial PDU; and

      (d)  Total Length --- specifies the entire length of the Initial
           PDU, including both header and data.


   Derived PDUs may be further segmented without constraining the rout-
   ing of the individual Derived PDUs.  The Segmentation Permitted flag
   is set to one to indicate that segmentation is permitted. If the Ini-
   tial PDU is not to be segmented at any point during its lifetime in
   the network, the flag is set to zero by the source network-entity.
   The setting of the Segmentation Permitted flag cannot be changed by
   any other network-entity for the lifetime of the Initial PDU and any
   Derived PDUs.

6.8     Reassembly Function

   The Reassembly function reconstructs the Initial PDU from the Derived
   PDUs generated by the operation of the Segmentation Function on the
   Initial PDU (and, recursively, on subsequent Derived PDUs).  A bound
   on the time during which segments (Derived PDUs) of an Initial PDU
   will be held at a reassembly point before being discarded is provid-
   ed, so that reassembly resources may be released when it is no longer
   expected that any outstanding segments of the Initial PDU will arrive
   at the reassembly point. Upon reception of a Derived PDU, a reassem-
   bly timer is initiated with a value which indicates the amount of



ISO 8473                                                       [Page 22]
^L
RFC 994                                                    December 1986


   time which must elapse before any outstanding segments of the Initial
   PDU shall be assumed to be lost.  When this timer expires, all seg-
   ments (Derived PDUs) of the Initial PDU held at the reassembly point
   are discarded, the resources allocated for those segments are freed,
   and if selected, an Error Report is generated (see Clause 6.10).
   While the exact relationship between reassembly lifetime and PDU
   lifetime is a local matter, the Reassembly Function must preserve the
   intent of the PDU lifetime. Consequently, the reassembly function
   must discard PDUs whose lifetime would otherwise have expired had
   they not been under the control of the reassembly function.

                                   Note:

         1. Methods of bounding reassembly lifetime are discussed in
            Annex B.

         2. The Segmentation and Reassembly functions are intended to
            be used in such a way that the fewest possible segments are
            generated at each segmentation point and reassembly takes
            place at the final destination of a PDU. However, other
            schemes which

             (a) interact with the routing algorithm to favor paths on
                 which fewer segments are generated;

             (b) generate more segments than absolutely required in
                 order to avoid additional segmentation at some subsequent
                 point; or

             (c) allow partial or full reassembly at some intermediate
                 point along the route

            are not precluded. The information necessary to enable the
            use of one of these alternative strategies may be made
            available through the operation of a Network Layer Management
            function or by other means.

         3. The originator of the Initial PDU determines the value of the
            Segmentation Permitted flag in the Initial PDU and all Derived
            PDUs (if any).  Partial or full reassembly in an intermediate
            system (Note 2 (c) above) cannot change this value in the
            Initial PDU or any PDU derived from it, and cannot therefore
            add or remove the segmentation part of the header.

6.9     Discard PDU Function

   This function performs all of the actions necessary to free the
   resources reserved by the network-entity when any of the following
   situations is encountered (Note: the list is not exhaustive):

     (a)  A violation of protocol procedure has occurred.



ISO 8473                                                       [Page 23]
^L
RFC 994                                                    December 1986


     (b)  A PDU is received whose checksum is inconsistent with its
          contents.

     (c)  A PDU is received, but due to local congestion, it cannot be
          processed.

     (d)  A PDU is received whose header cannot be analyzed.

     (e)  A PDU is received which cannot be segmented and cannot be
          forwarded because its length exceeds the maximum service data
          unit size supported by any underlying service available for
          transmission of the PDU to the next network-entity on the
          chosen route.

     (f)  A PDU is received whose destination address is unreachable or
          unknown.

     (g)  Incorrect or invalid source routing was specified. This may
          include a syntax error in the source routing field, an unknown
          or unreachable address in the source routing field, or a path
          which is not acceptable for other reasons.

     (h)  A PDU is received whose PDU lifetime has expired or whose
          lifetime expires during reassembly.

     (i)  A PDU is received which contains an unsupported option.

6.10     Error Reporting Function

6.10.1     Overview

   This function causes an attempt to return an Error Report PDU to the
   source network-entity when a protocol data unit is discarded in ac-
   cordance with Clause 6.9.

   The Error Report PDU identifies the discarded PDU, specifies the type
   of error detected, and identifies the location in the header of the
   discarded PDU at which the error was detected.  At least the entire
   header of the Discarded PDU (and, at the discretion of the originator
   of the Error Report PDU none, all, or part of the data field) is
   placed in the data field of the Error Report PDU.

   The originator of a Data PDU may control the generation of Error Re-
   port PDUs.  An Error Report flag in the original PDU is set by the
   source network-entity to indicate that an Error Report PDU is to be
   returned if the Initial PDU or any PDUs derived from it are discard-
   ed; if the flag is not set, Error Reports are to be suppressed.

                                    Note:

         1. The suppression of Error Report PDUs is controlled by the



ISO 8473                                                       [Page 24]
^L
RFC 994                                                    December 1986


            originating network-entity and not by the NS User.  Care
            should be exercised by the originator with regard to
            suppressing ER PDUs so that error reporting is not suppressed
            for every PDU generated.

         2. Non-receipt of an Error Report PDU does not imply correct
            delivery of a PDU issued by a source network-entity.

6.10.2     Requirements

   An Error Report PDU shall not be generated to report the discard of
   an Error Report PDU.

   An Error Report PDU shall not be generated to report the discard of a
   Data PDU unless that PDU has the Error Report flag set to allow Error
   Reports.

   If a Data PDU is discarded, and the Error Report flag has been set to
   allow Error Reports, an Error Report PDU shall be generated if the
   reason for discard is one of the reasons for discard enumerated in
   Clause 6.9, subject to the conditions described in Clause 6.10.4.

                                   Note:
       If a Data PDU with the E/R flag set to allow Error Reports is
       discarded for any other reason, an ER PDU may be generated (as
       an implementation option).

6.10.3     Processing of Error Reports

   An Error Report PDU is composed from information contained in the
   header of the discarded Data PDU to which the Error Report refers.
   The contents of the Source Address field of the discarded Data PDU
   are used as the Destination Address of the Error Report PDU. This
   value, which in the context of the Data PDU was used as an NSAP Ad-
   dress, is used in the context of the Error Report PDU as the
   network-entity title of the network-entity that originated the Data
   PDU. The network- entity title of the originator of the Error Report
   PDU is conveyed in the Source Address field of the header of the Er-
   ror Report PDU. The value of the Lifetime field is determined in ac-
   cordance with Clause 6.4. Optional parameters are selected in accor-
   dance with Clause 6.10.4.

   Segmentation of Error Report PDUs is not permitted; hence, no Segmen-
   tation Part is present.  The total length of the ER PDU in octets is
   placed in the Segment Length field of the ER PDU header. This field
   is not changed during the lifetime of the ER PDU. If the originator
   of the ER PDU determines that the size of the ER PDU exceeds the max-
   imum service data unit size of the underlying service, the ER PDU
   shall be truncated to the maximum service data unit size (see Clause
   5.5.3) and forwarded with no other change. Error Report PDUs are
   routed and forwarded by intermediate-system network-entities in the



ISO 8473                                                       [Page 25]
^L
RFC 994                                                    December 1986


   same way as Data PDUs.

                                    Note:
       The requirement that the underlying service assumed by the CLNP
       must be capable of supporting a service data unit size of at least
       512 octets guarantees that the entire header of the discarded Data
       PDU can be conveyed in the data field of any ER PDU.

   When an ER PDU is decomposed upon reaching its destination, informa-
   tion that may be used to interpret and act upon the Error Report is
   obtained as follows. The network-entity title recovered from the NPAI
   in the Source Address field of the ER PDU header is used to identify
   the network-entity which generated the Error Report.  The reason for
   generating the Error Report is extracted from the Options Part of the
   PDU header. The entire header of the discarded Data PDU (and part or
   all of the original user data) is extracted from the data field of
   the ER PDU to assist in determining the nature of the error.

6.10.4     Relationship of Data PDU Options to Error Reports

   The generation of an Error Report is affected by options that are
   present in the corresponding Data PDU. The presence of options in the
   original Data PDU that are not supported by the system which has dis-
   carded that PDU may cause the suppression of an Error Report even if
   the original Data PDU indicated that an Error Report should be gen-
   erated in the event of a discard.

   The processing of an Error Report is also affected by options which
   are present in the corresponding Data PDU. In particular, options
   selected for the original Data PDU affect which options are included
   in the corresponding Error Report PDU. The selection of options for
   an Error Report PDU is governed by the following requirements:

     (a)  If the Priority Option or the QoS Maintenance Option is selected
          in the original Data PDU, and the system generating the Error
          Report PDU supports the option, then the Error Report PDU shall
          specify the option.

     (b)  If the Security Option is selected in the Data PDU, and the system
          generating the Error Report supports this option, then the Error
          Report PDU shall specify the option using the value that was
          specified in the original Data PDU. If the system does not support
          the Security Option, an Error Report must not be generated for
          a Data PDU that selects the Security Option.

     (c)  If the Complete Source Route Option is selected in the original
          Data PDU, and the system generating the Error Report PDU supports
          this option, then the error Report shall specify the Complete Source
          Route option.  The Source Route parameter value is obtained by
          extracting from the original Data PDU that portion of the complete
          source route that has already been traversed, and reversing the



ISO 8473                                                       [Page 26]
^L
RFC 994                                                    December 1986


          order of network-entity titles which comprise the list.
          If the system does not support the Complete Source Route Option,
          an Error Report must not be generated for a Data PDU that selects
          the Complete Source Route option.

     (d)  The Padding, Partial Source Routing, and Record Route Options,
          if supported, may be specified in the Error Report PDU.

                                    Note:
            The values of the optional parameters in (d) above may be
            derived as a local matter, or they may be based upon the
            corresponding values in the original Data PDU.

6.11     PDU Header Error Detection

   The PDU Header Error Detection function protects against failure of
   intermediate or end-system network-entities due to the processing of
   erroneous information in the PDU header.  The function is realized by
   a checksum computed on the entire PDU header. The checksum is veri-
   fied at each point at which the PDU header is processed.  If the
   checksum calculation fails, the PDU must be discarded.  If PDU header
   fields are modified (for example, due to operation of the lifetime
   function), then the checksum is modified so that the checksum remains
   valid.

   The use of the Header Error Detection function is optional, and is
   selected by the originating network-entity.  If the function is not
   used, the checksum field of the PDU header is set to zero.

   If the function is selected by the originating network-entity, the
   value of the checksum field causes the following formulae to be sa-
   tisfied:

        (The Sum from i=1 to L of a(i)) (mod  255) = 0

        (The Sum from i=1 to L of (L - i + 1) * a(i)) (mod  255) = 0


   where L = the number of octets in the PDU header, and a(i) = the
   value of the octet at position i. The first octet in the PDU header
   is considered to occupy position i = 0.

   When the function is in use, neither octet of the checksum field may
   be set to zero.

                                   Note:

       1. To ensure that inadvertent modification of a header while a
          PDU is being processed by an intermediate system (for
          example, due to a memory fault) may still be detected by the
          PDU Header Error function, an intermediate system network-



ISO 8473                                                       [Page 27]
^L
RFC 994                                                    December 1986


          entity must not recompute the checksum for the entire header,
          even if fields are modified.

       2. Annex C contains descriptions of algorithms which may be
          used to calculate the correct value of the checksum field
          when the PDU is created, and to update the value of the
          checksum field when the header is modified.

6.12     Padding Function

   The padding function is provided to allow space to be reserved in the
   PDU header which is not used to support any other function.  Octet
   alignment must be maintained.

                                   Note:
       An example of the use of this function is to cause the data field
       of a PDU to begin on a convenient boundary for the originating
       network-entity, such as a computer word boundary.

6.13     Security

   The provision of protection services (e.g., data origin authentica-
   tion, data confidentiality, and data integrity of a single
   connectionless-mode NSDU) is performed by the Security Function.

   The Security Function is related to the Protection from Unauthorized
   Access Quality of Service parameter described in ISO 8348/AD1, Adden-
   dum to the Network Service Definition Covering Connectionless-mode
   Transmission. The function is realized through selection of the secu-
   rity parameter in the options part of the PDU header.

   This Standard does not specify the way in which protection services
   are to be provided; it only provides for the encoding of security in-
   formation in the PDU header. To facilitate interoperation between
   end-systems and network relay-systems by avoiding different interpre-
   tations of the same encoding, a means to distinguish user-defined
   security encodings from standardized security encodings is described
   in Clause 7.5.3.


                                   Note:
       As an implementation consideration, data origin authentication
       may be provided through the use of a cryptographically generated
       or enciphered checksum (unique from the PDU Header Error Detection
       mechanism); data confidentiality and data integrity may be
       provided via route control mechanisms.

6.14     Source Routing Function

   The Source Routing function allows the originator to specify the path
   a generated PDU must take. Source routing may only be selected by the



ISO 8473                                                       [Page 28]
^L
RFC 994                                                    December 1986


   originator of a PDU. Source Routing is accomplished using a list of
   network-entity titles held in a parameter within the options part of
   the PDU header.  The length of this parameter is determined by the
   originating network-entity, and does not change as the PDU traverses
   the network.

   The Source Route parameter includes information used by the originat-
   ing end-system when determining the initial route of the PDU. Only
   the titles of intermediate system network-entities are included in
   the list; the network-entity title of the destination of the PDU is
   not included in the list.

   Associated with the list of network-entity titles is an indicator
   which identifies the next entry in the list to be used; this indica-
   tor is advanced by the receiver of the PDU when the next title in the
   list matches its own. The indicator is updated as the PDU is forward-
   ed so as to identify the appropriate entry at each stage of relaying.

   Two forms of the Source Routing function are provided.  The first
   form, referred to as Complete Source Routing, requires that the
   specified path must be taken; that is, only those systems identified
   in the list may be visited by the PDU while en route to the destina-
   tion, and each system must be visited in the order specified. If the
   specified path cannot be taken, the PDU must be discarded. Clause
   6.10 describes the circumstances in which an attempt shall be made to
   inform the originator of the discard using the Error Reporting func-
   tion.

   The second form is referred to as Partial Source Routing. Again, each
   system identified in the list must be visited in the order specified
   while en route to the destination.  However, with this form of source
   routing the PDU may take any path necessary to arrive at the next in-
   termediate system in the list, which may include visiting intermedi-
   ate systems that are not identified in the list. The PDU will not be
   discarded (for source routing related reasons) unless one of the sys-
   tems specified cannot be reached by any available route.

6.15     Record Route Function

   The Record Route function records the path(s) taken by a PDU as it
   traverses a series of intermediate systems. A recorded route consists
   of a list of network-entity titles held in a parameter within the op-
   tions part of the PDU header. The length of this parameter is deter-
   mined by the originating network-entity, and does not change as the
   PDU traverses the network.

   The list is constructed as the PDU is forwarded along a path towards
   its destination.  Only the titles of intermediate system network-
   entities are included in the recorded route. The network-entity title
   of the originator of the PDU is not recorded in the list.




ISO 8473                                                       [Page 29]
^L
RFC 994                                                    December 1986


   When an intermediate system network-entity processes a PDU containing
   the Record Route parameter, the system adds its own networkentity ti-
   tle at the end of the list of recorded network-entity titles.  An in-
   dicator is maintained to identify the next available octet to be used
   for recording of route. This indicator is updated as entries are ad-
   ded to the list as follows. The length of the entry to be added to
   the list is added to the value of the next available octet indicator,
   and this sum is compared with the length of the Record Route parame-
   ter.  If the addition of the entry to the list would exceed the size
   of the parameter, the next available octet indicator is set to indi-
   cate that route recording has been terminated. The network-entity ti-
   tle is not added to the list. The PDU may still be forwarded to its
   final destination, without further addition of network-entity titles.

   If the addition of the entry would not exceed the size of the Record
   Route parameter, the next available octet indicator is updated with
   the new value, and the network-entity title is added to the head of
   the list after the other entries have been moved.

   Two forms of the Record Route function are provided.  The first form
   is referred to as Complete Route Recording.  It requires that the
   list of network-entity titles be a complete and accurate record of
   all intermediate systems visited by a PDU (including Derived PDUs),
   except when a shortage of space in the record route option field
   causes termination of recording of route, as described above. When
   Complete Route Recording is selected, PDU reassembly at intermediate
   systems is performed only when the Derived PDUs that are reassembled
   all took the same route; otherwise, the PDU is discarded, and if
   selected, an Error Report is generated (see Clause 6.10).

   The second form is referred to as Partial Route Recording. It also
   requires a record of intermediate systems visited by a PDU. When Par-
   tial Route Recording is selected, PDU reassembly at intermediate sys-
   tems is always permitted.  When reassembly is performed at an inter-
   mediate system, the route recorded in any of the Derived PDUs may be
   placed in the PDU resulting from the reassembly.

                                   Note:
       The Record Route function is intended to be used in the diagnosis
       of subnetwork problems and/or to provide a return path that could
       be used as a source route in a subsequent PDU.

6.16     Quality of Service Maintenance Function

   The Quality of Service Maintenance function provides information to
   network-entities in intermediate systems which may be used to make
   routing decisions where such decisions affect the overall QoS provid-
   ed to NS users. This information is conveyed to intermediate system
   network- entities in a parameter in the options part of the PDU
   header.




ISO 8473                                                       [Page 30]
^L
RFC 994                                                    December 1986


   In those instances where the QoS requested cannot be maintained, in-
   termediate system network-entities shall attempt to deliver the PDU
   at a QoS different from the QoS requested. Intermediate system
   network-entities do not necessarily provide a notification of failure
   to meet the requested Quality of Service.


6.17     Priority Function

   The Priority function allows a PDU with a numerically higher priority
   value to be processed preferentially with respect to other PDUs with
   numerically lower priority values. The function is realized through
   selection of a parameter in the options part of the PDU header.

   The lowest priority value is zero; a source network-entity that does
   not support the Priority function must set the Priority value to
   zero.  The Priority function provides a means whereby the resources
   of end and intermediate system network-entities, such as outgoing
   transmission queues and buffers, can be used preferentially to pro-
   cess higher-priority PDUs ahead of lower-priority PDUs. The specific
   action taken by an individual network-entity to support the Priority
   function is a local matter.

6.18     Congestion Notification Function

   To allow NS Users to take appropriate action when congestion is ex-
   perienced within the NS provider, intermediate systems may inform the
   destination network-entity of congestion through the use of a flag in
   the QoS Maintenance parameter in the options part of the PDU header.
   The value of this flag is initially set to zero (0) by the originator
   of the PDU and may be set to one (1) by any intermediate system which
   processes the PDU to indicate that it is experiencing congestion. The
   criteria for determining when this action is to be taken are a local
   matter.

                                    Note:
     Congestion typically corresponds to inavailability of buffer space
     to maintain output queues. An appropriate policy for indicating
     congestion may be based upon the depth of the output queue selected
     for a PDU (according to its destination address or other routing
     information). When the depth of a particular output queue exceeds
     a certain proportion of the depth of that queue, an intermediate
     system will start to discard PDUs. The intermediate system will set
     the Congestion Experienced flag in the next PDU to be forwarded
     and may continue to do so until the condition is alleviated.

6.19     Classification of Functions

   Implementations are not required to support all of the functions
   described in Clauses 6.1 through 6.18. Functions are divided into
   three categories:



ISO 8473                                                       [Page 31]
^L
RFC 994                                                    December 1986


   Type 1: These functions must be supported.

   Type 2: These functions may or may not be supported.
           If an implementation does not support a Type 2 function, and the
           function is selected in a PDU, then that PDU must be discarded,
           and an Error Report PDU must be generated and forwarded to the
           originating network-entity, providing that the Error Report flag is
           set and the conditions of Clause 6.10.4 are satisfied.

   Type 3: These functions may or may not be supported.
           If an implementation does not support a Type 3 function, and the
           function is selected in a PDU, then the function is not performed,
           and the PDU is processed exactly as though the function had not
           been selected.  The protocol data unit shall not be discarded for
           this reason.

   Table 4 shows how the functions are divided into these three categories:

 _____________________________________________________________________________
|                                |    FULL     |       NON       |  INACTIVE  |
| FUNCTION                       |  PROTOCOL   |    SEGMENTING   |   SUBSET   |
|                                |             |      SUBSET     |            |
|________________________________|_____________|_________________|____________|
|PDU Composition                 |     1       |        1        |     1      |
|PDU Composition                 |     1       |        1        |     1      |
|Header Format Analysis          |     1       |        1        |     1      |
|PDU Lifetime Control            |     1       |        1        |    N/A     |
|Route PDU                       |     1       |        1        |    N/A     |
|Forward PDU                     |     1       |        1        |    N/A     |
|Segment PDU                     |     1       |       N/A       |    N/A     |
|Reassemble PDU                  |     1       |       N/A       |    N/A     |
|Discard PDU                     |     1       |        1        |    N/A     |
|Error Reporting (Note 1)        |     1       |        1        |    N/A     |
|Header Error Detection (Note 1) |     1       |        1        |    N/A     |
|Security                        |     1       |        2        |    N/A     |
|Complete Source Routing         |     1       |        2        |    N/A     |
|Complete Route Recording        |     2       |        2        |    N/A     |
|Partial Source Routing          |     3       |        3        |    N/A     |
|Partial Route Recording         |     3       |        3        |    N/A     |
|Priority                        |     3       |        3        |    N/A     |
|QoS Maintenance                 |     3       |        3        |    N/A     |
|Congestion Notification         |     3       |        3        |    N/A     |
|Padding                         |     3       |        3        |    N/A     |
|________________________________|_____________|_________________|____________|

           Table 4: Categorization of Protocol Functions








ISO 8473                                                       [Page 32]
^L
RFC 994                                                    December 1986


                                Note:

     1. While the Error Reporting and Header Error Detection functions
        must be provided, they are provided only when selected
        by the sending Network Service user.

     2. The rationale for the inclusion of type 3 functions is that in
        the case of some functions it is more important to forward
        the PDUs between intermediate systems or deliver them to
        an end-system than it is to support the functions.  Type 3
        functions should be used in those cases where they are of an
        advisory nature; they cannot cause a PDU to be discarded
        when they are not supported.

7     Structure and Encoding of PDUs

7.1     Structure

   All Protocol Data Units shall contain an integral number of octets.
   The octets in a PDU are numbered starting from one (1) and increasing
   in the order in which they are submitted to the underlying service.
   The bits in an octet are numbered from one (1) to eight (8), where
   bit one (1) is the low-order (least significant) bit.

   When consecutive octets are used to represent a binary number, the
   lower octet number has the most significant value.

   Any implementation supporting this protocol is required to state in
   its specification the way in which octets are transferred, using the
   terms "most significant bit" and "least significant bit". The PDUs of
   this protocol are defined using the terms "most significant bit" and
   "least significant bit".

                                       Note:
       When the encoding of a PDU is represented using a diagram in this
       Clause the following representation is used:

         a) octets are shown with the lowest numbered octet to the left,
            higher number octets being further to the right;
         b) within an octet, bits are shown with bit eight (8) to the left
            and bit one (1) to the right.

       PDUs shall contain, in the following order:

       1.  the fixed part;
       2.  the address part;
       3.  the segmentation part, if present;
       4.  the Options part, if present;

   and the data field, if present. This structure is illustrated in Figure 2:




ISO 8473                                                       [Page 33]
^L
RFC 994                                                    December 1986


7.2     Fixed Part

7.2.1    General

   The fixed part of the PDU header contains frequently occurring param-
   eters including the type code (DT or ER) of the protocol data unit.
   The length and the structure of the fixed part are defined by the PDU
   code.

   The fixed part has the following format:

                           Part                      Described in
             ___________________________________
             |          Fixed Part             |      Section 7.2
             |_________________________________|
             |          Address Part           |      Section 7.3
             |_________________________________|
             |       Segmentation Part         |      Section 7.4
             |_________________________________|
             |          Options Part           |      Section 7.5
             |_________________________________|
             |              Data               |      Section 7.6
             |_________________________________|

                   Figure 2: PDU Structure


                                                        Octet
             ________________________________________
             |   Network Layer Protocol Identifier  |    1
             |______________________________________|
             |          Length Indicator            |    2
             |______________________________________|
             |     Version/Protocol Id Extension    |    3
             |______________________________________|
             |              Lifetime                |    4
             |______________________________________|
             |    SP  vline M S vline e/R | Type    |    5
             |______________________________________|
             |            Segment Length            |   6,7
             |______________________________________|
             |               Checksum               |   8,9
             |______________________________________|

                 Figure 3: PDU Header -- Fixed Part

7.2.2    Network Layer Protocol Identifier

   The value of this field is set to binary 1000 0001 to identify this
   Network Layer protocol as ISO 8473, Protocol for Providing the
   Connectionless- mode Network Service. The value of this field is set



ISO 8473                                                       [Page 34]
^L
RFC 994                                                    December 1986


   to binary 0000 0000 to identify the Inactive Network Layer protocol
   subset.

7.2.3    Length Indicator

   The length is indicated by a binary number, with a maximum value of
   254 (1111 1110).  The length indicated is the length in octets of the
   header, as described in Clause 7.1. The value 255 (1111 1111) is
   reserved for possible future extensions.

                                   Note:
     The rules for forwarding and segmentation guarantee that the header
     length is the same for all segments (Derived PDUs) of the Initial
     PDU, and is the same as the header length of the Initial PDU.
     The size of a PDU header will not change due to operation of any
     protocol function.

7.2.4    Version/Protocol Identifier Extension

   The value of this field is binary 0000 0001, which identifies the
   standard Version 1 of ISO 8473, Protocol for Providing the
   Connectionless-mode Network Service.

7.2.5    PDU Lifetime

   The PDU Lifetime field is encoded as a binary number representing the
   remaining lifetime of the PDU, in units of 500 milliseconds.

7.2.6    Flags

7.2.6.1    Segmentation Permitted

   The Segmentation Permitted flag indicates whether segmentation is
   permitted. Its value is determined by the originator of the PDU and
   cannot be changed by any other network-entity for the lifetime of the
   Initial PDU and any Derived PDUs.

   A value of one (1) indicates that segmentation is permitted. A value
   of zero (0) indicates that the non-segmenting protocol subset is em-
   ployed.  When the value of zero is selected, the segmentation part of
   the PDU header is not present, and the Segment Length field serves as
   the Total Length field (see Clause 7.2.8).

7.2.6.2    More Segments

   The More Segments flag indicates whether the data segment in this PDU
   contains (as its last octet) the last octet of the User Data in the
   NSDU.  When the More Segments flag is set to one (1), segmentation
   has taken place and the last octet of the NSDU is not contained in
   this PDU. The More Segments flag cannot be set to one (1) if the Seg-
   mentation Permitted flag is not set to one (1).



ISO 8473                                                       [Page 35]
^L
RFC 994                                                    December 1986


   When the More Segments flag is set to zero (0), the last octet of the
   Data Part of the PDU is the last octet of the NSDU.

7.2.6.3    Error Report

   When the Error Report flag is set to one, the rules in Clause 6.10
   are used to determine whether to generate an Error Report PDU if it
   is necessary to discard this Data PDU.

   When the Error Report flag is set to zero, discard of the Data PDU
   will not cause the generation of an Error Report PDU.

7.2.7    Type Code

   The Type code field identifies the type of the protocol data unit.
   Allowed values are given in Table 5:

              __________________________________________________
              |         | Bits               5   4   3   2   1 |
              |_________|______________________________________|
              | DT PDU  |                    1   1   1   0   0 |
              |_________|______________________________________|
              | ER PDU  |                    0   0   0   0   1 |
              |_________|______________________________________|

                         Table 5: Valid PDU Types

7.2.8    PDU Segment Length

   The Segment Length field specifies the entire length, in octets, of
   the Derived PDU, including both header and data (if present).  When
   the full protocol is employed and a PDU is not segmented, the value
   of this field is identical to the value of the Total Length field lo-
   cated in the Segmentation Part of the header.

   When the non-segmenting protocol subset is employed, no segmentation
   part is present in the header. In this subset, the Segment Length
   field specifies the entire length of the Initial PDU, including both
   header and data (if present). The Segment Length field is not changed
   for the lifetime of the PDU.

7.2.9    PDU Checksum

   The checksum is computed on the entire PDU header.  For the Data PDU,
   this includes the segmentation and options parts (if present). For
   the Error Report PDU, this includes the reason for discard field as
   well.

   A checksum value of zero is reserved to indicate that the checksum is
   to be ignored.  The operation of the PDU Header Error Detection func-
   tion (Clause 6.11) ensures that the value zero does not represent a



ISO 8473                                                       [Page 36]
^L
RFC 994                                                    December 1986


   valid checksum. A non-zero value indicates that the checksum must be
   processed. If the checksum calculation fails, the PDU must be dis-
   carded.

7.3     Address Part

7.3.1    General

   Address parameters are distinguished by their location, immediately
   following the fixed part of the PDU header. The address part is il-
   lustrated Figure 4:


                                                              Octet
                ____________________________________________
               |    Destination Address Length Indicator   |   10
               |___________________________________________|
               |                                           |   11
               :              Destination Address          :
               |                                           |  m - 1
               |___________________________________________|
               |     Source Address Length Indicator       |    m
               |___________________________________________|
               |                                           |  m + 1
               :               Source Address              :
               |                                           |  n - 1
               |___________________________________________|

                 Figure 4: PDU Header -- Address Part

7.3.1.1    Destination and Source Addresses

   The Destination and Source addresses used by this protocol are Net-
   work Service Access Point addresses as defined in ISO 8348/AD2, Ad-
   dendum to the Network Service Definition Covering Network Layer Ad-
   dressing.

   The Destination and Source Addresses are variable length. The Desti-
   nation and Source Address fields are encoded as Network Protocol Ad-
   dress Information using the Preferred Binary Encoding defined in
   Clause 8.3.1 of ISO 8348/AD2.

   The Destination Address Length Indicator field specifies the length
   of the Destination Address in octets. The Destination Address field
   follows the Destination Address Length Indicator field.

   The Source Address Length Indicator field specifies the length of the
   Source Address in octets.  The Source Address Length Indicator field
   follows the Destination Address field. The Source Address field fol-
   lows the Source Address Length Indicator field.




ISO 8473                                                       [Page 37]
^L
RFC 994                                                    December 1986


   Each address parameter is encoded as illustrated in Table 5:

                ______________________________________________
                | Octet  | Address parameter Length Indicator |
                |   n    |                (e.g., 'm')         |
                |________|____________________________________|
                | Octets |                                    |
                |  n + 1 |       Address Parameter Value      |
                |  thru  |                                    |
                |  n + m |                                    |
                |________|____________________________________|

                          Figure 5:  Address Parameters

7.4     Segmentation Part

   If the Segmentation Permitted Flag in the Fixed Part of the PDU
   Header (Octet 4, Bit 8) is set to one, the segmentation part of the
   header, illustrated in Figure 6, must be present:

   If the Segmentation Permitted flag is set to zero, the non-segmenting
   protocol subset is in use.

                                                  Octet
                    ________________________
                    | Data Unit Identifier |       n, n + 1
                    |______________________|
                    |    Segment Offset    |   n + 2, n + 3
                    |______________________|
                    |     Total Length     |   n + 4, n + 5
                    |______________________|

             Figure 6: PDU Header -- Segmentation Part

7.4.1    Data Unit Identifier

   The Data Unit Identifier identifies an Initial PDU (and hence, its
   Derived PDUs) so that a segmented data unit may be correctly reassem-
   bled. The Data Unit Identifier size is two octets.

7.4.2    Segment Offset

   For each Derived PDU, the Segment Offset field specifies the relative
   position of the segment contained in the data field of the Derived
   PDU with respect to the start of the data field of the Initial PDU.
   The offset is measured in units of octets. The offset of the first
   segment (and hence, the Initial PDU) is zero; an unsegmented (Initial
   PDU) has a segment offset value of zero (0). The value of this field
   shall be a multiple of eight 8).





ISO 8473                                                       [Page 38]
^L
RFC 994                                                    December 1986


7.4.3    PDU Total Length

   The Total Length field specifies the entire length of the Initial
   PDU, including both the header and data.  This field is not changed
   for the lifetime of the Initial PDU (and hence, its Derived PDUs).

7.5     Options Part

7.5.1    General

   The options part is used to convey optional parameters.  The options
   part of the PDU header is illustrated below:

                                                             Octet
        ___________________________________________________
        |                                                  | n + 6
        :                    Options                       :
        |                                                  |   p
        |__________________________________________________|

                  Figure 7: PDU Header -- Options Part

   If the options part is present, it may contain one or more parame-
   ters.  The number of parameters that may be contained in the options
   part is constrained by the length of the options part, which is
   determined by the following formula:

   PDU Header Length -(length of fixed part+length of address
   part+length of segmentation part)

   and by the length of the individual optional parameters.

   Parameters defined in the options part may appear in any order.  Du-
   plication of options is not permitted. Receipt of a Protocol Data
   Unit with an option duplicated should be treated as a protocol error.
   The rules governing the treatment of protocol errors are described in
   Clause 6.10, Error Reporting Function.

   The encoding of parameters contained within the options part of the
   PDU header is illustrated in Table 6:

                Octets
                ___________________________________________
                |     n      |       Parameter Code       |
                |____________|____________________________|
                |   n + 1    |  Parameter Length (e.g.m)  |
                |____________|____________________________|
                |   n + 2    |                            |
                |     to     |     Parameter Value        |
                | n + m + 1  |                            |
                |____________|____________________________|



ISO 8473                                                       [Page 39]
^L
RFC 994                                                    December 1986


                    Table 6: Encoding of Parameters

   The parameter code field is coded in binary and, without extensions,
   provides a maximum of 255 different parameters.  No parameter codes
   use bits 8 and 7 with the value 00, so the actual maximum number of
   parameters is lower.  A parameter code of 255 (binary 1111 1111) is
   reserved for possible future extensions.

   The parameter length field indicates the length, in octets, of the
   parameter value field. The length is indicated by a positive binary
   number, m, with a theoretical maximum value of 254.  The practical
   maximum value of m is lower. For example, in the case of a single
   parameter contained within the options part, two octets are required
   for the parameter code and the parameter length indicators. Thus, the
   value of m is limited to:

   m = 252-(length of fixed part +length of address part +length of seg-
   mentation part)

   For each succeeding parameter the maximum value of m decreases.  The
   parameter value field contains the value of the parameter identified
   in the parameter code field.

   The following parameters are permitted in the options part.

7.5.2    Padding

   The padding parameter is used to lengthen the PDU header to a con-
   venient size (See Clause 6.12).

   Parameter Code:        1100 1100

   Parameter Length:      variable

   Parameter Value:       any value is allowed

7.5.3    Security

   This parameter allows a unique and unambiguous security level to be
   assigned to a protocol data unit.

   Parameter Code:        1100 0101

   Parameter Length:      variable

   Parameter Value:       The high order two bits of the first octet
                          specify the Security Format Code, where:

            Security      Type of Security Field:
           Format Code




ISO 8473                                                       [Page 40]
^L
RFC 994                                                    December 1986


               00         Reserved
               01         Source Address Specific
               10         Destination Address Specific
               11         Globally Unique

          The rest of the first octet is reserved and must be zero.  The
          remainder of the Parameter Value field specifies the security
          level as described in the following Clauses.
7.5.3.1    Source Address Specific

   The Security Format Code value of binary "01" indicates that the
   remaining octets of the parameter value field specify a security lev-
   el which is unique and unambiguous in the context of the security
   classification system employed by the authority responsible for as-
   signing the source NSAP Address.

7.5.3.2    Destination Address Specific

   The Security Format Code value of binary "10" indicates that the
   remaining octets of the parameter value field specify a security lev-
   el which is unique and unambiguous in the context of the security
   classification system employed by the authority responsible for as-
   signing the destination NSAP Address.

7.5.3.3    Globally Unique Security

   The Security Format Code value of binary "11" indicates that the
   remaining octets of the parameter value field specify a globally
   unique and unambiguous security level.  This security classification
   system is not specified in this Standard.

7.5.4    Source Routing

   The source routing parameter specifies, either completely or partial-
   ly, the route to be taken from Source Network Address to Destination
   Network Address.

   Parameter Code:        1100 0101

   Parameter Length:      variable

   Parameter Value:       2 octets of control information succeeded by a
          concatenation of ordered network-entity title entries (ordered
          from source to destination)

   The first octet of the parameter value is the type code, and has the
   following significance:

          0000 0000    partial source routing
          0000 0001    complete source routing
                       <all other values reserved>



ISO 8473                                                       [Page 41]
^L
RFC 994                                                    December 1986


   The second octet indicates the octet offset of the next network-
   entity title entry to be processed in the list.  It is relative to
   the start of the parameter, such that a value of three (3) indicates
   that the next network-entity title entry begins immediately after
   this control octet. Successive octets are indicated by corresponding-
   ly larger values of this indicator.

   The third octet begins the network-entity title list. The list con-
   sists of variable length network-entity title entries.  The first oc-
   tet of entry identifies the length of the network-entity title which
   comprises the re- mainder of the entry.

7.5.5    Recording of Route

   The recording of route parameter identifies the route of intermediate
   systems traversed by the PDU.

   Parameter Code:        1100 1011

   Parameter Length:      variable

   Parameter Value:       2 octets of control information succeeded by a
          con catenation of ordered network-entity title entries (ordered
          from destination to source)

   The first octet of the parameter value is the type code, and has the
   following significance:

         0000 0000    Partial Recording of Route in progress
         0000 0001    Complete Recording of Route in progress
                      <all other values reserved>

   The second octet identifies the first octet not currently used for a
   recorded network-entity title, and therefore also the end of the
   list. It is encoded relative to the start of the parameter value,
   such that a value of three (3) indicates that no network-entity ti-
   tles have yet been recorded.  A value of all ones is used to indicate
   that route recording has been terminated.

   The third octet begins the network-entity title list. The list con-
   sists of variable length network-entity title entries.  The first oc-
   tet of each entry specifies the length of the network-entity title
   comprising the remainder of the entry.  Network-entity title entries
   are always added to the beginning of the list; that is, the most re-
   cently added entry will begin in the third octet of the parameter
   value.

                                     Note:
        The length of the Record Route parameter is determined by the
        originator of the PDU and is not changed during the lifetime of
        the PDU; hence, the operation of the Record Route function does



ISO 8473                                                       [Page 42]
^L
RFC 994                                                    December 1986


        not affect the length of the header.

7.5.6    Quality of Service Maintenance

   The Quality of Service parameter conveys information about the quali-
   ty of service requested by the originating Network Service user.
   Network-entities in intermediate systems may (but are not required
   to) make use of this information as an aid in selecting a route when
   more than one route satisfying other routing criteria is available
   and the available routes are known to differ with respect to Quality
   of Service see Clause 6.16).

     Parameter Code:        1100 0011
     Parameter Length:      variable
     Parameter Value:       The high order two bits of the first octet
           specify the  QoS Format Code, where:

        QoS Format      Type of QoS
            Code        Field
             00         Reserved
             01         Source Address Specific
             10         Destination Address Specific
             11         Globally Unique

   The rest of the first octet is reserved and must be zero. The
   remainder of the Parameter Value field specifies the QoS as described
   in the following Clauses.

7.5.6.1    Source Address Specific

   The QoS Format Code value of binary "01" indicates that the remaining
   octets of the parameter value field specify a QoS which is unique and
   unambiguous in the context of the QoS Maintenance system employed by
   the authority responsible for assigning the source NSAP Address.

7.5.6.2    Destination Address Specific

   The QoS Format Code value of binary "10" indicates that the remaining
   octets of the parameter value field specify a QoS which is unique and
   unambiguous in the context of the QoS Maintenance system employed by
   the authority responsible for assigning the destination NSAP Address.

7.5.6.3    Globally Unique QoS

   The QoS Format Code value of binary "11" indicates that the remainder
   of the parameter value field specifies a globally unique QoS Mainte-
   nance field. When the globally unique QoS Maintenance function is em-
   ployed, the parameter value field must have a total length of one oc-
   tet, which is assigned the following values:

         Bits 8 and 7:   QoS Format Code of binary "11"



ISO 8473                                                       [Page 43]
^L
RFC 994                                                    December 1986


         Bit 6:          Reserved
         Bit 5:          sequencing vs. transit delay
         Bit 4:          congestion experienced
         Bit 3:          transit delay vs. cost
         Bit 2:          residual error probability vs. transit delay
         Bit 1:          residual error probability vs. cost

   Bit 5 is set to one to indicate that, where possible, routing deci-
   sions should favor sending all PDUs to the specified destination NSAP
   address over a single path (in order to maintain sequence) over
   minimizing transit delay. A value of zero (0) indicates that, where
   possible, routing decisions should favor low transit delay over se-
   quence preservation.

   Bit 4 is set to zero by the network-entity which originates the pro-
   tocol data unit. It is set to one by an intermiediate system to indi-
   cate that this PDU has visited a congested intermediate system, and
   appropriate action should be taken by the destination network-entity.
   Once the congestion experienced bit is set by an intermediate system,
   it may not be reset by any intermediate system traversed by the PDU
   further along the path towards the destination.

   Bit 3 is set to one to indicate that, where possible, routing deci-
   sions should favor low transit delay over low cost. A value of 0 in-
   dicates that routing decisions should favor low cost over low transit
   delay.

   Bit 2 set to one to indicate that, where possible, routing decisions
   should favor low residual error probability over low transit delay.
   A value of zero indicates that routing decisions should favor low
   transit delay over low residual error probability.

   Bit 1 is set to one to indicate that, where possible, routing deci-
   sions should favor low residual error probability over low cost.  A
   value of 0 indicates that routing decisions should favor low cost
   over low residual error probability.

7.5.7    Priority

   The value of the Priority parameter indicates the relative priority
   of the protocol data unit.  Intermediate systems that support this
   option shall make use of this information in routing and in ordering
   PDUs for transmission.

   Parameter Code:        1100 1101

   Parameter Length:      one octet

   Parameter Value:       0000 0000 - Normal (Default) through
          0000 1110 - Highest
          <all other values reserved>



ISO 8473                                                       [Page 44]
^L
RFC 994                                                    December 1986


   The values 0000 0001 through 0000 1110 are to be used for higher
   priority protocol data units. If an intermediate system does not sup-
   port this option, all PDUs shall be treated as if the field had the
   value 0000 0000.

7.6     Data Part

   The Data part of the PDU is structured as an ordered multiple of oc-
   tets, which is identical to the same ordered multiple of octets
   specified for the NS-Userdata parameter of the N-UNITDATA Request and
   Indication primitives. The data field is illustrated in Figure 8:


                                                                 Octet
            ___________________________________________________
            |                                                  | p + 1
            :                      Data                        :
            |                                                  |   z
            |__________________________________________________|

                       Figure 8: PDU Header -- Data Field

































ISO 8473                                                       [Page 45]
^L
RFC 994                                                    December 1986


7.7     Data (DT) PDU

7.7.1    Structure

   The DT PDU has the following format:

             __________________________________________
             |   Network Layer Protocol Identifier    |       1
             |________________________________________|
             |            Length Indicator            |       2
             |________________________________________|
             |      Version/Protocol Id Extension     |       3
             |________________________________________|
             |                Lifetime                |       4
             |________________________________________|
             |  S P  vline  M S vline e/R |  Type     |       5
             |____________________________|___________|
             |             Segment Length             |      6,7
             |________________________________________|
             |                Checksum                |      8,9
             |________________________________________|
             |  Destination Address Length Indicator  |      10
             |________________________________________|
             |                                        |      11
             :          Destination Address           :
             |________________________________________|     m - 1
             |    Source Address Length Indicator     |       m
             |________________________________________|
             |                                        |     m + 1
             :             Source Address             :
             |                                        |     n - 1
             |________________________________________|
             |          Data Unit Identifier          |    n, n + 1
             |________________________________________|
             |             Segment Offset             |  n + 2, n + 3
             |________________________________________|
             |              Total Length              |  n + 4, n + 5
             |________________________________________|
             |                                        |    n + 6
             |                 Options                |
             |                                        |      p
             |________________________________________|
             |                                        |    p + 1
             |                  Data                  |
             |                                        |      z
             |________________________________________|

                         Figure 9: DT PDU






ISO 8473                                                       [Page 46]
^L
RFC 994                                                    December 1986


7.7.1.1    Fixed Part

   1)   Network Layer Protocol Identifier      See Clause 7.2.2
   2)   Length Indicator                       See Clause 7.2.3
   3)   Version/Protocol Id Extension          See Clause 7.2.4
   4)   Lifetime                               See Clause 7.2.5
   5)   SP, MS, E/R                            See Clause 7.2.6
   6)   Type Code                              See Clause 7.2.7
   7)   Segment Length                         See Clause 7.2.8
   8)   Checksum                               See Clause 7.2.9

7.7.1.2    Addresses

   See Clause 7.3.

7.7.1.3    Segmentation

   See Clause 7.4.

7.7.1.4    Options

   See Clause 7.5.

7.7.1.5    Data

   See Clause 7.7.

7.8     Inactive Network Layer Protocol

                                                      Octet
                  ____________________________________
                  |Network Layer Protocol Identifier |  1
                  |__________________________________|
                  |                                  |  2
                  |                Data              |
                  |                                  |  2 - n
                  |__________________________________|

                Figure 10: Inactive Network Layer Protocol


7.8.1    Network Layer Protocol Id

   The value of the Network Layer Protocol Identifier field is binary
   zero (0000 0000).

7.8.2    Data Field

   The length of the NS-Userdata parameter is constrained to be less
   than or equal to the value of the length of the SN-Userdata parameter
   minus one (see Clause 7.7).



ISO 8473                                                       [Page 47]
^L
RFC 994                                                    December 1986


7.9     Error Report PDU (ER)

7.9.1    Structure

   The ER PDU has the following format:

                                                             Octet
              ______________________________________________
              |     Network Layer Protocol Identifier      |   1
              |____________________________________________|
              |              Length Indicator              |   2
              |____________________________________________|
              |        Version/Protocol Id Extension       |   3
              |____________________________________________|
              |                   Lifetime                 |   4
              |____________________________________________|
              |   SP= 0  vline MS= 0 vline Reserved | Type |   5
              |_____________________________________|______|
              |               Segment Length               |  6,7
              |____________________________________________|
              |                 Checksum                   |  8,9
              |____________________________________________|
              |    Destination Address Length Indicator    |  10
              |____________________________________________|
              |                                            |  11
              :            Destination Address             :
              |                                            | m - 1
              |____________________________________________|
              |     Source Address Length Indicator        |   m
              |____________________________________________|
              |                                            | m + 1
              :               Source Address               :
              |                                            | n - 1
              |____________________________________________|
              |                                            |   n
              |                   Options                  |
              |                                            | p - 1
              |____________________________________________|
              |                                            |   p
              |             Reason for Discard             |
              |                                            | q - 1
              |____________________________________________|
              |                                            |   q
              |          Error Report Data Field           |
              |                                            |   z
              |____________________________________________|

                       Figure 11: Error Report PDU






ISO 8473                                                       [Page 48]
^L
RFC 994                                                    December 1986


7.9.1.1    Fixed Part

   The fixed part of the Error Report Protocol Data Unit is composed in
   the same way as a new (Initial) Data PDU. References are provided to
   previous Clauses describing the encoding of the fields comprising the
   fixed part:

         1)   Network Layer Protocol Identifier      See Clause 7.2.2
         2)   Length Indicator                       See Clause 7.2.3
         3)   Version/Protocol Id Extension          See Clause 7.2.4
         4)   Lifetime                               See Clause 7.2.5
         5)   SP, MS, E/R                            Always set to zero,
                                                     (See Clause 6.10)
         6)   Type Code                              See Clause 7.2.7
         7)   Segment Length                         See Clause 7.2.8
         8)   Checksum                               See Clause 7.2.9


7.9.1.2    Addresses

   See Clause 7.3.

   The Destination Address specifies the network-entity title of the origi-
   nator of the discarded PDU. The Source Address specifies the title of the
   intermediate-system or end-system network-entity initiating the Error
   Report PDU.

7.9.1.3    Options

   See Clause 7.5.
























ISO 8473                                                       [Page 49]
^L
RFC 994                                                    December 1986


7.9.1.4    Reason for Discard

   This parameter is valid only for the Error Report PDU.


   Parameter Code:      1100 0001
   Parameter Length:    two octets
   Parameter Value:     type of error encoded in binary.  Values are listed
                        in Table 7:
_______________________________________________________________________________
| Parameter Value  |   Class of  |  Meaning                                    |
| Octet 1   Octet 2|    Error    |                                             |
|__________________|_____________|_____________________________________________|
| 0000      0000   |             | Reason not specified                        |
|           0001   |             | Protocol Procedure Error                    |
|           0010   |             | Incorrect Checksum                          |
|           0011   |  General    | PDU Discarded due to Congestion             |
|           0100   |             | Header Syntax Error (cannot be parsed)      |
|           0101   |             | Segmentation needed but not permitted       |
|           0110   |             | Incomplete PDU Received                     |
|           0111   |             | Duplicate Option                            |
|__________________|_____________|_____________________________________________|
| 1000      0000   |  Address    | Destination Address Unreachable             |
|           0001   |             | Destination Address Unknown                 |
|__________________|_____________|_____________________________________________|
| 1001      0000   |             | Unspecified Source Routing Error            |
|           0001   |   Source    | Syntax Error in Source Routing Field        |
|           0010   |  Routing    | Unknown Address in Source Routing Field     |
|           0011   |             | Path not Acceptable                         |
|__________________|_____________|_____________________________________________|
| 1010      0000   |  Lifetime   | Lifetime Expired while Data Unit in Transit |
|           0001   |             | Lifetime Expired during Reassembly          |
|__________________|_____________|_____________________________________________|
| 1011      0000   |             | Unsupported Option not Specified            |
|           0001   |     PDU     | Unsupported Protocol Version                |
|           0010   |  Discarded  | Unsupported Security Option                 |
|           0011   |             | Unsupported Source Routing Option           |
|           0100   |             | Unsupported Recording of Route Option       |
|__________________|_____________|_____________________________________________|
| 1100      0000   | Reassembly  | Reassembly interference                     |
|__________________|_____________|_____________________________________________|

                      Table 7: Reasons for Discard

   The first octet of the parameter value contains an error type code.
   If the error in the discarded Data PDU can be localized to a particu-
   lar field, the number of the first octet of that field is stored in
   the second octet of the reason for discard parameter field. If the
   error cannot be localized to a particular field, or if the error is a
   checksum error, then the value zero is stored in the second octet of
   the reason for discard parameter field.



ISO 8473                                                       [Page 50]
^L
RFC 994                                                    December 1986


7.9.1.5    Error Report Data Field

   This field contains the entire header of the discarded Data PDU, and
   may contain some or all of the data field of the discarded PDU.

8     Conformance

   For conformance to this International Standard, the ability to ori-
   ginate, manipulate, and receive PDUs in accordance with the full pro-
   tocol (as opposed to the non-segmenting or Inactive Network Layer
   Protocol subsets) is required.

   Additionally, conformance to the Standard requires provision of the
   protocol functions described in Clause 6. Provision of the optional
   functions described in Clause 6.18 and enumerated in Table 9-1 must
   meet the requirements described therein. Exceptions to this require-
   ment are described in Clause 8.1 below.

   Additionally, conformance to the Standard requires adherence to the
   structure and encoding of PDUs of Clause 7.

   If and only if the above requirements are met is there conformance to
   this International Standard.

8.1     Provision of Functions for Conformance

   The following table categorizes the functions in Clause 6 with
   respect to the type of system providing the function:

                                    Note:

       1. The support of the PDU Composition and Forward PDU functions
          is necessary for the generation of Error Report PDUs.

       2. The Segment PDU function is in general mandatory for an
          intermediate system. However, a system which is to be
          connected only to subnetworks all offering the same maximum
          SDU size (such as identical Local Area Networks) will not
          need to perform this function and therefore does not need to
          implement it.

          If this function is not implemented, this shall be stated
          as part of the specification of the implementation.

       3. The correct treatment of the padding function requires no
          processing. A conforming implementation shall support the
          function, to the extent of ignoring this parameter wherever
          it may appear.

       4. This function may or may not be supported.  If an
          implementation does not support this function, and the



ISO 8473                                                       [Page 51]
^L
RFC 994                                                    December 1986


          function is selected in a PDU, then the PDU shall be discarded,
          and an ER PDU shall be generated and forwarded to the
          originating network-entity if the Error Report flag is set
          and the conditions of Clause 6.10.4 are satisfied.

       5. This function may or may not be supported.  If an implementation
          does not support this function, and the function is selected
          in a PDU, then the function is not performed and the PDU is
          processed exactly as though the function had not been
          selected. The PDU shall not be discarded for this reason.

    ___________________________________________________________________
    | Function                   |     Send   |   Forward |   Receive |
    |____________________________|____________|___________|___________|
    | PDU Composition            |      M     |  (Note 1) |  (Note 1) |
    | PDU Decomposition          |      M     |     -     |     M     |
    | Header Format Analysis     |      -     |     M     |     M     |
    | PDU Lifetime Control       |            |     M     |     I     |
    | Route PDU                  |      -     |     M     |     -     |
    | Forward PDU                |      M     |     M     |  (Note 1) |
    | Segment PDU                |      M     |  (Note 2) |     -     |
    | Reassemble PDU             |      -     |     I     |     M     |
    | Discard PDU                |      -     |     M     |     M     |
    | Error Reporting            |      M     |     M     |     M     |
    | Header Error Detection     |   (Note 3) |     M     |     M     |
    |                            |            |           |           |
    | Security                   |      -     |  (Note 3) | (Note 4)  |
    | Complete Source Routing    |      -     |  (Note 4) |     -     |
    | Complete Route Recording   |      -     |  (Note 4) |     -     |
    | Partial Source Routing     |      -     |  (Note 5) |     -     |
    | Partial Route Recording    |      -     |  (Note 5) |     -     |
    | Priority                   |      -     |  (Note 5) |     -     |
    | QoS Maintenance            |      -     |  (Note 5) |     -     |
    | Congestion Notification    |      -     |  (Note 5) |     -     |
    | Padding                    |      -     |  (Note 5) | (Note 3)  |
    |____________________________|____________|___________|___________|


                    Table 8: Categorization of Functions
                                     Key:

   M: Mandatory Function; this function must be implemented.

   -: Not applicable.

   I: Implementation option, as described in the text.

   NOTE:  See notes above






ISO 8473                                                       [Page 52]
^L